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

Create status enum on action pages #602

Draft
wants to merge 1 commit into
base: admin-redesign
Choose a base branch
from
Draft

Conversation

esoterik
Copy link
Member

@esoterik esoterik commented Aug 8, 2019

Draft for now -- this is more or less just a database migration and model level changes required to change status into an enum. It has not been extensively tested, so I suspect that there might be some other broken things or improvements to be made elsewhere!

@@ -14,7 +14,9 @@ def run

filters.each do |f, val|
next unless valid_query?(f, val)
@relation = if NAMED_SCOPES.include? f
@relation = if ENUM_QUERY == f
relation.send f
Copy link
Member Author

Choose a reason for hiding this comment

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

this should send val, not the filter name

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.

1 participant