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

Search by Eth Code and ROD #2518

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

zkhin
Copy link
Contributor

@zkhin zkhin commented Sep 1, 2022

Fixes #2479

┆Issue is synchronized with this Monday item by Unito

@zkhin zkhin marked this pull request as ready for review September 1, 2022 19:03
@zkhin zkhin requested a review from CarsonF as a code owner September 1, 2022 19:03
Copy link
Member

@CarsonF CarsonF left a comment

Choose a reason for hiding this comment

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

Hey @zkhin that's for your initiative here.

I believe if I remember correctly the current search can handle EthnologueLanguage BaseNodes. It's just that they aren't being included the BaseNode labels type filter or have a hydrator. This would be better than adding another GQL/DB query, as another query pushes the burden to the consumer for what's really an API problem.

I was able to quickly test and confirm that my theory. Here's the actions we should take:

  • EthnologueLanguage could be added to searchableAbstracts
  • Adjust types to also include "EthnologueLanguage" if searching for "Language".
  • Add to hydrators a function to hydrate the Language object from an EthnologueLanguage BaseNode/id
  • Adjust the permission check logic to work with this case.

@zkhin zkhin force-pushed the feature/2479-search-by-eth-code branch from df61004 to 0a1bf20 Compare September 12, 2022 18:38
@zkhin zkhin requested a review from CarsonF September 12, 2022 18:38
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.

Search by Eth Code and ROD #
2 participants