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

Baris/eng 303 artifact param naming bug #300

Merged
merged 4 commits into from
Jan 12, 2022

Conversation

bcdurak
Copy link
Contributor

@bcdurak bcdurak commented Jan 7, 2022

Pre-requisites

Please ensure you have done the following:

  • I have read the CONTRIBUTING.md document.
  • If my change requires a change to the documentation, I have updated the documentation accordingly.
  • I have added tests to cover my changes.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Describe changes

A small bug fix that adds the parameter names in the config to the duplicate name check in the metaclass of the BaseStep

@bcdurak bcdurak requested review from htahir1 and schustmi January 7, 2022 14:08
@github-actions github-actions bot added the internal To filter out internal PRs and issues label Jan 7, 2022
set(cls.OUTPUT_SIGNATURE)
)
if shared_input_output_keys:
all_keys = list(cls.INPUT_SIGNATURE) + list(cls.OUTPUT_SIGNATURE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's not super relevant in this case because the list of all keys will never be too large, but I'd still suggest using a collections.Counter object to count the occurrences of keys to make it a little more expressive.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@schustmi thank you for the tip. I have added a new version utilizing the Counter.

Copy link
Contributor

@schustmi schustmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me :)

Copy link
Contributor

@htahir1 htahir1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@bcdurak bcdurak changed the base branch from main to develop January 12, 2022 14:20
@bcdurak bcdurak merged commit ab2898e into develop Jan 12, 2022
@bcdurak bcdurak deleted the baris/ENG-303-artifact-param-naming-bug branch January 12, 2022 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal To filter out internal PRs and issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants