-
Notifications
You must be signed in to change notification settings - Fork 263
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
Allow user to edit Extension Requests before approval #2215
Allow user to edit Extension Requests before approval #2215
Conversation
|
|
@ahsrah7 I don't see any test when dev=false. |
@pankajjs please let me know if I am getting this correctly. The existing flow where only super user can edit the ERs already has test cases. For the changes I have added where a normal user can also edit the ER until it is approved is under FF so have added tests accordingly. For the case which you are mentioning dev=false should be the test cases for the already existing flow which are already present. If I am missing anything please let me know. |
As I see in updateExtensionRequest, you have introduced dev flag. When dev is false, you are returning |
Yes I have introduced the dev flag but when dev flag is false the control does not reach the updateExtensionRequest at all. But thanks for raising this I notice that string type dev flag is always being type casted to true irrespective of the value provided in the query params. |
38f3130
to
46bf763
Compare
46bf763
to
42d7eac
Compare
146bd21
to
7916d9e
Compare
7916d9e
to
014c0f8
Compare
…#2215) * added edit ability for ER * fixing function name and export type * fix feature flag value check * error message and status code updated * middleware tests added * pending status check added * added comment regarding middleware for FF removal
Date: 17-10-2024
Developer Name: Harshavardhan
Issue Ticket Number
Description
Documentation Updated?
Under Feature Flag
Database Changes
Breaking Changes
Development Tested?
Screenshots
Screenshot 1
edit_er_before_approved.mp4
Test Coverage
Screenshot 1
Additional Notes
The skipAuthorizeRolesUnderFF & authorizeRoles middleware added to enable editing of Extension Request by normal user besides the other privileged users. The same is mention in the below issue created.