Skip to content
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

ERM-3387: Description can be too long for index, causing mod-licenses error when updating from 5.0.x to later versions or failure on saving licenses with a long description #272

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

EthanFreestone
Copy link
Contributor

Added pre-quesnalia migration file which intercepts the broken migration by implementing it correctly for systems struggling to upgrade.

It won't run for systems who have already upgraded, and so those will have issues attempting to post sufficiently large license descriptions. Release notes should include description of this issue, and we can help to remedy it with SQL.

(This is left deliberately to implementors, not as automagical migrations, as implementors often include and manage their own indexes in addition to those set up automatically, which we have no insight into)

Included a migrations file to run pre-quesnalia migrations. This ensures that any systems coming from Poppy or before with sufficiently large license descriptions can upgrade to Q. Any systems who have _already_ upgraded to Q will have the "wrong" index on license description, and we recommend implementors manage the adding of the correct indexes manually

ERM-3387
Accidentally included a comma, that causes broken migrations.

Also realised that `"2024-10-17-ERM-3387-quesnalia-1"` and `"2024-10-17-ERM-3387-quesnalia-2"` are not currently running due to preconditions, which likely means the "wrong" gin index definitions are also not running even on systems which successfully upgraded to Q, so the license description really is the only one which matters

ERM-3387
@EthanFreestone EthanFreestone merged commit 2899f41 into master Oct 18, 2024
4 checks passed
@EthanFreestone EthanFreestone deleted the ERM-3387 branch October 18, 2024 09:48
EthanFreestone added a commit that referenced this pull request Oct 18, 2024
… error when updating from 5.0.x to later versions or failure on saving licenses with a long description (#272)

* fix: Pre-quesnalia gin index declarations

Included a migrations file to run pre-quesnalia migrations. This ensures that any systems coming from Poppy or before with sufficiently large license descriptions can upgrade to Q. Any systems who have _already_ upgraded to Q will have the "wrong" index on license description, and we recommend implementors manage the adding of the correct indexes manually

ERM-3387

* fix: Syntax error

Accidentally included a comma, that causes broken migrations.

Also realised that `"2024-10-17-ERM-3387-quesnalia-1"` and `"2024-10-17-ERM-3387-quesnalia-2"` are not currently running due to preconditions, which likely means the "wrong" gin index definitions are also not running even on systems which successfully upgraded to Q, so the license description really is the only one which matters

ERM-3387
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.

1 participant