Closed Bug 1159175 Opened 9 years ago Closed 9 years ago

Remove the ability to delete campaigns.

Categories

(Mozilla Reps Graveyard :: reps.mozilla.org, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: tasos, Assigned: nemo-yiannis)

Details

(Whiteboard: [kb=1733400] )

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.
Whiteboard: [kb=1733400]
I suggest we make this more general and disable all base content deletes.
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
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Version: unspecified → next
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
Version: next → 468
Product: Mozilla Reps → Mozilla Reps Graveyard
You need to log in before you can comment on or make changes to this bug.