-
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
Error when creating Data Package using Wizard in CSIS #52
Comments
Btw, without resource, but adding the temporal_extent at data package level also generates the same error |
Here is the postgres logfile: csis-postgis.log (get it with It seems that a taxonomy / group relationship is broken. This is probably also the cause of #50 and #51
|
@maesbri BTW, you can use Chrome DEV Tools to inspect the HTTP request/responses. |
From docker-csis logs: `` `` |
@p-a-s-c-a-l thanks for the log file, I will check in my local instance, whether this could be somehow related to #50, since no terms were accidentally removed in my local instance. Also according to the log file, it seems like some title fields are left NULL, even though they shouldn't be. I will check this also in my local instance and make some adjustments to the form modes. |
The EU-GL property refers to this in the Data Package wizard: The first element (EU-GL) should not appear, only each of the steps should be selectable. @fgeyer16 said he would fix all those taxomony and node-related fields, but I think it has not been addressed. I guess the same issue might happen with hazards (only the hazard types should appear by filtering the taxonomy): Vulnerability classes and damage classes don't have yet a taxonomy : |
I believe the problem is with the "Automatic Label" function, which should automatically fill in the title field, when a content entity is created. Currently, the title field should be filled dynamically with the nodeID of the new content entity, but that doesn't always seem to work, so I will for now use fixed title values. @maesbri I will let you know once I'm done and then you can continue with creating the data package. |
Hmm, not sure if this is right ... the title field content is dependent on each resource and it should be filled in by the user |
I was talking about the default title field each content type in Drupal must have. For some content entities I found manually added fields called "name", which is probably what you are referring to. However, I also found in one instance (for dp_resource) a manually added field called "title" which was set to be shown on the form, while the default (and mandatory) Drupal title field was hidden and supposed to be automatically field with the nodeID. Please check the structure with @fgeyer16 again, because this is very confusing right now. However, I was now able to create a dummy dp_resource in CSIS now without getting an error, so I believe it should work now. Please try to add the data package and let me know if it is working now or not. |
@fgeyer16 and @maesbri Again, I noticed that for the dp_data_package there is a manually added field called "title", which gets displayed in the form, while the default title field is hidden and automatically filled... also I realized, that you're not trying to fill the default title-field with the nodeID, but with the content of the field called "ID" (I assumed that by mistake in my previous comment). So again, @fgeyer16 and @maesbri please explain, why this is being done like that? Couldn't we instead do this:
|
In conclusion: On this page we can add individual content entities (so for example just one dp_grid_info). I suggest that from now on whenever a new entity type is created or an existing one updated/changed, that we try to create one dummy entity of that type to see whether it's working or not. |
ok, thanks. btw, I tried to add a resource (maybe at the same time when you where testing this other stuff) and although I managed to save it, there were also a bunch of messy errors (e.g., sections from the resources appearing at the data package level when saving, etc.). I'll check if these changes solved it. |
I changed the display to now show the title of the resource instead of the identifier. |
done |
I have started creating the Naples data package. You can check it here: https://csis.myclimateservice.eu/node/148
I have just managed to create the top level properties of the data package, but I have encountered problems to save the resources. I started adding the "agricultural-areas" resource (an easy one that is also in the json file in the naples example) and after filling in all properties I get this error:
I have tried to complete only the mandatory fields for the resource but I am still getting the error.
@fgeyer16 @patrickkaleta @p-a-s-c-a-l , Any idea of why is it happening?
Btw, I also noticed that in the EU-GL Context section of the resource there is still stuff to be fixed (mainly concerning the taxonomies filtering, etc.).
I cannot progress until this major error is fixed.
The text was updated successfully, but these errors were encountered: