-
Notifications
You must be signed in to change notification settings - Fork 535
8671 license sorting #8697
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
8671 license sorting #8697
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
d295d86
sorting of licenses with the new sort order column
ErykKul f5928d6
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul c9ff44b
license sorting documentation
ErykKul 940c920
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul 7aeaa72
renamed flyway script to unique version
ErykKul 9c983f0
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul 7f1561d
licenses are now sorted first by sortOrder then by ID
ErykKul 5bec856
merge from develop
ErykKul a1c25b1
merge iqss/develop
ErykKul 46212be
updated documentation and example with mandatory sort order in licenses
ErykKul adc8c18
revert of removing cc by from documentation
ErykKul 59fefcc
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul 49286e3
license sorting: renamed sql script
ErykKul f28b420
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul 0124da0
added sortOrder column in the license test file
ErykKul 5c7674c
added icompatibilities mention for the license sorting order field
ErykKul 9ad8d64
renamed: V5.11.0.1__8671-sorting_licenses.sql -> V5.11.1.2__8671-sort…
ErykKul ca0bac2
added sortOrder also in the error test license
ErykKul 2af5cb3
revert by accident commited change in pom.xml
ErykKul 255e308
test license created last should be at the end of the list now becaus…
ErykKul 92f9cff
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul 94a5697
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul 971c203
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul fcf4be4
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul e3c23a7
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul ccc681d
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul a66df59
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul 482a851
Merge branch 'develop' into 8671_license_sorting #8671
pdurbin 962dde7
rename sql script post 5.12 release #8671
pdurbin c023105
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul eca4c2d
fix for the test with license sorting
ErykKul 268a732
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul b1d94c8
sortOrder column made not nullable
ErykKul 81254ad
bugfix in test: licenseId was not parsed correctly
ErykKul 35540f9
typo fix
ErykKul 2ec2c25
renamed flyway script and fixed default value
ErykKul 6ac83cd
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul 6b78dc5
drop sortorder column in integration test
ErykKul ff39204
revert de column drop
ErykKul 08c7e88
moved drop sortorder column to the right file
ErykKul b50081d
revert de column drop
ErykKul fb086db
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul cbe1092
drop colomn sort order if exists
ErykKul 41579cf
Merge branch '8671_license_sorting' of https://github.com/ErykKul/dat…
ErykKul 98d6974
revert dropping
ErykKul bb1865c
sortorder colomn definition fix in entity bean
ErykKul 3a9518f
Merge branch 'IQSS:develop' into 8671_license_sorting
ErykKul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| ## License sorting | ||
|
|
||
| Licenses as shown in the dropdown in UI can be now sorted by the superusers. See [Configuring Licenses](https://guides.dataverse.org/en/5.10/installation/config.html#configuring-licenses) section of the Installation Guide for reference. | ||
|
|
||
| ## Backward Incompatibilities | ||
|
|
||
| License files are now required to contain the new "sortOrder" column. When attempting to create a new license without this field, an error would be returned. See [Configuring Licenses](https://guides.dataverse.org/en/5.10/installation/config.html#configuring-licenses) section of the Installation Guide for reference. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/main/resources/db/migration/V5.13.0.1__8671-sorting_licenses.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| ALTER TABLE license | ||
| ADD COLUMN IF NOT EXISTS sortorder BIGINT NOT NULL DEFAULT 0; | ||
|
|
||
| CREATE INDEX IF NOT EXISTS license_sortorder_id | ||
| ON license (sortorder, id); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.