Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Elastic search v0 #37

Merged
merged 6 commits into from
Jun 10, 2024
Merged

Elastic search v0 #37

merged 6 commits into from
Jun 10, 2024

Conversation

DonHaul
Copy link
Contributor

@DonHaul DonHaul commented Jun 5, 2024

No description provided.

@DonHaul DonHaul force-pushed the elastic-search-v0 branch from ee9d6a4 to 566ce2e Compare June 7, 2024 09:31
@DonHaul DonHaul changed the base branch from elasricsearch to main June 7, 2024 11:53
@DonHaul DonHaul force-pushed the elastic-search-v0 branch 7 times, most recently from 828d794 to 98012b7 Compare June 7, 2024 12:59
@drjova
Copy link
Contributor

drjova commented Jun 7, 2024

@DonHaul you were right, this is wrong https://github.com/inspirehep/backoffice/blob/main/.github/workflows/integration-tests.yml#L24 we should use the opensearch image from dockerhub, could you please make a separate PR with the correct image?

@DonHaul
Copy link
Contributor Author

DonHaul commented Jun 7, 2024

@DonHaul you were right, this is wrong https://github.com/inspirehep/backoffice/blob/main/.github/workflows/integration-tests.yml#L24 we should use the opensearch image from dockerhub, could you please make a separate PR with the correct image?

Sure.
Just curious what's the reason we should not use the images in the cern registry?

@drjova
Copy link
Contributor

drjova commented Jun 7, 2024

@DonHaul you were right, this is wrong https://github.com/inspirehep/backoffice/blob/main/.github/workflows/integration-tests.yml#L24 we should use the opensearch image from dockerhub, could you please make a separate PR with the correct image?

Sure. Just curious what's the reason we should not use the images in the cern registry?

good question, for the following reasons:

  1. it's wrong, should be inspirehep
  2. while testing we are using a different image

hence I will recommend to align these images, we can use in both cases the one from the registry: registry.cern.ch/cern-sis/inspirehep/opensearch

@DonHaul
Copy link
Contributor Author

DonHaul commented Jun 7, 2024

Okay done, regarding the local.yml environment variables I don't know exactly what they should be so I modify them to be a mix between what they were before and the ones found in github actions

@@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
services:
opensearch:
image: registry.cern.ch/cern-sis/inspire/opensearch
Copy link
Contributor

Choose a reason for hiding this comment

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

@DonHaul we have to make a separate PR for this change and merge it first.

Copy link
Contributor Author

Choose a reason for hiding this comment

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


class StandardResultsSetPagination(PageNumberPagination):
page_size = 10
page_size_query_param = "page_size"
Copy link
Contributor

Choose a reason for hiding this comment

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

I would leave it size


class OSStandardResultsSetPagination(QueryFriendlyPageNumberPagination):
page_size = 10
page_size_query_param = "page_size"
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

Copy link
Contributor

@drjova drjova left a comment

Choose a reason for hiding this comment

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

Thanks, some minor changes

@DonHaul DonHaul force-pushed the elastic-search-v0 branch from 58ec905 to 16088eb Compare June 10, 2024 07:24
@drjova
Copy link
Contributor

drjova commented Jun 10, 2024

@DonHaul could you please rebase?

@DonHaul DonHaul force-pushed the elastic-search-v0 branch from 16088eb to 2606ffd Compare June 10, 2024 08:25
@drjova
Copy link
Contributor

drjova commented Jun 10, 2024

@DonHaul a test is failing

@drjova drjova mentioned this pull request Jun 10, 2024
@DonHaul
Copy link
Contributor Author

DonHaul commented Jun 10, 2024

@DonHaul a test is failing

@DonHaul a test is failing

@DonHaul a test is failing

test fixed
Added extra tests for the index search

Copy link
Contributor

@drjova drjova left a comment

Choose a reason for hiding this comment

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

Looks good, let's try it.

@drjova drjova merged commit 7fb39e4 into inspirehep:main Jun 10, 2024
3 checks passed
@DonHaul DonHaul deleted the elastic-search-v0 branch June 19, 2024 08:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants