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

Check that search_state.query_param responds to match? #1887

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Conversation

corylown
Copy link
Contributor

Fixes:

ActionView::Template::Error (undefined method `match?' for {"id"=>["p15795coll32:68160"]}:ActiveSupport::HashWithIndifferentAccess)

which occurs when an item is embedded in a search context, like the exhibit home page.

@@ -28,5 +28,13 @@
expect(solr_parameters[:mm]).to be_nil
end
end

context "when the query isn't a string" do
let(:query) { { q: { a: 1 } } }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this query occur in the real world?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When an item is embedded on a page in spotlight.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a page I can go to in order to see this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can duplicate this locally by adding an item row widget with one or more items added to it to any custom page in DLME, such as the home page, a feature page or about page. This is blocking Jacob from creating a page in DLME.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging this, but we believe this may just be cover for a deeper issue #1889

@jcoyne jcoyne merged commit 1774749 into main Sep 25, 2024
2 checks passed
@jcoyne jcoyne deleted the corylown-patch-1 branch September 25, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants