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

WIP add search index method to landing page #9901

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

richardTowers
Copy link
Contributor

Draft because I haven't worked out how to test this, or whether it's best to just nuke the Attachable include

This is needed because the Attachable module assumes that the class its attached to has a search_index method, which landing page doesn't. This usually comes from the Searchable module, but we don't need any of that behaviour.

Actually we don't need Attachable either, I don't think - I think it's a hangover from when we were attaching CSVs to use for line graphs. But we're not doing line graphs now. We could remove it, but I'm slightly nervous about breaking something.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

This is needed because the Attachable module assumes that the class its
attached to has a search_index method, which landing page doesn't. This
usually comes from the Searchable module, but we don't need any of that
behaviour.

Actually we don't need Attachable either, I don't think - I think it's a
hangover from when we were attaching CSVs to use for line graphs. But
we're not doing line graphs now. We could remove it, but I'm slightly
nervous about breaking something.
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.

1 participant