Skip to content
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

Merged
merged 6 commits into from
Jun 19, 2023

Conversation

Aditya3034
Copy link
Contributor

Functionality:

Added delete functionality

Solution:

Changes in milestone-card component

WtId: Dev658

Risk level:

  • high
  • medium
  • low

How to test:

1.Open emulators
2.Go to milestones
3. Create Milestone
4. you can use delete functionality of milestones

Copy link
Collaborator

@viv9k viv9k left a 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 Show resolved Hide resolved
@simran142002 simran142002 requested a review from viv9k May 30, 2023 14:26
Comment on lines 75 to 78
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);
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

@viv9k viv9k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@simran142002 simran142002 merged commit 8acaf9c into Worktez:dev-angular Jun 19, 2023
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.

4 participants