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

Dev live #103

Draft
wants to merge 429 commits into
base: prod-live
Choose a base branch
from
Draft

Dev live #103

wants to merge 429 commits into from

Conversation

IsmailM
Copy link
Member

@IsmailM IsmailM commented Jul 30, 2020

Shall we merge dev-live into Prod-live?

cc'ed: @priesgo @alanwilter @YuanTian1991 @pontikos

Note when merging from dev-live to prod-live, it's best to merge with a rebase - as both branches have the same linear history... Happy to do this when we are ready :)

IsmailM and others added 12 commits July 6, 2020 18:19
* fix #100

* Eslint Prettier

* clean the code for style

* Enslint Prettier.

* fix #114, tried to add icon, but not very nice and seems need to overwrite a lot default metarial UI components.

* Enslint Prettier.

* fix #95

* Enslint Prettier.

* Enslint Prettier.

* Enslint Prettier.

* Fixed bug that pages with tab panel show slightly bigger fontSize.

* Enslint Prettier.

* fix #71

* fix #71

* clean code a bit.

* clean code a bit.
* fix #136, fix #135

* Eslint Prettier

* Add new Chip to table.

* Eslint Prettier.

* Applied chip to meta data and DrawSearch example. fix #132

* Eslint Prettier.

* Added Iconbutton for meta information panal. Apply TypeChip in Old Search page and Edit page.

* Eslint Prettier.
@pontikos
Copy link
Contributor

pontikos commented Jul 30, 2020 via email

@IsmailM
Copy link
Member Author

IsmailM commented Jul 30, 2020

Maybe the Logging level should be set by an env variable:

e.g. INFO (or even DEBUG) when ENVIRONMENT=development & ERROR when ENVIRONMENT=production?

Copy link
Contributor

@pontikos pontikos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok to me. See my comments about:

  • section which may have hardcoded strings
  • about whether verbosity of logging should be decreased or not?

@priesgo

views/__init__.py Show resolved Hide resolved
Copy link
Collaborator

@alanwilter alanwilter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we could go ahead and create an issue to introduce an ENV_LOG_TYPE for example.

views/postgres.py Outdated Show resolved Hide resolved
@alanwilter alanwilter self-requested a review July 31, 2020 08:13
@IsmailM
Copy link
Member Author

IsmailM commented Jul 31, 2020

So shall we wait for the Logging issue - #107

Also, want to clarify here, if there needs to be any changes made to the DB? (If so, we should also update db/import_schema.sql)

IsmailM and others added 9 commits August 4, 2020 16:19
* Udated gitignore

* Code tidied after Daniele's suggestions

* Code tidied and improved autocomplete search

* Introducing tox configuration

* Flake8 and Black applied

* Updated tox.ini and created pyproject.toml for Black code formatter

* Files updated by Black new config in pyproject.toml

* Refactored imports from db

* To include Black and Flake8 for Tox

* Commented out _gene_hpo_ids, not used
* reformat individual.py

* fix the individual update (actually get) + some refactoring around the place

* make good use of postgres API

* black reformatting + excluding some folders from flake8

* controlling none result
@alanwilter @priesgo we should probably test the suggested search functionality using unit test.  I'm going to merge this now into dev-live for testing on the dev website.
* add endpoint for creating individuals

* make authentication backwards compatible
* add 404s to individuals endpoints

* blackened
* add endpoint to post user_individuals

* blackened
alanwilter and others added 17 commits May 25, 2021 23:40
* Delete user #352

* Only Admin and User itself can delete user

* Added button in each user profile to delete it, with a dialog warning. It works well.

Co-authored-by: YuanTian1991 <[email protected]>
* Redesigned the Actionbar.

* fix #293
* Created compact table, nearly done.

