-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lifelike staging az deployment becomes master (#2213)
* Convert `get_genes_to_organisms` to AQL * Convert `get_proteins_to_organisms` to AQL * Convert `get_global_inclusions_count` to AQL * Convert `get_global_inclusions` to AQL * Convert `get_global_inclusions_paginated` to AQL * Convert `get_docs_by_ids` to AQL * Convert `get_mesh_by_ids` to AQL * Convert `get_node_labels_and_relationship` to AQL * Convert `global_inclusions_by_type` queries to AQL * Convert `_global_annotation_exists_in_kg` to AQL * Update goc queries for globals * Fix linting * Skip annotations pytests This is a temporary measure to allow CI to pass without needing to refactor every annotations test which previously used Neo4j. * Fix bug in `get_global_inclusions_by_type_query` * Remove unnecessary graph services from annotations * Update ET to use Arango * Resolve mypy & pycodestyle issues * Update organism search to use AQL * Update visualizer search to use AQL * Update synonym search to use AQL * Remove `SearchService` No longer needed as it isn't used anywhere. * Update viz expansion/snippets queries to use AQL * Fix bug in batch uri request api * Ignore failing visualizer tests Just silencing these until after the arango integration is complete. * Fix lint issues * Update id properties to use `IdType` This should help if in the future we decide to go back to using numbers, we won't have to change every single instance of a type definition. * Fix bad type definition in sidenav-type view * Move import to correct group * Add `verify_override` argument to ArangoClient * Remove KgService and Pathway Browser Since this feature is mostly a prototype and we're moving away from Neo4j anyway, doesn't really make sense to keep it. * Remove remaining references to neo4j package Removes (almost) all remaining references to the neo4j python driver in the appserver. There are still a few references in the pytests, these can be ironed out when the tests themselves are updated in the near future. * Add arango driver to stats-enrichment pipfile * Update SE to use arango * Remove neo4j & py2neo from SE pipfile * Fix pagination bug in visualizer search * Fix bug in visualizer expansion query * Update cache-invalidator to use Arango * Add correct sorting to visualizer search query * Fix sorting in misc. visualizer snippet queries * Remove possibly unnecessary `exec $@` call * Add sanity check log after dbs have started * Remove n4j container & update startup w/ arango * Test ansible workflow changes (add verbosity) * Re-format relevant visualizer JS files * Update expand to bulk create reference tables * Fix input/output errors in visualization cmp * Fix direction bug in reference table creation * Improve visualizer expand timing Consolidates the expand/reference table requests into a single one. Also adds some small performance improvements on the client. * Add improved association matching to viz queries * Add very slight perf improvement to snippets query * Add starts-with phrase search to viz search * Add perf update to node pair snippets query * Fix domain labels not appearing in viz search * Fix mypy errors * Remove accidental workflow changes * Fix ChEBI typo in constants * Fix pagination issue in viz search * Clean up a few files * Update arango conftests + update initial tests * Update manual annotations tests * Update neo4j api tests * Update database annotations tests * Use camel_to_snake_dict instead of recent change * Update remaining visualizer tests * Add comment to redis queue tests * Fix appserver linting checks * Fix client lint checks * Update enrichment queries to loop over inputs We noticed that when using an `IN` clause, the results were being sorted in seemingly alphabetical order. To avoid this, we changed the queries to iterate over the inputs to return the results in input order. * Add perf. improvement to stats-enrichment query * Add perf. improvement to anno fallback queries * Fix typo in genes to organism query * Add another date conversion case for arango data * Fix bad error handling in global creation * Generalize arango date format checks * Remove debug comments * Fix linter issues * Fix appserver issues * Fix incorrect property name in go term query * Update deployment submodule (add AQL vars to qa) * Update deployment submodule (rm bad pip installs) * Update deployment submodule (demo vars) * Increase ansible log verbosity for debugging * Fix typo * Update deployment submodule (rm apm vars) * Update deployment submodule (switch to gpt branch) * Update deployment submodule (add gpt key to demo) * Fix pycodestyle errors * Fix pytest * Add auto lint changes for pytest update * Fix prettier & black warnings * Fix additional black/prettier errors * Fix code style issues with Black * Fix code style issues with Prettier * Remove old `util.py` in favor of new files * Rename `neo4j_test.py` to `arango_test.py` * Fix flake8 issue * Fix silent bugs in visualizer search * Fix typo in associated type snippet count query * Fix merge conflict in visualizer search records * Change deployment submodule ref * Remove unnecessary secret from az workflows * Update deployment submodule (fix bad value) * Update deployment submodule (add docker-az role) * Update deployment submodule (fix bad file location) * Update deployment submodule (re-add JWKS vars) * Update deployment submodule (+ openai vars to env) * Update deployment submodule (add networks) * Update deployment submodule (edit JWKS vars) * Update deployment submodule (remove vals from JWKS) * Add empty string defaults for JWKS flask config * Fix badly merged changes for LL-5300 * Add synonym field to organism query result * Update deployment to latest lifelike-public-temp-fix * Update deployment submodule (update frontend host) * Update deployment submodule (update stg app version) * Update deployment submodule to latest * Update deployment submodule (rm var from env) * Update deployment submodule (update flask env) * Fix code style issues with Prettier --------- Co-authored-by: Ethan Sanchez <ethan.dsanch@gmail.com> Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
- Loading branch information
1 parent
e04c648
commit 6511992
Showing
166 changed files
with
5,808 additions
and
916,431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
echo "Waiting for Arango" | ||
|
||
ARANGO_STATUS="000" | ||
|
||
until [ "$ARANGO_STATUS" = "200" ] | ||
do | ||
ARANGO_STATUS=`curl -s -o /dev/null -I -w "%{http_code}" --basic --user "${ARANGO_USERNAME}:${ARANGO_PASSWORD}" -X GET ${ARANGO_HOST}/_api/endpoint` | ||
echo "Status of Arango: $ARANGO_STATUS" | ||
sleep 2 | ||
done | ||
|
||
# Run command | https://docs.docker.com/compose/startup-order/ | ||
>&2 echo "Arango started - executing command" | ||
exec $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.