Help contribute to the Incident Management Plugin!
Once an incident channel is archived, consider the corresponding incident metadata to be immutable (just like you can't post in the channel anymore).
Let鈥檚 start checking if a channel is archived across the REST API for incident response, and rejecting with an error if so. Then, let鈥檚 proactively detect this in the frontend and grey out the various controls (commander dropdown, checkboxes, buttons, etc.)
If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.
New contributors please see our Developer's Guide.
I would like to pick this up
Thanks, @arjunagl!
@lieut-data when you say incident metadata can you please let me know exactly what you mean, is it stuff like the channel header channel title ?
@arjunagl, when an incident is open, the right hand side contains a number of pieces of information, such as the active stage, current commander, task list, etc. These should all be considered immutable once the channel is archived.
There are two parts to this:
Feel free to ping us in https://community.mattermost.com/core/channels/ee-incident-response if you want to chat in real-time or even hop on a quick call with the team -- and thanks for your help here!!
thanks @lieut-data
@arjunagl, is there anything I can do to help you with this issue?
thanks @lieut-data due to the vacation, I could not spent much time on this, I have started tinkering with this item this week. So far I'm ok, will reach out if I need help.
@lieut-data I managed to make some progress on this. Given is the link to the branch. Just want to make sure I'm heading in the right direction. Please have a look and let me know.
https://github.com/arjunagl/mattermost-plugin-incident-management/tree/16401-Archived-Immutable.
Hey @arjunagl! Thanks for taking a stab at this! A few thoughts after looking at https://github.com/arjunagl/mattermost-plugin-incident-management/commit/1afed89ed2f75b971dcba2052534a642e5725af0:
incidentRouterAuthorized.Use(handler.checkEditPermissions)?DeleteAt property on the incident /channel/, not the incident itself. Where necessary, you can lookup the channel from the incident's ChannelID.This should be sufficient to deny changes to archived incidents on the server side. Do you need any points on how to modify the user interface client-side when a channel is archived to "discourage" trying to change things?