Skip to content

Add migration to backfill sharing values for old onetime templates#22556

Open
mrmir wants to merge 1 commit intorelease/17.3from
bug/73493-missing-translation-for-templates-created-before-sharing-was-added
Open

Add migration to backfill sharing values for old onetime templates#22556
mrmir wants to merge 1 commit intorelease/17.3from
bug/73493-missing-translation-for-templates-created-before-sharing-was-added

Conversation

@mrmir
Copy link
Copy Markdown
Contributor

@mrmir mrmir commented Mar 27, 2026

Ticket

https://community.openproject.org/work_packages/73493

What approach did you choose and why?

Onetime templates created between 17.2 and 17.3 get their sharing set to nil instead of "none", which this migration handles

To test

  1. Checkout release/17.2
  2. Create onetime template
  3. Checkout release/17.3
  4. View template to see missing translation/see sharing set to nil in the DB

@github-actions
Copy link
Copy Markdown

1 Warning
⚠️ This PR has migration-related changes on a release branch. Ping @opf/operations

Generated by 🚫 Danger

@mrmir mrmir requested a review from oliverguenther March 27, 2026 14:28
@mrmir
Copy link
Copy Markdown
Contributor Author

mrmir commented Mar 27, 2026

Assigned you as reviewer @oliverguenther as that also handles the warning

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant