-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Negative genes input, neutral genes output, CI deploy refactor, and o…
…ther frontend additions (#49) @ChristopherMancuso please look at the negative genes input and neutral gene results portions. You'll have to run the stack locally. @falquaddoomi please take a look at the deployment workflows. I haven't tested these on a fork yet, and haven't generated the secrets yet either. - format workflow files with prettier - CI deploy the backend and frontend in sequence, in single workflow, so that they are deployed close together in time. make frontend deployment dependent on function deploy success or skip. - add link to old geneplexus - add "negatives" to analysis input type, and "neutral gene info" to analysis output type - tweak select component prop names and styles, and update in-situ usage of them to match - tweak table component. pass row to custom render func, fix expansion css, more descriptive filter labels, fix filter bug - add note about old geneplexus to about page and home page - add "neutrals" tab in analysis results page with basic table view of neutral gene info - add negative genes input text box on new analysis page, and incorporate into "check genes" functionality - add redirect link on 404 page to old site - update cloud functions to take negatives as input and return neutral gene info as output --------- Co-authored-by: Faisal Alquaddoomi <falquaddoomi@gmail.com>
- Loading branch information
1 parent
874f5da
commit f11a40b
Showing
48 changed files
with
834 additions
and
611 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,96 @@ | ||
name: Deploy backend functions and frontend app | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
path-changes: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- uses: dorny/paths-filter@v3 | ||
id: changes | ||
with: | ||
filters: | | ||
convert_ids: | ||
- "functions/convert_ids/convert_ids_deploy/**" | ||
ml: | ||
- "functions/ml/ml_deploy/**" | ||
outputs: | ||
convert_ids: ${{ steps.changes.outputs.convert_uds }} | ||
ml: ${{ steps.changes.outputs.ml }} | ||
|
||
deploy-convert-ids: | ||
needs: path-changes | ||
if: ${{ needs.path-changes.outputs.convert_ids == 'true' }} | ||
uses: ./.github/workflows/deploy-func.yaml | ||
with: | ||
func-name: "gpz-convert-ids" | ||
func-src-dir: "functions/convert_ids/convert_ids_deploy" | ||
func-entrypoint: "convert_ids" | ||
func-memory-mb: 1024 | ||
func-data-gcs-url: "gs://geneplexus-func-data/convert-ids/convert-ids_data.tar.gz" | ||
secrets: inherit | ||
|
||
deploy-ml: | ||
needs: path-changes | ||
if: ${{ needs.path-changes.outputs.ml == 'true' }} | ||
uses: ./.github/workflows/deploy-func.yaml | ||
with: | ||
func-name: "gpz-ml" | ||
func-src-dir: "functions/ml/ml_deploy" | ||
func-entrypoint: "ml" | ||
func-memory-mb: 8192 | ||
func-data-gcs-url: "gs://geneplexus-func-data/ml/ml_data.tar.gz" | ||
secrets: inherit | ||
|
||
deploy-frontend: | ||
needs: | ||
- deploy-convert-ids | ||
- deploy-ml | ||
# https://github.com/actions/runner/issues/491#issuecomment-850884422 | ||
if: | | ||
always() && | ||
(needs.deploy-convert-ids.result == 'success' || needs.deploy-convert-ids.result == 'skipped') && | ||
(needs.deploy-ml.result == 'success' || needs.deploy-ml.result == 'skipped') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Bun | ||
uses: oven-sh/setup-bun@v1 | ||
|
||
- name: Install packages | ||
run: bun install | ||
working-directory: frontend | ||
|
||
- if: runner.debug == '1' | ||
uses: mxschmitt/action-tmate@v3 | ||
|
||
- name: Build | ||
run: bun run build | ||
working-directory: frontend | ||
|
||
- name: Deploy to Netlify | ||
uses: nwtgck/actions-netlify@v3.0 | ||
with: | ||
publish-dir: .frontend/dist | ||
production-branch: main | ||
production-deploy: true | ||
deploy-message: Deploy from GitHub Actions | ||
enable-pull-request-comment: false | ||
enable-commit-comment: false | ||
enable-commit-status: true | ||
overwrites-pull-request-comment: false | ||
enable-github-deployment: false | ||
fails-without-credentials: true | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
timeout-minutes: 1 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
*DS_Store | ||
.DS_Store | ||
functions/ml/ml_deploy/data/ | ||
functions/convert_ids/convert_ids_deploy/data/ | ||
|
||
|
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
# GenePlexus App v2.0 | ||
|
||
[![Cloud Function Deploy Helper](https://github.com/krishnanlab/geneplexus-app-v2/actions/workflows/deploy.yaml/badge.svg)](https://github.com/krishnanlab/geneplexus-app-v2/actions/workflows/deploy.yaml) [![Netlify Status](https://api.netlify.com/api/v1/badges/aae668a9-01fa-4998-9158-60c92d994598/deploy-status)](https://app.netlify.com/sites/molevolvr/deploys) |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
VITE_TITLE=GenePlexus | ||
VITE_DESCRIPTION=GenePlexus enables researchers to predict novel genes similar to genes of interest based on their patterns of connectivity in human genome-scale networks. | ||
VITE_URL= | ||
VITE_URL=https://geneplexus.net | ||
VITE_OLD_URL=https://geneplexus-old.net | ||
VITE_API=https://us-central1-gap-som-dbmi-geneplx-app-p0n.cloudfunctions.net |
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.