-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
[BUG]: Inconsistent Behavior in Requests #4134
Comments
@elasticspoon Looking at the analogous behaviour for distributions, purchases, and donations, the behaviour shown in the quantity request is consistent with that. |
Core team meets Sundays, so don't expect a full answer before then. |
Notes another inconsistency -- the item field on the quantity request shows "Select an item", whereas the individual is just blank. On the bank side we show "Choose an item" |
Ok... The answer is that we should be giving an error in these cases. Thank you for your patience. |
The case we're talking about is that they have an item chosen, but no quantity. Pretty sure #2489 is covering cases where no item is chosen. |
@cielf Sorry, I think I confused myself a bit by bringing up that issue. Could you make sure I am understanding this correctly. Current behavior:Quantity:
Individual:
Target Behaviorthe goal is to make them both operate like quantity requests? Quantity:
Individual:
|
Ah, I somehow thought you were saying that Item filled in but number not filled in on quantity was removing the row silently, which is currently happening on donations (making a note to myself to write that up). It should be valid in either case to have a comment but no items. This covers the weird case where there is a special request that the bank has some one-off items that they aren't going to bother putting in the system, but they've let the partners know are available. In short, yes, please make the individual behave like quantity in this case. |
Fixes rubyforgood#4134 Individual requests and Quantity requests are very similar but have small differences in behavior: - Quantity requests allow comment only requests - Quantity requests filter out blank lines This PR will unify the behavior so both Individual and Quantity requests will act like Quantity requests.
Fixes rubyforgood#4134 Individual requests and Quantity requests are very similar but have small differences in behavior: - Quantity requests allow comment only requests - Quantity requests filter out blank lines This PR will unify the behavior so both Individual and Quantity requests will act like Quantity requests.
* fix(#4134): inconsistent request behavior Fixes #4134 Individual requests and Quantity requests are very similar but have small differences in behavior: - Quantity requests allow comment only requests - Quantity requests filter out blank lines This PR will unify the behavior so both Individual and Quantity requests will act like Quantity requests. * fix: minor changes fix: typo fix: revert automated minor schema change
Is there an existing issue for this?
Current Behavior
When submitting an individuals request with an blank input, an error is returned. When submitting a quantity request with a blank input the input is ignored and the rest of the form submits.
Expected Behavior
I am not sure which is correct but it should not be inconsistent.
Steps To Reproduce
in
spec/system/partners/managing_requests_system_spec.rb:61
change:the tests will now fail.
Environment
No response
Criteria for Completion
No response
Anything else?
The relevant code is in
family_request_create_service.rb
:the validation in this class prevents blank attributes whereas in
request_create_service.rb
:blank values are filtered out.
I am planning on working the bug. Not sure which behavior is correct currently.
Code of Conduct
The text was updated successfully, but these errors were encountered: