Reorder resources based on order of resource types#939
Open
gunnarvelle wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a Liquibase migration in taxonomy-api to convert legacy topic resource metadata and recalculate stored node_connection.rank values so existing topic-resource ordering follows resource_type.order.
Changes:
- Migrate legacy
topic-resourcesmetadata on topics to a newnumberedcustom field. - Remove the old
topic-resourcescustom field from topic nodes. - Re-rank existing topic→resource connections using resource type order and current rank as a tiebreaker.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Member
Author
|
Denne trengs for NDLANO/ndla-frontend#2901 og NDLANO/editorial-frontend#3409 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
https://github.com/NDLANO/Issues/issues/4523 Sorterer ressurser etter order på ressurstyper, og fjerner gammel topic-resources flagg.