-
Notifications
You must be signed in to change notification settings - Fork 0
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
Twins cannot be removed from the study report #81
Comments
I found the problem! As can be seen in the screenshot, for this GL-step there was a missing element in its relationsships. JSON:API checks those relationsships before performing any POST,GET or DELETE requests and threw an error, since it found no match for a UUID = "missing". Problem is that Drupal doesn't remove any references of a content element when it's deleted, which leads to the "missing" value in the relationships field. This was discussed earlier but I couldn't find the corresponding issue. The solution was that we store the relationsship between GL-Step and Report image only in the Report image. The field report_images in the GL-Step should not be used anymore and can at some point be removed. I already made the appropriate changes in the "Include in report" functionality of the CSIS_helpers module, but I think @p-a-s-c-a-l has to do so as well for the Scenario analysis component (the final REST call updating the GL-step entity has become obsolete). |
Is this a Drupal bug? If yes, please report it in drupal.org. Also, please post a "best practice" for working with JSON:API - we may need this information in the future. |
My first guess is that those two tables (Included & Available) are not generated properly. Looking at GL-step 1460 (HC step of study 33) shows in the
I assume you were in the HC step of the study? The cids GUP showcase has the Hazard characterization term assigned to it in the |
Interesting, I thought that was fixed. Will take a look at https://csis.myclimateservice.eu/study/33/step/1519/view/twins and fix it. |
I have fixed all the "twins" views for all the templates and also for existing studies. Can we close this now? |
Twins, which are included in the study report cannot be removed from the report
Error message from the console:
The text was updated successfully, but these errors were encountered: