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

mappings: migrate resource_type to vocbulary style #623

Merged
merged 5 commits into from
Jun 2, 2021

Conversation

ppanero
Copy link
Member

@ppanero ppanero commented Jun 1, 2021

closes #622

Facets are back

Screenshot 2021-06-01 at 16 11 34

@ppanero ppanero force-pushed the facets branch 4 times, most recently from 261ba86 to da5819d Compare June 1, 2021 15:53
@ppanero ppanero marked this pull request as ready for review June 1, 2021 15:53
Copy link
Contributor

@fenekku fenekku left a comment

Choose a reason for hiding this comment

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

Thanks, I knew there were going to be resource_types remnants.

Leaving previous versions alone is important, approving though so you are unblocked when the tests are fixed.

system_identity, "resource_types", "rsrct")


@pytest.fixture(scope="function")
Copy link
Member Author

Choose a reason for hiding this comment

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

Had to make it function scoped and therefore remove it from runnint_app. The issue comes when used along es_clear. Since the vocabulary will be indexed and the labels come from ES, any previous test with es_clear will remove it and it will not be present when needed (e.g. labels). Note: this only happens at tests/resources/ level since es_clear is not used otherwise.

resource_type_facet = NestedTermsFacet(
field='metadata.resource_type.type',
subfield='metadata.resource_type.subtype',
resource_type_facet = TermsFacet(
Copy link
Member Author

Choose a reason for hiding this comment

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

triggers #628

@ppanero ppanero merged commit e82f25b into inveniosoftware:master Jun 2, 2021
@ppanero ppanero deleted the facets branch June 23, 2021 07:08
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.

facets not present on search
2 participants