Skip to content

Conversation

@tomako
Copy link
Contributor

@tomako tomako commented Feb 26, 2025

This PR is about adding "allowed keywords" for contributions. The same feature we already have for events.
A new menu item "Contribution Keywords" is added to Administration/Customization.

We had an internal discussion about whether it would be better to merge "Event Keywords" and "Contribution Keywords" into one page as "Allowed Keywords" and let manage all on the same place. We had no strong standpoint for either solution. Eventually I kept them separately because I thought it's slightly easier to find it. Please let me know what do you think.

@ThiefMaster
Copy link
Member

ThiefMaster commented Feb 26, 2025

I would put it on the same page (ie a single form), and put the settings for both in the same SettingsProxy, ie like this:

 global_event_settings = SettingsProxy('events', {
     'allowed_keywords': [],
+    'allowed_contribution_keywords': [],
 })

Having it in an "[event_]keywords" SettingsProxy would be even nicer, but that would require an alembic revision to rename the existing setting...

@tomako tomako force-pushed the contribution_keywords branch from d7d5846 to b7c37f5 Compare February 28, 2025 14:09
@github-actions github-actions bot added the alembic Contains database changes label Feb 28, 2025
@tomako
Copy link
Contributor Author

tomako commented Feb 28, 2025

  • Keywords forms are combined (menu item is renamed to Allowed Keywords)
  • Both settings reside in global_event_settings
  • Migration script is added

@tomako tomako force-pushed the contribution_keywords branch 2 times, most recently from f851661 to afa1d13 Compare March 13, 2025 22:42
@ThiefMaster ThiefMaster force-pushed the contribution_keywords branch from afa1d13 to 561024a Compare March 19, 2025 14:52
@ThiefMaster ThiefMaster enabled auto-merge (squash) March 20, 2025 09:08
@ThiefMaster ThiefMaster added this to the v3.3 milestone Mar 20, 2025
@ThiefMaster ThiefMaster merged commit 841f2ae into indico:master Mar 20, 2025
10 checks passed
@OmeGak
Copy link
Member

OmeGak commented Apr 2, 2025

/cc @alittle60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

alembic Contains database changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants