You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add an API to edit onboarding extension request details before approval or rejection (#2334)
* feat: Add feature to update request before approval or rejection
- Add common validator to redirect request based on type of extension
- Add type field in onboarding extension validator
- Import addLog from services to make it available for stubbing while testing
- Moved response messages to constants file
- Reuse single instance of current date in request and log model for consistent data
- Change controller name
- Remove unused variables
- Add authorization check for superuser or request ownership
- Change authorization condition
- Remove unnecessary changes
* fix: add logs for failure cases and fix check for same old and new deadline
* refactor: separate validation and update logic in service file
* chore: fix jsDoc
* fix: send id instead of while request doc while updating it
* chore: fix lint issue
* fix: change validation response condition and fix jsDoc
* fix: add strict checking
* fix: change constant message
exportconstONBOARDING_REQUEST_CREATED_SUCCESSFULLY="Onboarding extension request created successfully"
59
-
exportconstUNAUTHORIZED_TO_CREATE_ONBOARDING_EXTENSION_REQUEST="Only super user and onboarding user are authorized to create an onboarding extension request"
60
+
exportconstUNAUTHORIZED_TO_CREATE_ONBOARDING_EXTENSION_REQUEST="Only super user and onboarding user are authorized to create an onboarding extension request"
61
+
62
+
exportconstPENDING_REQUEST_UPDATED="Only pending extension request can be updated";
0 commit comments