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

Backend Delete a column in an inventory #13

Open
ujwal-jain opened this issue Feb 4, 2022 · 2 comments
Open

Backend Delete a column in an inventory #13

ujwal-jain opened this issue Feb 4, 2022 · 2 comments
Assignees
Labels
stretch Stretch goal

Comments

@ujwal-jain
Copy link
Collaborator

ujwal-jain commented Feb 4, 2022

Time Estimate - 2.5 Hours
Time Actual - 4 Hours
Create a delete column button in the UI (probably need to figma it out first)
Create a DELETE /column/:inventoryid to delete a column from an inventory. Column name will be in the body. Follow something like this https://stackoverflow.com/questions/16959099/how-to-remove-array-element-in-mongodb to remove an element(column) from every item in the inventory.

The inventory will have a field called columns that will hold all the column names. First find the index of the column you are trying to remove, then call the update() method on the db.collection.

@JihoPark21
Copy link
Collaborator

Add a confirmation pop up.

@ujwal-jain ujwal-jain added the stretch Stretch goal label Feb 14, 2022
@JihoPark21
Copy link
Collaborator

Can delete a column by name. Working on deleting the values in that column

@JihoPark21 JihoPark21 reopened this Feb 28, 2022
@ujwal-jain ujwal-jain changed the title Delete a column in an inventory Backend Delete a column in an inventory Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stretch Stretch goal
Projects
None yet
Development

No branches or pull requests

2 participants