Skip to content

Conversation

VinuB-Dev
Copy link
Contributor

@VinuB-Dev VinuB-Dev commented Nov 14, 2024

Date: 14/11/2024
Developer Name: Vignesh B S


Issue Ticket Number

Closes Real-Dev-Squad/website-dashboard#888

Description

Implemented APIs for Tracking Orphaned Tasks and Departed Users.

  • API 1: users/departed-users - Retrieves users who had a task assigned and have departed the Discord server.
  • API 2: tasks/orphaned-tasks - Retrieves tasks assigned to users who have departed the Discord server.

Added test cases for the above api's.
Also, fixed test case issues due to mock data addition for API testing.

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Screenshots

Screenshot 1

Screenshot 1

Screenshot 2

Test Coverage

Screenshot 1

Screenshot 1

Screenshot 2

Additional Notes

Updated other test cases since user addition and tasks addition to the mock data was causing test cases to fail.

- users/departed-users retrieves users with assigned tasks who have left the Discord server
- tasks/orphaned-tasks retrieves tasks assigned to departed users

Added test cases for both APIs and fixed test case issues arising from mock data additions used in current API testing.
@vinit717
Copy link
Member

Please break this pr into smaller one so it is easy to review

@VinuB-Dev
Copy link
Contributor Author

Please break this pr into smaller one so it is easy to review

Okay, I'll separate this into 2 PR's, with each PR focusing on one API and its corresponding tests.

@VinuB-Dev
Copy link
Contributor Author

VinuB-Dev commented Nov 15, 2024

Have split this PR into 2 separate PR's:
#2251
#2252

@VinuB-Dev VinuB-Dev closed this Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement APIs for Tracking Orphaned Tasks and Departed Users.
2 participants