diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 4a0bcc4..94f75ce 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 -name: stac-server +name: qubed description: A Helm chart for the STAC Server with frontend, STAC API and caching service. type: application version: 0.1.0 diff --git a/chart/templates/ingress.yaml b/chart/templates/ingress.yaml index 68b3f07..f20bf83 100644 --- a/chart/templates/ingress.yaml +++ b/chart/templates/ingress.yaml @@ -10,7 +10,7 @@ spec: http: paths: {{- if .Values.stacServer.enabled }} - - path: /api + - path: / pathType: Prefix backend: service: @@ -18,15 +18,6 @@ spec: port: number: {{ .Values.stacServer.servicePort }} {{- end }} - {{- if .Values.webQueryBuilder.enabled }} - - path: / - pathType: Prefix - backend: - service: - name: web-query-builder - port: - number: {{ .Values.webQueryBuilder.servicePort }} - {{- end }} tls: - hosts: - {{ .Values.ingress.hostname }} diff --git a/chart/values.yaml b/chart/values.yaml index 6f9ef8c..4763e9b 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -6,14 +6,6 @@ stacServer: pullPolicy: Always servicePort: 80 -webQueryBuilder: - enabled: true - image: - repository: "eccr.ecmwf.int/qubed/web_query_builder" - tag: "latest" - pullPolicy: Always - servicePort: 80 - ingress: enabled: True tlsSecretName: "lumi-wildcard-tls" diff --git a/dockerfile b/dockerfile index e3b62ec..aebfb4f 100644 --- a/dockerfile +++ b/dockerfile @@ -34,12 +34,3 @@ COPY ./stac_server /code/stac_server WORKDIR /code/stac_server CMD ["fastapi", "dev", "main.py", "--proxy-headers", "--port", "80", "--host", "0.0.0.0"] - -FROM base AS web_query_builder - -COPY web_query_builder/requirements.txt /code/requirements.txt -RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt - -COPY web_query_builder /code/web_query_builder -WORKDIR /code/web_query_builder -CMD ["flask", "run", "--host", "0.0.0.0", "--port", "80"] diff --git a/scripts/build_images.sh b/scripts/build_images.sh index 173ccf1..f48e04f 100755 --- a/scripts/build_images.sh +++ b/scripts/build_images.sh @@ -7,9 +7,3 @@ sudo docker build \ --target=stac_server \ . sudo docker push eccr.ecmwf.int/qubed/stac_server:latest - -sudo docker build \ - --tag=eccr.ecmwf.int/qubed/web_query_builder:latest \ - --target=web_query_builder \ - . -sudo docker push eccr.ecmwf.int/qubed/web_query_builder:latest diff --git a/stac_server/static/app.js b/stac_server/static/app.js index 87758f8..8e11a73 100644 --- a/stac_server/static/app.js +++ b/stac_server/static/app.js @@ -176,7 +176,6 @@ function renderCheckboxList(link) { const listContainerHTML = `
This shows the data qube that matches with the current query. The leaves are the next set if available selections you can make.
Key Type: ${itemDiv.dataset.keyType || "Unknown"}
-${ - variable.description ? variable.description.slice(0, 100) : "" - }
- `; - - if (variable.enum && variable.enum.length > 0) { - const listContainer = renderCheckboxList(link); - itemDiv.appendChild(listContainer); - } else { - const any = ``; - const anyNode = document.createRange().createContextualFragment(any); - itemDiv.appendChild(anyNode); - } - } catch (error) { - console.error("Error loading item data:", error); - itemDiv.innerHTML = `Error loading item details: ${error}
`; - } -} - -function renderCheckboxList(link) { - const variables = link["variables"]; - const key = Object.keys(variables)[0]; - const variable = variables[key]; - const value_descriptions = variable.value_descriptions || []; - - const listContainerHTML = ` -{{ config.get('message', '')}}
-Select one or multiple items and then click next to iteratively build up a full request.
-Last database update:
- - -
-{
-}
-
-
-
-
-