You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enhance commandModify or improve an existing command or group of commands of the botgood first issueGood for newcomerspriority: majorvalidThis issue/PR is validated and ready to be picked. This auto adds items to TJ project board.
Is your feature request related to a problem? Please describe.
Managing tags (creating, editing, deleting) is done on the discord. It's not under version control, and we do not know who issued tag managing command.
And since a lot of people have permission to manage tags, it would be nice to be able to audit the changes, and revert in case tag gets accidentally deleted or similar.
Describe the solution you'd like
Every /tag-manage to be logged in #mod_audit_log, so we can know who edited the tag, when, and what are the changes being made.
Design-wise, I would maybe create a separate class that offers a method to write arbitrary messages into the log channel. And then let the tag manage command class take an instance of that class and use the method there, whenever the tags are changed.
Not sure whether the existing mod routine class would be much of a help here honestly, it has a completely different purpose and flow. But I still feel like all mod-log actions should be near to it, at least in the same package. Hence why I would just create some ModAuditLogWriter class or similar there and give it a method log public void logMessage(String message) which others can then use.
Should the bot log the action instantly, or wait for the routine?
Yeah, just dont connect this code to the routine at all. Imo they dont have anything to do with each other.
do we need to log it when someone uses /tag-manage raw?
No. Just the once that actually change something: create, edit, delete, ...
also, does it need to show the content of the tag when using create etc' and/or the old content when using edit etc'?
Yeah, this is actually crucial to be able to "revert" accidental changes. It has to log the state before and after the change. I would suggest to just attach them as "file" to the embed, like a before.md and after.md file or similar.
I would suggest to just attach them as "file" to the embed, like a before.md and after.md file or similar.
The thing is, when I attach the file to the embed it puts the file before the embed. I think that sending the files in different messages is the way to go.
The thing is, when I attach the file to the embed it puts the file before the embed. I think that sending the files in different messages is the way to go.
If you say so - your feature, your design 👍 If you need feedback, show some screenshots 👌
Yup, same with me, it's not something we would use extensively, doesn't need to have a perfect UX.
Like Zabu said, above or below, doesn't matter. It's important that it is consistent, so we can always read it the same way, without getting confused and having to track down before and after. And it should be accurate, so we can depend on it. Everything else is just cosmetics. So yeah, I'm also voting for same message, no spoilers. ☺️
enhance commandModify or improve an existing command or group of commands of the botgood first issueGood for newcomerspriority: majorvalidThis issue/PR is validated and ready to be picked. This auto adds items to TJ project board.
Activity
interacsion commentedon Dec 1, 2021
I'll start working on that
Zabuzard commentedon Dec 2, 2021
Awesome, enjoy! If you have any questions, feel free to ask either here or in the Discord server 😃
Zabuzard commentedon Dec 2, 2021
Design-wise, I would maybe create a separate class that offers a method to write arbitrary messages into the log channel. And then let the tag manage command class take an instance of that class and use the method there, whenever the tags are changed.
Not sure whether the existing mod routine class would be much of a help here honestly, it has a completely different purpose and flow. But I still feel like all mod-log actions should be near to it, at least in the same package. Hence why I would just create some
ModAuditLogWriterclass or similar there and give it a method logpublic void logMessage(String message)which others can then use.interacsion commentedon Dec 2, 2021
Should the bot log the action instantly, or wait for the routine?
interacsion commentedon Dec 2, 2021
do we need to log it when someone uses
/tag-manage raw?interacsion commentedon Dec 2, 2021
also, does it need to show the content of the tag when using
createetc' and/or the old content when usingeditetc'?Zabuzard commentedon Dec 3, 2021
Yeah, just dont connect this code to the routine at all. Imo they dont have anything to do with each other.
No. Just the once that actually change something: create, edit, delete, ...
Yeah, this is actually crucial to be able to "revert" accidental changes. It has to log the state before and after the change. I would suggest to just attach them as "file" to the embed, like a
before.mdandafter.mdfile or similar.interacsion commentedon Dec 3, 2021
The thing is, when I attach the file to the embed it puts the file before the embed. I think that sending the files in different messages is the way to go.
Zabuzard commentedon Dec 3, 2021
If you say so - your feature, your design 👍 If you need feedback, show some screenshots 👌
13 remaining items
marko-radosavljevic commentedon Dec 4, 2021
Yup, same with me, it's not something we would use extensively, doesn't need to have a perfect UX.
Like Zabu said, above or below, doesn't matter. It's important that it is consistent, so we can always read it the same way, without getting confused and having to track down before and after. And it should be accurate, so we can depend on it. Everything else is just cosmetics. So yeah, I'm also voting for same message, no spoilers.☺️
Thanks ❤️
interacsion commentedon Dec 4, 2021
no problem, as you wish :)
github-actions commentedon Jan 4, 2022
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Zabuzard commentedon Jan 10, 2022
Development on this is still ongoing and we want it (@MaiTheLord )
github-actions commentedon Feb 10, 2022
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.