generated from Real-Dev-Squad/website-template
-
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
Feat: Implement APIs for Tracking Departed Users with Assigned Tasks #2268
Merged
iamitprakash
merged 5 commits into
Real-Dev-Squad:develop
from
VinuB-Dev:feat/departed-users-api-changes
Nov 30, 2024
Merged
Feat: Implement APIs for Tracking Departed Users with Assigned Tasks #2268
iamitprakash
merged 5 commits into
Real-Dev-Squad:develop
from
VinuB-Dev:feat/departed-users-api-changes
Nov 30, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VinuB-Dev
force-pushed
the
feat/departed-users-api-changes
branch
from
November 25, 2024 19:22
3ba4c10
to
36e067d
Compare
10 tasks
pankajjs
suggested changes
Nov 26, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update the screenshots?
Updated |
10 tasks
feat: Added test cases for departed users api changes.
…nd filter in-memory - Replaced Firestore query with batch query to fetch incomplete tasks for multiple users at once. - Filter tasks by user IDs and completed statuses in-memory for improved efficiency. - Updated return structure to return an array directly instead of an object with `docs` property. - Updated test cases related to the same.
VinuB-Dev
requested review from
pankajjs,
Achintya-Chatterjee and
listiclehub1
November 28, 2024 09:45
listiclehub1
approved these changes
Nov 29, 2024
iamitprakash
previously approved these changes
Nov 30, 2024
Achintya-Chatterjee
approved these changes
Nov 30, 2024
iamitprakash
approved these changes
Nov 30, 2024
listiclehub1
pushed a commit
to listiclehub1/website-backend
that referenced
this pull request
Dec 2, 2024
…eal-Dev-Squad#2268) * feat: Departed users api changes. * feat: Added test cases for departed users api changes. * Refactor: Update fetchIncompleteTasksByUserIds to use batch queries and filter in-memory - Replaced Firestore query with batch query to fetch incomplete tasks for multiple users at once. - Filter tasks by user IDs and completed statuses in-memory for improved efficiency. - Updated return structure to return an array directly instead of an object with `docs` property. - Updated test cases related to the same.
This was referenced Dec 2, 2024
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Date: 15/11/2024
Developer Name: Vignesh B S
Issue Ticket Number
Closes Real-Dev-Squad/website-dashboard#888
Description
Implemented changes in users API for Tracking Departed Users.
users?departed=true
- Retrieves users who had a task assigned and have departed the Discord server.Test Cases
Test cases for the above API are included in a separate PR due to dependency stacking:
Documentation Updated?
Under Feature Flag
Database Changes
Breaking Changes
Development Tested?
Screenshots
Screenshot 1
Test Coverage
Screenshot 1
Additional Notes
PRD
Design Doc
Have moved the archieveUsers function to models as it was directly interacts with the database and performing operations such as updating task documents. This was also causing circular dependency issues.
Api contracts