-
Notifications
You must be signed in to change notification settings - Fork 51
Table lookup matching definitions and then ask user #633
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
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #633 +/- ##
==========================================
+ Coverage 74.31% 74.52% +0.20%
==========================================
Files 460 462 +2
Lines 28545 28669 +124
Branches 588 588
==========================================
+ Hits 21214 21366 +152
+ Misses 7237 7211 -26
+ Partials 94 92 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 6 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what happens now if the definition can't be found?
else | ||
head :not_found | ||
end | ||
rescue Exception => e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you not still want an overall Exception catch that can provide an error in json?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applies throughout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default Rails handler sends the exception. I'm not doing anything special and it's already 500. I'll verify but I think I tried that.
@@ -189,7 +191,7 @@ def self.build_json(binary, definition_filename) | |||
end | |||
end | |||
end | |||
json.as_json(:allow_nan => true).to_json(:allow_nan => true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably want at least the as_json call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved both to the caller but I can leave that half as long as that's still returning a hash.
I have a playwright test for this. It pops up a green warning that says it can't be found along with the File Open dialog for you to select the config file. |
closes #581