MapCampaigner icon indicating copy to clipboard operation
MapCampaigner copied to clipboard

Add archive/delete functionality

Open smit1678 opened this issue 5 years ago • 5 comments

Related to #588 but going to separate out archive/delete functionality.

Problem: There is a need for either archiving or deleting campaigns. As a campaign manager, I might be creating a test campaign that I don't to use anymore, or I want to clean up some existing campaigns and so I would like to delete my campaign. Right now we don't expose any functionality to users for this. Current process is to delete campaign directly from the S3 bucket.

Potential Solution: When in Edit mode on a campaign, add a archive/delete function.

I say archive or delete because there might be a use case for only archiving (and thus removing from frontend) instead of permanently deleting. There doesn't seem to be a huge need to save the campaigns forever but there might be a use case for being able to access a very old campaign. Open for discussion.

smit1678 avatar Mar 20 '19 06:03 smit1678

@Eleonore9 this will require some front end changes as well obviously (see wireframe) but i think we can implement a function on the backend to delete an s3 campaign folder. Additionally we may want to traverse user json to remove the deleted project from the project arrays. We can wait on this until the user json is sorted out

russbiggs avatar Oct 31 '19 16:10 russbiggs

Archiving sounds like an interesting feature, although I guess it would involve even more changes for retrieving the archived project.

Eleonore9 avatar Nov 05 '19 14:11 Eleonore9

archiving will likely not exist in favor of a full delete. the "inactive" state of a project will serve a similar function to archive in that it will set projects out of the active view

russbiggs avatar Nov 05 '19 16:11 russbiggs

Would the delete button be displayed in the "Edit Project" page? And would the confirmation be a pop-up?

I tried to draft something in the same style of the mc_flow doc: https://docs.google.com/drawings/d/1bA0zahunRMQJJaMr1-mso5xTXnaQYvSQGtT2Kxz4nr8/edit?usp=sharing add delete functionality(1)

Eleonore9 avatar Nov 05 '19 16:11 Eleonore9

@Eleonore9 see the figma page for exact layout, but in general the delete will be available in the header that will exist across all the new "project" level pages. Per the new user management file this will only be displayed to users with "manage" permission for a project: Screen Shot 2019-11-05 at 10 48 30 AM

The confirmation dialog is in the wireframe on figma for reference

russbiggs avatar Nov 05 '19 17:11 russbiggs