Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

DOE CODE Updates #51

wants to merge 4 commits into from

Conversation

SledKnight
Copy link

Tweaked a few things for DOE CODE, and fixed an issue with contact email overriding existing values instead of acting as a default value.


for release in metadata["releases"]:
if organization:
release["organization"] = organization

if contact_email:
if contact_email and not release["contact"]["email"]:
Copy link
Member

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..

Copy link
Author

@SledKnight SledKnight May 7, 2020

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants