You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When testing Hyrax 3.4.2 with the dassie development docker container, if I create a Generic Work with access set to Public and then query solr, it appears that an embargo and a lease object are created for the new work. There are also fcrepo objects for the embargo and lease.
I initially encountered this situation as part of our ongoing Hyrax 2.9.6 to 3.4.2 migration. One of our feature tests was creating 2 works and then counting the number of solr records, and the expectation from Hyrax 2.9.6 no longer matched the count in 3.x. It changed from 7 to 11 records, where there were 2 embargo and 2 lease objects, which hadn't been requested.
I have not tested with Hyrax 4 or main, so I do not know if the problem is present there or not. @no-reply suggested it may be a Wings bug.
Rationale
It seems undesirable to produce additional nodes in Fedora and Solr if they are not needed.
Expected behavior
Only create embargo and lease objects when they are requested.
Actual behavior
It creates the embargo/lease objects.
Steps to reproduce the behavior
Start an instance of the development docker container on hyrax 3.x (may need to patch the Gemfile due to a dependency issue)
Log in as an admin.
Create a Generic work with access set to Public.
Perform a blank query in solr, there should be two entries like the following:
Descriptive summary
When testing Hyrax 3.4.2 with the dassie development docker container, if I create a Generic Work with access set to Public and then query solr, it appears that an embargo and a lease object are created for the new work. There are also fcrepo objects for the embargo and lease.
I initially encountered this situation as part of our ongoing Hyrax 2.9.6 to 3.4.2 migration. One of our feature tests was creating 2 works and then counting the number of solr records, and the expectation from Hyrax 2.9.6 no longer matched the count in 3.x. It changed from 7 to 11 records, where there were 2 embargo and 2 lease objects, which hadn't been requested.
I have not tested with Hyrax 4 or main, so I do not know if the problem is present there or not. @no-reply suggested it may be a Wings bug.
Rationale
It seems undesirable to produce additional nodes in Fedora and Solr if they are not needed.
Expected behavior
Only create embargo and lease objects when they are requested.
Actual behavior
It creates the embargo/lease objects.
Steps to reproduce the behavior
Start an instance of the development docker container on hyrax 3.x (may need to patch the Gemfile due to a dependency issue)
Log in as an admin.
Create a Generic work with access set to Public.
Perform a blank query in solr, there should be two entries like the following:
Here is the fcrepo record for the embargo
The text was updated successfully, but these errors were encountered: