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

Compare enum values instead of descriptions. #3012

Merged

Conversation

bowlofeggs
Copy link
Contributor

There were multiple places in the template code that were
comparing Enum human readable descriptions instead of the Enum
values. The descriptions are meant to be human readable and are
subject to change, so this code was at risk of breaking if someone
changes those descriptions in the future.

Signed-off-by: Randy Barlow randy@electronsweatshop.com

There were multiple places in the template code that were
comparing Enum human readable descriptions instead of the Enum
values. The descriptions are meant to be human readable and are
subject to change, so this code was at risk of breaking if someone
changes those descriptions in the future.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
@bowlofeggs bowlofeggs added HTML Issues pertaining to Bodhi's HTML Refactor Issues that are a refactor to improve maintainability for Bodhi labels Feb 15, 2019
@bowlofeggs bowlofeggs requested a review from a team as a code owner February 15, 2019 22:09
@mergify mergify bot merged commit 6707e42 into fedora-infra:develop Feb 18, 2019
@bowlofeggs bowlofeggs deleted the enum-values-not-descriptions branch February 18, 2019 18:19
@bowlofeggs
Copy link
Contributor Author

This patch is planned for inclusion in the upcoming 4.0.0 release: #3221

@bowlofeggs
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HTML Issues pertaining to Bodhi's HTML Refactor Issues that are a refactor to improve maintainability for Bodhi
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants