Skip to content

Conversation

ewan-escience
Copy link
Collaborator

Add categories to project metadata overview

Changes proposed in this pull request

  • Add categories to project metadata overview, it counts assigned incidental leaf nodes (nodes that can have children but of which no child is assigned to the project)

How to test

  • docker compose down --volumes && docker compose build --parallel && docker compose up --scale data-generation=1
  • Sign in as admin, look at the project metadata overview, the final columns should show the category count
  • Create a new project, add an organisation with categories to it and assign one category to the project
  • When saving the category, you will see that all parents are also saved in the dev tools of your browser (F12, network tab), but in the project metadata overview, it should be counted as one (this should also be the case whan assigning a category that does have children, but of which you don't assign any children)
  • Check for other project pages if the category count makes sense

closes #1596

PR Checklist:

  • Increase version numbers in docker-compose.yml
  • Link to a GitHub issue
  • Update documentation
  • Tests

@ewan-escience ewan-escience self-assigned this Sep 3, 2025
Copy link

sonarqubecloud bot commented Sep 3, 2025

Copy link

sonarqubecloud bot commented Sep 3, 2025

Copy link
Member

@jmaassen jmaassen left a comment

Choose a reason for hiding this comment

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

Works as expected

@ewan-escience ewan-escience merged commit 5f0252a into main Sep 4, 2025
8 of 9 checks passed
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.

add categories to the metadata overview
2 participants