-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOE CODE Updates #51
base: master
Are you sure you want to change the base?
DOE CODE Updates #51
Conversation
|
||
for release in metadata["releases"]: | ||
if organization: | ||
release["organization"] = organization | ||
|
||
if contact_email: | ||
if contact_email and not release["contact"]["email"]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SledKnight - So I know we emailed about this, but after staring at it some more, I'm not sure this IS the right answer... Since we're trying to force the values...
I'm thinking instead there may need to be something more to control if this is done... Soemthing like "set if empty" or such.. I have to parse through the surrounding code a bit though to figure out the best place to do this..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe another parameter to control if it is used as an override or default? "contact_email_default" and "contract_email_override" (instead of the current "contract_email")
Or leave "contract_email" as an override and add "contract_email_default"? And throw a Warning if one of them is not set? Have you had any other ideas? (sorry, I just noticed you had commented on this two weeks ago, as I was checking up on the status of the request today).
EDIT: Or maybe just "use_contract_email_as_default" as a boolean that defaults to false?
Archiving project.
Tweaked a few things for DOE CODE, and fixed an issue with contact email overriding existing values instead of acting as a default value.