Closed cmeessen closed 2 months ago
One general remark. Changing the slug or the parent value will completely break the organisation page (404). This is solved on edit software slug page (see ...software/edit/information/AutosaveSoftwareTextField.tsx, line 55).
Maybe is more suitable to move the complete rsd admin section to rsd admin pages and extend editing the organisation props there? The other location could be parent organisation/add research unit?
I am curious what others think about the location of rsd admin feature(s).
One general remark. Changing the slug or the parent value will completely break the organisation page (404). This is solved on edit software slug page (see ...software/edit/information/AutosaveSoftwareTextField.tsx, line 55).
The page is now reloaded using the correct slug.
Maybe is more suitable to move the complete rsd admin section to rsd admin pages and extend editing the organisation props there? The other location could be parent organisation/add research unit?
That could potentially make sense, however as there were already fields that could only be set by admins I found it the most straight forward way to also set the parent here.
Ready to merge from my point of view
When I set or unset the parent ID and leave the focus of the parentID field I get redirected to an API endpoint?
For example, whet I create two organizations in an empty RSD (using ROR 00rbjv475 and 037aan677):
And then copy the ID of NL eScience and set it as parent ID of NZ eScience:
Then when leaving the ParentID field, the next screen I get is this:
Is that the expected behavior? (I'm on firefox by the way).
Apologies, @dmijatovic was right, there was a typo with the url variable. I fixed it and it works now.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
57.9% Coverage on New Code
0.0% Duplication on New Code
Admins can set parent organisation in frontend
Closes #1177
Changes proposed in this pull request:
How to test:
docker compose build --parallel && docker compose up --scale scrapers=0
docker compose run data-generation
PR Checklist:
docker-compose.yml