* Compact Table Done, looks good.
…ading, they will only be loaded once when first time called, there is no way to replace them with skeleton I think. (#358)
* Updated demo db

* Updated demo db

* Using f-string

* Using new _get_variants

* Updated process_for_display HET and HOM

* Refactored compact lists _individual_complete_view

* _get_variants using new schema

* Fixed duplicated gene_symbol in hpo view

* Fixed a wrong test and updated others

* Updated for new demo db

* Removed redundant v["variant_id"] definition

* Avoid None values in variant dict

* Updated variant pytest

* Updated pytest for variant

* Skip empty genes

* Refactored rare_comp_hets_variants and fixed duplicated genes

* Updated demo db

* updated tests for individuals

* Only new schema now for individuals

* The real fix for sex unknown

* Reverting, the problem was not here

* Text sex unknown

* Add typing to Sex

* API for version
* Just format

* Using new schema for genes

* Stats count genes for user

* Handle transcripts and its canonicals

* Fixed count genes

* Reorganising some general parameters and function

* Added /my_genes (get_all_genes) endpoint

* Harmeless typo

* To handle misisng transcripts

* Updated demo db and pytest for gene and transcript

* Added 'my_variants' endpoint

* Refactored stats for variants in new schema

* Improved 'my_genes' endpoint to render gene chips

* Updated tests for new endpoints & refactored stats

* To reset github action cache check_app_api2

* Reverting to check_app_api

* Make peace with github actions
* Migrated _search_phenotypes to new schema

* Updated tests for HPO autocomplete

* Migrated _search_genes to new schema

* Moved variants search to new schema but not hgvs

* Skipping hgvs autocomplete tests, still old schema

* Reviewed

* NETLIFY_SITE_ID moved to private.env

* HGVS now working but not with Gene Symbol yet

* Bye old schema

* Replace hardcoded GRCh37 with var HG_ASSEMBLY

* Search with HGVs now completed, old schema gone

* Removed netlify reference
@gitguardian
Copy link

gitguardian bot commented Nov 8, 2021

⚠️ GitGuardian has uncovered 29 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
- Generic High Entropy Secret f8bfa7b frontend/.npmrc View secret
- Generic Password ae27c17 tests/test_users.py View secret
- Generic Password a636fb4 views/init.py View secret
- Generic Password 861f236 tests/test.py View secret
- Generic Password aaccc49 src/components/Home/HomeBanner.js View secret
- Generic Password 4f8104c tests/test_login.py View secret
- Generic Password 1d4f8bf src/components/Home/HomeBanner.js View secret
- Generic Password aaccc49 src/components/AppBar/LoginBox.js View secret
- Generic Password 5366e04 src/components/Home/HomeBanner.js View secret
- Generic Password d6eacbf frontend/src/components/Home/HomeBanner.js View secret
- Generic Password aaccc49 src/components/AppBar/LoginBox.js View secret
- Generic Password bf43afe tests/test_auth.py View secret
- Generic Password 968612d tests/conftest.py View secret
- Generic Password 861f236 tests/test_login.py View secret
- Generic Password 7078921 src/components/Home/HomeBanner.js View secret
- Generic Password ee1f23e tests/conftest.py View secret
- Generic Password 5366e04 src/components/AppBar/LoginBox.js View secret
- Generic Password 861f236 tests/test_login.py View secret
- Generic Password 5366e04 src/components/AppBar/LoginBox.js View secret
- Generic Password 767c3e0 src/components/Home/HomeBanner.js View secret
- Generic Password 4f8104c tests/test.py View secret
- Generic Password 861f236 tests/test.py View secret
- Generic Password 4f8104c tests/conftest.py View secret
- Generic Password eb98431 scripts/patch_docker_db.sh View secret
- Generic Password eb98431 scripts/patch_docker_db.sh View secret
- Generic Password ac77931 scripts/patch_db_dev.sh View secret
- Generic Password 67fbed3 public.env View secret
- SMTP credentials 760e9c8 views/init.py View secret
739988 Triggered Generic High Entropy Secret a3c3425 frontend/.npmrc View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

@IsmailM IsmailM marked this pull request as draft November 8, 2021 11:02
alanwilter and others added 8 commits November 9, 2021 12:18
* Able to use either local or S3 remote vcf file

* Improved pytest report

* Rebranded from S3_VCF_FILE_URL to VCF_FILE
* More tests for variants

* Add test for enabling a non-existing user

* Add my_hpos endpoint #169
* Hide external_id for demo

* Updated test_get_genotypes_exception

* Another try with test_get_genotypes_exception

* Silenced test_get_genotypes_exception

* Typo

* Freeze cyvcf2 0.30.12
* Added and applied pre-commit

* Typing
@pontikos
Copy link
Contributor

pontikos commented May 9, 2023

@IsmailM what is the status of this draft?

Bumps [black](https://github.com/psf/black) from 19.10b0 to 24.3.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits/24.3.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Copy link

netlify bot commented Mar 27, 2024

Deploy Preview for phenopolis-dev canceled.

Name Link
🔨 Latest commit 9676673
🔍 Latest deploy log https://app.netlify.com/sites/phenopolis-dev/deploys/66049aa27793120008b74f48

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.

8 participants