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

Disable search API in docker image #473

Closed
wants to merge 2 commits into from
Closed

Conversation

ajkyffin
Copy link
Member

Description

Remove the search_api section from config.yaml in the docker image, otherwise it fails to load since there is no search API backend available.

Testing Instructions

  • Review code
  • Check GitHub Actions build
  • CI will build a container image for the PR and upload to Harbor. Test in kubernetes.

Agile Board Tracking

N/A

Copy link

codecov bot commented Feb 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a9f336c) 96.66% compared to head (e7d658b) 96.66%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #473   +/-   ##
=======================================
  Coverage   96.66%   96.66%           
=======================================
  Files          39       39           
  Lines        3242     3242           
  Branches      317      317           
=======================================
  Hits         3134     3134           
  Misses         80       80           
  Partials       28       28           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@louise-davies
Copy link
Member

louise-davies commented Feb 16, 2024

Why do we need to disable the search api? We'd need it to deploy in production for ISIS at least, and probably eventually for DLS when they have open data.

EDIT: ah, I suppose the need for the PANOSC scoring API is the problem... We currently run an old version of the API for ISIS which doesn't have the PANOSC scoring API in place

@ajkyffin
Copy link
Member Author

ajkyffin commented Feb 16, 2024

Why do we need to disable the search api?

If there is no search backend available, datagateway-api won't start unless it's disabled.

@ajkyffin
Copy link
Member Author

It seems I've been confused between the search api and the new search functionality being worked on in ICat. When the container was failing to load with errors about the search API, I assumed it was because the new search functionality wasn't present. In fact the problem was I had /icat in the icat_url which isn't needed for python-icat.

Anyway, once it's pointing to an ICat server correctly it starts fine. Whether or not it works without the PANOSC scoring API I don't know.

@ajkyffin ajkyffin closed this Feb 16, 2024
@ajkyffin ajkyffin deleted the docker/disable_search_api branch February 16, 2024 14:55
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