[MacPorts] #68873: Periodically refresh user data from GitHub
MacPorts
noreply at macports.org
Thu Dec 14 19:52:59 UTC 2023
#68873: Periodically refresh user data from GitHub
--------------------------+---------------------
Reporter: ryandesign | Owner: admin@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: trac | Version:
Resolution: | Keywords:
Port: |
--------------------------+---------------------
Comment (by neverpanic):
We don't refresh those unless they aren't set:
https://github.com/trac-hacks/trac-
github/blob/master/tracext/github/__init__.py#L223-L224:
{{{
#!python
req.session.setdefault('name', name or '')
req.session.setdefault('email', email or '')
}}}
`req.session` is a python dict object, `setdefault` is documented at
https://docs.python.org/3/library/stdtypes.html#dict.setdefault to only
set the value if a value does not exist yet.
This behavior allows users to change their name on Trac to a different
value than the one they use on GitHub, should they wish to do so. We do
not have a flag that would indicate whether a name was set automatically
or manually, so I'm not sure whether automatically updating the name from
GitHub would be what our users expect.
--
Ticket URL: <https://trac.macports.org/ticket/68873#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list