Skip to content
Snippets Groups Projects
Commit 4ba78d05 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

add changes

parent d59b75af
No related branches found
No related tags found
No related merge requests found
......@@ -26,16 +26,11 @@ cache:
stages:
# - build-df-cli
# - deploy-meilisearch
- zotero
- delete-release
- get-meili-key
- pre-processing
- build
# - build-wiki
- delete-release
- lint
# - update-meilisearch-indexes
- deploy
- post-deploy
......@@ -141,7 +136,7 @@ deploy:meilisearch:prod:
############### DELETE RELEASE
delete-meili-helm-release:
delete-meilisearch-release:dev:
rules:
- if: $CI_COMMIT_BRANCH != "main"
stage: delete-release
......@@ -158,7 +153,7 @@ delete-meili-helm-release:
- helm delete -n ${NAMESPACE} ${CI_PROJECT_NAME}-${CI_ENVIRONMENT_NAME}-meilisearch
delete-meili-helm-release:prod:
delete-meilisearch-release:prod:
rules:
- if: $CI_COMMIT_BRANCH == "main"
stage: delete-release
......@@ -351,7 +346,7 @@ lint:
meilisearch
--host ${MEILI_HOST}
--key "${MEILI_MASTER_KEY}"
update article
update articles
--file zot-articles.json
......@@ -412,17 +407,26 @@ set-meili-env:prod:
- if: $CI_COMMIT_BRANCH == "main"
##############################
sync-zotero:
.sync-zotero:
extends: .df-wiki-cli-run
stage: zotero
stage: pre-processing
script:
- df-wiki-cli articles missing-doi --dir ./content/ --key ${ZOTERO_API_KEY}
- df-wiki-cli articles fetch-from-zotero --key ${ZOTERO_API_KEY} --output zot-articles.json
artifacts:
paths:
- zot-articles.json
sync-zotero:dev:
extends: .sync-zotero
when: manual
rules:
- if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "dev"
- if: $CI_COMMIT_BRANCH != "main"
sync-zotero:prod:
extends: .sync-zotero
rules:
- if: $CI_COMMIT_BRANCH == "main"
################ BUILD ##########################
......@@ -468,7 +472,7 @@ build:prod:wiki:
extends: .build
needs:
- set-meili-env:prod
- sync-zotero
- sync-zotero:prod
# - get-pfam
variables:
BASE_URL: /wiki/
......@@ -514,7 +518,7 @@ build:prod:wiki:
deploy:dev:
extends: .deploy
rules:
- if: $CI_COMMIT_BRANCH == "dev" || $CI_COMMIT_BRANCH == "system-distribution-plot"
- if: $CI_COMMIT_BRANCH == "dev" || $CI_COMMIT_BRANCH == "operon-struct-type-article-update"
needs:
- "build:dev:wiki"
when: manual
......
......@@ -18,9 +18,9 @@ const height = ref<number>(150)
const svgRef = ref<SVGElement | null>(null)
const margin = ref<PlotMargin>({
marginTop: 10,
marginRight: 5,
marginRight: 7,
marginBottom: 30,
marginLeft: 5,
marginLeft: 7,
})
const snackbar = ref(false)
......
......@@ -191,7 +191,7 @@ async function fetchSystemHits() {
pending.value = true
const data = await client.index(toValue(msIndexName)).search("", {
facets: ["*"],
filter: [`type = '${toValue(systemName)}'`],
filter: [`type='${toValue(systemName)}'`],
limit: 500000,
})
systemHits.value = data
......@@ -285,4 +285,4 @@ async function fetchRefSeqTaxo() {
</v-card-text>
</v-card>
</v-card>
</template>
\ No newline at end of file
</template>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment