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

When attempting to add a New Price List Item, the application crashes #264

Closed
jim-mcgowan opened this issue Jul 24, 2020 · 2 comments
Closed
Labels

Comments

@jim-mcgowan
Copy link
Member

When attempting to add a new Price List Item, the application crashes.

New Price List Item

https://www.dcsops.org/scheduler_admin/price_list_items

We hit a snag

@kfogel
Copy link
Member

kfogel commented Jul 28, 2020

Estimate: probably Tiny to Small.

The usual reason something like this happens is that the price list has validators about what you're allowed to do, but ActiveAdmin isn't configured properly to supply information for those validators to use. The validator is looking for an attribute location but that attribute isn't present. The fix is simple: make it be present via ActiveAdmin.

However, this does require acquiring some knowledge of the application to resolve. E.g., this is an issue we'd give to someone who's joining the team on a long-term basis. It might not be great for a volunteer looking for a one-off issue that's quick to solve and doesn't require a lot of up-front investment.

@frankduncan
Copy link
Contributor

This was actually caused by the sequence for this table getting a weird value. I've updated production to set it so that the next value will be an id that does not fail. (Incidentally, if you kept trying over and over again, it would have eventually succeeded since each failure incremented the sequence value by 1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants