-
Notifications
You must be signed in to change notification settings - Fork 124
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
undefined method state=
when creating Monograph
#5084
Comments
When the error occurs...
|
@jlhardes I'm not able to reproduce this on nurax-dev, but I'm not sure if nurax-dev has the proper set up. On nurax-dev, I am able to successfully create a work using the "image" and "generic work" worktypes, but "monograph" is not a work type selection option. On nurax-pg, I get a "NameError in Hyrax::GenericWorksController#new" error when I try to create either an "image" or "generic work". Monograph is also not a work type selection option on nurax-pg. More info on the error at: #5134 (comment) |
Thanks @rjkati! This might not be specific to Monograph as a work type but more about Valkyrie work to test. @elrayle mentioned on Slack: "The reference to Monograph [in issue reports] is a legacy of the test app in Hyrax that defines some work types as ActiveFedora based and some (including the Monograph) as a Valkyrie resource. In nurax-pg, all work types are Valkyrie resources." So if you can create works (image or generic work) on nurax-dev then we don't have any issue with the ActiveFedora based code. It looks like this might be more of a Val:MVP issue for testing on nurax-pg? |
I tested this on my local docker build (running hyrax 3.0.2) and was able to successfully deposit a monograph without getting the exception error listed above. |
In Hyrax Working Group standup, we decided to verify that this works on nurax-dev once the latest hyrax build has been deployed. |
Tried creating works and collections, found the following issue:
Otherwise, did not see any problem. |
I do not see a Monograph work type on nurax-dev, I am still only seeing Generic Work and Image as the types of works that can be created. @MPLSFedResearchTZ were you testing on nurax-dev and able to create a Monograph work? It looks like we might not have Monograph generated as a work type to use yet on nurax-dev, @elrayle? |
@jlhardes I don't see Monograph as a type either. When I tested on nurax-dev, after I created an image type, added a file, the work display page said there were associated files but when I opened the work from the work display page, I could see the image file was at the bottom of the page. |
Testing on nurax-dev shows a NoMethodError in Hyrax::Monographs#new when selecting Monograph to create a new work, so I'm not able to get beyond step 4 in the steps to reproduce the behavior above. See attached full stack trace: |
Testing locally with a Docker build running the internal test app .dassie, I am able to create a work as a Monograph with no errors. |
I was thinking of looking at this but in our working group stand up just now @fritzfreiheit said he could not recreate it and @elrayle says that is likely because this is fixed already (somewhere else) and so will not happen in dev anymore. However @elrayle also reckons there may be a problem with how Monographs were created in |
In attempting to confirm this is fixed, I tried creating a monograph on nurax-dev. It failed to create, but the error is related to batch processing which is behind a flipper config. When I turned batch upload off, I can confirm that this issue is fixed. See Issue #5447 for the batch upload related error for Monograph. |
Descriptive summary
When creating a Monograph through the UI, an exception is raised.
The same error does not occur for GenericWork.
Expected behavior
When required data is entered in new work form, a Monograph will be created.
Actual behavior
When required data is entered in new work form, an exception is thrown.
Steps to reproduce the behavior
During save, the exception is raised.
The text was updated successfully, but these errors were encountered: