-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Fixes #10290] complete ISO contact roles per ressource base with multiplicity #10367
[Fixes #10290] complete ISO contact roles per ressource base with multiplicity #10367
Conversation
…ontact_roles_per_ressource_base_with_multiplicity
This pull request introduces 2 alerts and fixes 2 when merging 09fc233 into 477c4bb - view on LGTM.com new alerts:
fixed alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog. |
This PR also needs to be merged when we wanna use a list instead of a single contact for point of contact. |
…metadata_full.html. refactored
I took care of the contacts in the |
…tact_roles_per_ressource_base_with_multiplicity Issue#10290 complete iso contact roles per ressource base with multiplicity
…#10290_complete_ISO_contact_roles_per_ressource_base_with_multiplicity
…h_multiplicity
…h_multiplicity
…h_multiplicity
@MalteIwanicki @mwallschlaeger please take a peak at #10521 |
…h_multiplicity
…h_multiplicity
…h_multiplicity
…h_multiplicity
…_ressource_base_with_multiplicity
…h_multiplicity
…se_with_multiplicity' of github.com:mwallschlaeger/geonode into issue#10290_complete_ISO_contact_roles_per_ressource_base_with_multiplicity
…h_multiplicity
which migrations @mwallschlaeger? I don'ìt see migrations in your PR |
…_ressource_base_with_multiplicity
…se_with_multiplicity' of github.com:mwallschlaeger/geonode into issue#10290_complete_ISO_contact_roles_per_ressource_base_with_multiplicity
Hey the migrations are not included yet. but I tested this again they are not required. Regarding your issue. I cannot confirm that multiple users are not set correctly. Actually there is also a test for this case in Can you please doublecheck that you have the right commit? |
@mwallschlaeger ok, I will doublecheck, BTW your latest merges seem to have broken the tests again. |
@MalteIwanicki I confirm it works as expected now. I think this can be merged as soon as the tests are fixed. |
@giohappy please note that the PR of Malte was superseded by another PR which already had been merged. See my comment here: #10367 (comment) |
@MalteIwanicki no problem at all :) |
…_ressource_base_with_multiplicity
@mwallschlaeger FYI we're investigating several problems that were reported with the management of contacts in metadata. It's broken in many ways. We will open an issue soon but I was curious to know if you did notice the problems it's giving, like:
|
@giohappy hey i have noticed one issue I have fixed in our fork. i can at least play the one I have fixed back to core in the next days |
@mwallschlaeger do you mean that editing of contacts works fine (except the issue you mentioned)? |
@mwallschlaeger I've seen your PR but tests are failing. You're using If it cannot be easily fixed we will be forced to revert the commit the commits. I have built a Docker image at the commit of your PR and it seems they weren't working even at that time. Something must be changed between my tests of your PR and its merge. |
Please check this in our dev instance. |
@giohappy If this is not easily fixable, than my +1 for reverting the changes for now. |
@giohappy I guess i figured it out now. The test which are failing are providing the form data using the data argument, which passes and empty dict to the not filled contact roles, where As in e.g. geonode/geonode/layers/views.py Line 532 in 75edcdb
they get filled via Another problem I came across investigating this, was that contact roles couldn't be removed also this was related to the change of the expected object type in widgets.py. I'm gonna run the tests now locally and commit the changes to the PR, so you can check it, too. |
@mwallschlaeger noticed that we see different behavior between stable demo (4.2.x) and master demo. The latter is even more worrying because changes are applied when a user is selected for a role, but the resulting saved user is different from the one that was selected. |
What the current state is aware of:
I know that further work in this topic at least requires changes to the following sections/files:
There is even more files to change apart from the ones already changed an the ones listed above. Further tests have to be added to this PR.
I'm willing to further work on this issue the upcoming weeks, but I think it is good to get some advice from the PSC to see if the direction this is going fits the ideas of the committee members.
Checklist
For all pull requests:
The following are required only for core and extension modules (they are welcomed, but not required, for contrib modules):
Submitting the PR does not require you to check all items, but by the time it gets merged, they should be either satisfied or inapplicable.