-
-
Notifications
You must be signed in to change notification settings - Fork 47
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(milestone-card):Added delete functionality #964
Feat(milestone-card):Added delete functionality #964
Conversation
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.
Please update the code design
functions/model/milestone/lib.js
Outdated
exports.getAllMilestonesData = function(orgDomain, teamId="") { | ||
let query = db.collection("Organizations").doc(orgDomain).collection("Milestones"); | ||
let query = db.collection("Organizations").doc(orgDomain).collection("Milestones").where("MilestoneStatus", "==", "Deleted"); | ||
if (teamId != "") { | ||
query = query.where("TeamId", "==", teamId); |
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.
This will get the deleted Milestones is this the required functionality?
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.
Actually it is used to fetch the milestone but the condition here is wrong , it should be not equal to "Deleted", I have made the changes in the code as required.
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.
Approved
Functionality:
Added delete functionality
Solution:
Changes in milestone-card component
WtId: Dev658
Risk level:
How to test:
1.Open emulators
2.Go to milestones
3. Create Milestone
4. you can use delete functionality of milestones