Skip to content
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

Creating monograph through UI doesn't show up in Dashboard -> Works #4786

Closed
elrayle opened this issue Mar 15, 2021 · 2 comments · Fixed by #4787
Closed

Creating monograph through UI doesn't show up in Dashboard -> Works #4786

elrayle opened this issue Mar 15, 2021 · 2 comments · Fixed by #4787
Labels

Comments

@elrayle
Copy link
Contributor

elrayle commented Mar 15, 2021

Descriptive summary

Creating a Monograph, which is a Valkyrie::Resource, through the UI, creates the Monograph work, but it doesn't show up in the list of works in Dashboard -> Works.

Rationale

All works I create should be listed in Dashboard -> Works -> Your Works (tab).

Expected behavior

Monographs I create through the UI should be listed in Dashboard -> Works -> Your Works (tab).

Actual behavior

Monographs I create through the UI are NOT listed in Dashboard -> Works -> Your Works (tab). But there is a solr doc.

Steps to reproduce the behavior

  1. Login
  2. Dashboard -> Works -> Add new work -> select Monograph as the work type
  3. Fill in required fields and save (forwards to the show page for the Monograph work)
  4. Click Works in the breadcrumb to return to Dashboard -> Works

The new Monagraph should be in the list, but it is not.

@elrayle elrayle added the bug label Mar 15, 2021
@elrayle
Copy link
Contributor Author

elrayle commented Mar 15, 2021

Example solr doc for Monograph:

{
        "id":"2227mp65f",
        "created_at_dtsi":"2021-03-15T13:55:44Z",
        "updated_at_dtsi":"2021-03-15T13:55:48Z",
        "has_model_ssim":["Monograph"],
        "human_readable_type_tesim":["Monograph"],
        "edit_access_person_ssim":["[email protected]"],
        "visibility_ssi":"restricted",
        "title_tesim":["m03-15-04"],
        "suppressed_bsi":false,
        "admin_set_id_ssim":["admin_set/default"],
        "member_ids_ssim":["7m01bk69s"],
        "creator_tesim":["mne"],
        "date_created_tesim":[""],
        "keyword_tesim":[""],
        "related_url_tesim":[""],
        "resource_type_tesim":[""],
        "subject_tesim":[""],
        "_version_":1694306453428371456,
        "timestamp":"2021-03-15T13:55:48.756Z",
        "score":6.4086657}]
  },

Example solr doc for Generic Work:

{
        "system_create_dtsi":"2021-03-04T14:37:29Z",
        "system_modified_dtsi":"2021-03-04T14:37:36Z",
        "has_model_ssim":["GenericWork"],
        "id":"f4752g72m",
        "accessControl_ssim":["8f272ecb-4715-4863-beaf-d499e270236e"],
        "hasRelatedMediaFragment_ssim":["p8418n20k"],
        "hasRelatedImage_ssim":["p8418n20k"],
        "depositor_ssim":["[email protected]"],
        "depositor_tesim":["[email protected]"],
        "title_tesim":["gw-03-04-04"],
        "date_uploaded_dtsi":"2021-03-04T14:37:29Z",
        "date_modified_dtsi":"2021-03-04T14:37:29Z",
        "isPartOf_ssim":["admin_set/default"],
        "creator_tesim":["me"],
        "rights_statement_tesim":["http://rightsstatements.org/vocab/InC/1.0/"],
        "thumbnail_path_ss":"/downloads/p8418n20k?file=thumbnail",
        "suppressed_bsi":false,
        "actionable_workflow_roles_ssim":["admin_set/default-default-managing",
          "admin_set/default-default-approving",
          "admin_set/default-default-depositing"],
        "workflow_state_name_ssim":["deposited"],
        "member_ids_ssim":["p8418n20k"],
        "file_set_ids_ssim":["p8418n20k"],
        "visibility_ssi":"restricted",
        "admin_set_tesim":["Default Admin Set"],
        "human_readable_type_tesim":["Generic Work"],
        "edit_access_group_ssim":["admin"],
        "edit_access_person_ssim":["[email protected]"],
        "_version_":1693312521973268480,
        "timestamp":"2021-03-04T14:37:41.855Z",
        "score":4.399681},

@elrayle
Copy link
Contributor Author

elrayle commented Mar 15, 2021

Place where solr query for Dashboard -> Works is created: Hyrax::Dashboard::WorksSearchBuilder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant