fix: exclude withdrawn/cancelled requests from duplicate check#9
fix: exclude withdrawn/cancelled requests from duplicate check#9
Conversation
When multipleRequestsPerPeriod is false, the duplicate request check was counting withdrawn and cancelled requests, preventing users from submitting a new request after withdrawing a previous one.
|
We have the ability to re-open requests, so the thinking was that we'd prefer a request get re-opened rather than re-created. This is especially true for WITHDRAWN, where reviewers could get confused or perceive that the system lost their work if an applicant withdraws and recreates after the reviewer has started. We figured reviewers would rather take a support request and re-open it manually and send it back. If we went this route instead, we would also need to put a block on re-opening when there is a valid request in the same period. |
|
Thanks for the response, and the insight. This is why I made a PR instead of just pushing commits while I'm still learning the framework I glazed over the fact that applicants can unwithdraw an app themselves. However, it looks like the UI code for that is currently commented out: |
|
I guess the next question is, is there a reason that UI code is disabled? |
|
I think it just wasn't fully baked and we were trying to focus our efforts. Certainly eligible to get implemented for 1.1. |
Summary
multipleRequestsPerPeriodisfalse, the duplicate request guard inreasonMayNotCreateInPeriodForUserwas querying all requests for the user in the period — including withdrawn and cancelled onesstatusfilter tofind()to excludeWITHDRAWNandCANCELLEDat the query levelTest plan
multipleRequestsPerPeriod: false