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

fix(catalogue): the query populating the 'last update' column on /apps/central retrieves incorrect schema names #4526

Open
1 task done
YpeZ opened this issue Nov 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@YpeZ
Copy link
Contributor

YpeZ commented Nov 28, 2024

Have you checked if this issue already exists?

  • yes

Molgenis EMX2 version

Software version: v11.31.2. Database version: 23

Description

The 'last updated' column in the overview of schemas is only populated for two values.
The query responsible for fetching the data,

{_schemas{id,label,description} _lastUpdate{schemaName, tableName, stamp, userId, operation}}

incorrectly reports the same schemaName for multiple different schemas, whereas there should only be one entry per schema that has their changelog enabled.

image

Reproduction steps

  1. Go to https://data-catalogue-acc.molgeniscloud.org/
  2. Sign in as admin
  3. Go to https://data-catalogue-acc.molgeniscloud.org/apps/central/#/
  4. See that the 'last updated' column is only populated for two values

Expected behaviour

The 'last updated' column should be populated for each schema with changelog enabled.
The query should return unique schema names.

System configuration

Device: Computer

@YpeZ YpeZ added the bug Something isn't working label Nov 28, 2024
@YpeZ
Copy link
Contributor Author

YpeZ commented Dec 4, 2024

In some instances the page /apps/central/#/ fails to be populated due to an error caused by the _lastUpdate query.
It appears that the query tries to refer to multiple schemas with the schemaName FAIR
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant