Skip to content

Add option to clone Badge template into a different category #5775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 18, 2023

Conversation

SegiNyn
Copy link
Contributor

@SegiNyn SegiNyn commented May 15, 2023

This is to add an option to clone Badge Templates from a category into a different category

@SegiNyn SegiNyn force-pushed the badge-template-clone branch 4 times, most recently from fa593ef to 1ad3421 Compare May 18, 2023 14:57
@SegiNyn SegiNyn requested a review from ThiefMaster May 18, 2023 15:02
@SegiNyn
Copy link
Contributor Author

SegiNyn commented May 26, 2023

Hello @ThiefMaster, please this is ready for another review. Thank you.

@SegiNyn SegiNyn force-pushed the badge-template-clone branch from 1ad3421 to a380258 Compare June 12, 2023 08:43
@SegiNyn SegiNyn force-pushed the badge-template-clone branch from a380258 to f578683 Compare July 18, 2023 13:28
@SegiNyn
Copy link
Contributor Author

SegiNyn commented Jul 18, 2023

Hello @ThiefMaster, please any updates on this pr? Is there something else to do on my side?

@ThiefMaster
Copy link
Member

I'm getting the "The selected category does not contain any events, only subcategories. Please make sure that you really want to create an event there." warning - this should not happen since we're not creating events...

@ThiefMaster
Copy link
Member

OK that's a simple fix, show_warning_message=False

@ThiefMaster ThiefMaster force-pushed the badge-template-clone branch from f578683 to 6d7504f Compare July 18, 2023 18:28
Make it opt-in and clarify it's about warnings related to event creation
You can't put everything in the Markup() call, since the badge title is
not trustworthy and thus should be handled as potentially insecure HTML.
@ThiefMaster ThiefMaster enabled auto-merge (squash) July 18, 2023 19:27
@ThiefMaster ThiefMaster merged commit aa579f4 into indico:master Jul 18, 2023
@ThiefMaster ThiefMaster deleted the badge-template-clone branch July 18, 2023 19:32
@SegiNyn
Copy link
Contributor Author

SegiNyn commented Jul 19, 2023

Thank you @ThiefMaster for the improvements added 🙏

SegiNyn added a commit to UNOG-Indico/indico-core that referenced this pull request Jul 24, 2023
SegiNyn added a commit to UNOG-Indico/indico-core that referenced this pull request Jul 25, 2023
SegiNyn added a commit to UNOG-Indico/indico-core that referenced this pull request Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants