Real-Dev-Squad / website-backend

The backend code for all our website-related apps
https://api.realdevsquad.com/
MIT License
46 stars 201 forks source link

Add OOO request approved data to user future status #2001

Closed sahsisunny closed 3 months ago

sahsisunny commented 3 months ago

Date: 06 Apr 2024 Developer Name: @sahsisunny

Issue Ticket Number

Description

This pull request addresses the issue where the user's status was not being updated after the approval of an Out of Office (OOO) request. The system has been updated to ensure that after an OOO request is approved, the user's status is automatically changed to either their normal status or OOO status based on the system's configuration.

Documentation Updated?

Under Feature Flag

Database Changes

Breaking Changes

Development Tested?

Local testing during development confirms the functionality works as expected.

Screenshots

Demo Video https://github.com/Real-Dev-Squad/website-backend/assets/70854507/2ec9c652-2020-4e9f-98ee-6409b84a0632

Test Coverage

Test Coverage | File | Statements | Branches | Functions | Lines | Uncovered Lines | |------------------------|------------|----------|-----------|-------|-----------------| | models/userFutureStatus.ts | 86.2 | 50 | 100 | 84 | 23-24,53-54 | | models/userStatus.js | 59.51 | 46.52 | 72.22 | 58.45 | 1-492,570,587-588,609-611,641-642,658-659,685-689,706-707 | | models/requests.ts | 86.74 | 89.74 | 100 | 85.71 | 41-42,76-77,115,124-125,127-128,162-163 |

Additional Notes

No additional notes.