zazuko / cube-creator

A tool to create RDF cubes from CSV files
GNU Affero General Public License v3.0
11 stars 2 forks source link

Some metadata can't be set : <Initialising component> #1390

Closed PDumasBAR closed 1 year ago

PDumasBAR commented 1 year ago

Describe the bug Sometimes it's not possible to set a list related metadata at the cube level. A click on the plus sign display the message "Initialising component" but the list is never displayed.

Affected functionalities (all that apply)

Relevant links Cube-Creator project OGD111

To Reproduce Steps to reproduce the behavior:

  1. Open the project in the Cube-Creator
  2. Go to the designer
  3. Try to insert "Category" or "License"
  4. See error

Expected behavior The list of options for the metadata display the available options

Screenshots image

Desktop (please complete the following information):

Additional context Not the only cube from Jana where it happens (OGD106, OGD101, etc.). I think it's a general bug. It happens also in old cubes.

tpluscode commented 1 year ago

The components are populated directly from Lindas. The options are provided by a SPARQL query. I've just tried various browsers and operating system and the dropdowns loaded fine in every case.

It may be possible that this happens at times when Lindas is under high load? I can find these errors in monitoring logs but unfortunately they do not provide any additional details

PDumasBAR commented 1 year ago

Hi Tomasz, It seems to work better. No more "Initialising component" or just a short time for long lists.

But the status list (draft or publish) is now empty. Tested on different cubes, in INT and PROD. image The creativeWorkStatus property is still visible in the raw RDF of an existing cube.

AFoletti commented 1 year ago

A similar "empty dropdown" issue is present with the "publishing profile" when creating a new cube image

This acually makes it impossible to create new cubes on both INT and PROD...

@aressera FYI

AFoletti commented 1 year ago

Both the issue last described by @PDumasBAR and the one in my comment above looks like to have "solved themselves". It is once again possible to correctly create a new cube on INT and PROD and the drop-down are being populated.

I would like to kindly point out that such instabilities are giving quite a blow to a possible wider use of the CubeCreator within our office...

dabo505 commented 1 year ago

@AFoletti Thanks for reporting this. @tpluscode Any ideas where this came from?

tpluscode commented 1 year ago

Very sorry about this. While the direct cause was failure to authorise the API calls which retrieve data for the forms, the underlying issue can be traced to the build which was slightly random. That is why releasing some unrelated changes also fixed this and similar problems reported in other tickets.

I do not know exactly why this randomness occurs during build but I know the library which is the culprit and I have an idea how to prevent it from happening again.

dabo505 commented 1 year ago

Thanks for the feedback!