Skip to content

Reorder resources based on order of resource types#939

Open
gunnarvelle wants to merge 2 commits into
masterfrom
remove-grouped
Open

Reorder resources based on order of resource types#939
gunnarvelle wants to merge 2 commits into
masterfrom
remove-grouped

Conversation

@gunnarvelle
Copy link
Copy Markdown
Member

@gunnarvelle gunnarvelle commented May 4, 2026

https://github.com/NDLANO/Issues/issues/4523 Sorterer ressurser etter order på ressurstyper, og fjerner gammel topic-resources flagg.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-resources metadata on topics to a new numbered custom field.
  • Remove the old topic-resources custom 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.

Comment thread taxonomy-api/compile-resources/db-master-changelog.xml Outdated
Comment thread taxonomy-api/compile-resources/db-master-changelog.xml
@gunnarvelle
Copy link
Copy Markdown
Member Author

Denne trengs for NDLANO/ndla-frontend#2901 og NDLANO/editorial-frontend#3409

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.

2 participants