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

Fixing facets that are breaking search #54

Merged
merged 23 commits into from
Jul 23, 2021
Merged

Fixing facets that are breaking search #54

merged 23 commits into from
Jul 23, 2021

Conversation

dannylamb
Copy link
Contributor

@dannylamb dannylamb commented Jul 23, 2021

GitHub Issue: Follow up to #52

Blocking Islandora/islandora#843

What does this Pull Request do?

Points facets towards the correct fields on the solr index after the MIG sandbox changes. The facets are currently pointing at fields that are no longer in the index, and it's making search fail silently.

What's new?

  • Touching up the solr index fields
  • Pointing facets towards those fields instead of nonexistant ones
  • Deleted vocabs here that already are / should be in controlled_access_terms_defaults.

How should this be tested?

Original Behaviour:

Try to search, you'll get no results and no real indication that anything went wrong.

How to get an environment to test this

I used ISLE. Make sure you have the latest isle-dc, and from within its directory

  1. sudo rm -rf codebase; git clone https://github.com/islandora-devops/islandora-sandbox codebase
  2. Set ENVIRONMENT=local in your .env (rename sample.env to .env if you don't have it)
  3. Set TAG=1.0.0-alpha-9
  4. make local
  5. Pull ths PR into codebase/web/modules/contrib/islandora_defaults
  6. Pull Updating temporal subjects vocab controlled_access_terms#71 into codebase/web/modules/contrib/controlled_access_terms
  7. docker-compose exec drupal with-contenv bash -lc 'drush -y en facets name islandora_search'
  8. docker-compose exec drupal with-contenv bash -lc 'drush -y fim controlled_access_terms_defaults'
  9. docker-compose exec drupal with-contenv bash -lc 'drush -y fim islandora_defaults'
  10. docker-compose exec drupal with-contenv bash -lc 'drush -y fim islandora_search' (it will complain about not being able to reach the solr server. that's fine. the next step fixes it)
  11. make hydrate

Then you can go add some terms, make some content, and try to search it. Search should work and you should see facets.

image

Interested parties

@Islandora/8-x-committers

@seth-shaw-unlv
Copy link
Contributor

@dannylamb
Copy link
Contributor Author

I can do that @seth-shaw-unlv

@dannylamb
Copy link
Contributor Author

🔥 🔥 🔥

@dannylamb
Copy link
Contributor Author

There's a corresponding pull to controlled_access_terms I need to issue as well before this goes in.

@dannylamb
Copy link
Contributor Author

Oh ha, right... facets is an optional dependency.... hang on

@dannylamb
Copy link
Contributor Author

dannylamb commented Jul 23, 2021

Currently spinning up a fresh ISLE to make sure this installs correctly from scratch. I'll update testing instructions with what I did... assuming everything goes ok.

@dannylamb
Copy link
Contributor Author

Bah, now it's complaining about the temporal_subjects vocabulary, which I moved over to controlled_access_terms. I'll have to sort that out. 😭

@dannylamb
Copy link
Contributor Author

This will fail until Islandora/controlled_access_terms#71 is merged

@dannylamb
Copy link
Contributor Author

dannylamb commented Jul 23, 2021

@seth-shaw-unlv or any other @Islandora/8-x-committers ➡️ 📣 I've updated testing instructions, and this fixes searching. Please help me get this and Islandora/controlled_access_terms#71 in so I can merge Islandora/islandora#843 and finish the release. 🙏 🙏 🙏

Copy link
Contributor

@seth-shaw-unlv seth-shaw-unlv left a comment

Choose a reason for hiding this comment

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

🚀

@seth-shaw-unlv seth-shaw-unlv merged commit f4f4e15 into 8.x-1.x Jul 23, 2021
@rosiel rosiel deleted the fix-search branch September 24, 2021 19:28
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