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

DEVPROD-8113: Define optional variable before referencing and add support for mongo default variants #22

Merged
merged 5 commits into from
Jun 12, 2024

Conversation

llazala000
Copy link
Collaborator

No description provided.

@llazala000 llazala000 self-assigned this Jun 12, 2024
@llazala000 llazala000 requested a review from zituo-jin June 12, 2024 13:31
@llazala000 llazala000 marked this pull request as ready for review June 12, 2024 13:31
Copy link
Collaborator

@zituo-jin zituo-jin left a comment

Choose a reason for hiding this comment

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

Once you fix the bug, be sure to also test the block for mongo default build variants. We should use default regexes in the subsequent build_checks.

if display_variant_name:
display_variant_name_checks = display_variant_name

display_variant_name_checks = display_variant_name
Copy link
Collaborator

Choose a reason for hiding this comment

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

This probably won't fix the bug user reported, because he didn't pass display_variant_name explicitly, so the condition if display_variant_name is not None here should have been evaluated False. Maybe it's an empty list or something, not None. We should probably change it to if display_variant_name.

@llazala000 llazala000 changed the title Fix: Define optional variable before referencing Fix: Define optional variable before referencing and add support for mongo default variants Jun 12, 2024
@llazala000 llazala000 requested a review from zituo-jin June 12, 2024 20:28
@llazala000
Copy link
Collaborator Author

@zituo-jin ran with both our test cases and it worked. I also fixed some tests that needed to be updated with the new changes.

Copy link
Collaborator

@zituo-jin zituo-jin left a comment

Choose a reason for hiding this comment

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

LGTM. Can we add a jira ticket to the PR title before merging?

@llazala000 llazala000 changed the title Fix: Define optional variable before referencing and add support for mongo default variants DEVPROD-8113: Define optional variable before referencing and add support for mongo default variants Jun 12, 2024
@llazala000 llazala000 added this pull request to the merge queue Jun 12, 2024
Merged via the queue into main with commit e62e419 Jun 12, 2024
4 checks passed
@llazala000 llazala000 deleted the DEVPROD-4271-fix branch June 12, 2024 21:37
github-actions bot pushed a commit that referenced this pull request Jun 12, 2024
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