Remove the ability to delete campaigns.

VERIFIED FIXED

Status

VERIFIED FIXED
4 years ago
4 years ago

People

(Reporter: tasos, Assigned: nemo-yiannis)

Tracking

Details

(Whiteboard: [kb=1733400] )

(Reporter)

Description

4 years ago
The events model contains a foreign key to campaigns (aka initiatives). When a campaign is deleted causes a cascade delete which also deletes the related event. 

Instead of deleting the initiatives that are no longer needed, they should be marked as inactive. In order to avoid mistakes we should completely remove the ability to delete initiatives.
(Reporter)

Updated

4 years ago
Whiteboard: [kb=1733400]
(Assignee)

Comment 1

4 years ago
I suggest we make this more general and disable all base content deletes.

Comment 2

4 years ago
Commit pushed to master at https://github.com/mozilla/remo

https://github.com/mozilla/remo/commit/577f2bb957e53e23fb37aad74c37b602e3d5f38f
[Fix bug 1159175] Remove the ability to delete base content.

* Remove delete link and modal from /settings/ on all base content
* Remove BaseDeleteView and instances defined in content_urls
* Remove unused `get_object_delete_url` definitions

Updated

4 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED

Updated

4 years ago
Version: unspecified → next
(Reporter)

Comment 3

4 years ago
Verified on stage that the delete button is missing for functional areas, activities, initiatives and event metrics. Moreover if a user inputs manually the former delete url, 404 is produced.

Example url:

https://reps.allizom.org/content/activities/4/delete
Status: RESOLVED → VERIFIED
(Reporter)

Updated

4 years ago
Version: next → 468
You need to log in before you can comment on or make changes to this bug.