-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade python deps (#51) * Upgrade python deps * Switch back to #develop * Release 4.1.0 (#54) * prepare next dev version * Fix colors assignment in plots (#41) * Prepare github changes * Remove circleci * prepare next dev version * Use `Font Awesome 6 Free` in `font-family` (#39) * Use `Font Awesome 6 Free` in `font-family` Requires datavisyn/tdp_core#732 * Update Lineup to 4.6.2 Co-authored-by: Klaus Eckelt <[email protected]> * Update fontawesome * Merge visyn_scripts * prepare next dev version * Merged `d3_changes` into `develop` (#45) * use d3v7 and d3v3 imports remove depenencies to d3 add dependency to tdp_core * remove console log * Dev d3 merge fix (#47) * move RouterScrollToTop to coral_public * fix TS errors * move canvas-confetti to coral_public * update git dependencies Co-authored-by: Klaus Eckelt <[email protected]> * Automatically select root cohort if onboarding was already done (#48) * Autoselect rootcohort if onboarding was done #579 * format code * Remove grid lines from visualizations (#49) remove gridlines #400 * Upgrade python deps (#51) * Upgrade python deps * Switch back to #develop * prepare release 4.1.0 --------- Co-authored-by: Klaus Eckelt <[email protected]> Co-authored-by: anita-steiner <> Co-authored-by: Holger Stitz <[email protected]> Co-authored-by: Patrick <[email protected]> Co-authored-by: Michael Pühringer <[email protected]> * prepare next dev version * Migration to visyn_core (#55) * Migration to visyn_core * Linting * Upgrade deps --------- Co-authored-by: Michael Puehringer <[email protected]> * Fix cohort * Fix circular dependencies * Further cleanup * Fix async in loop * Import * Add todos for async inside loop errors --------- Co-authored-by: Michael Pühringer <[email protected]> Co-authored-by: Vanessa Stoiber <[email protected]> Co-authored-by: Klaus Eckelt <[email protected]> Co-authored-by: Holger Stitz <[email protected]> Co-authored-by: Patrick <[email protected]> Co-authored-by: dvvanessastoiber <[email protected]> Co-authored-by: Michael Puehringer <[email protected]>
- Loading branch information
1 parent
e2f4b2a
commit 5222012
Showing
69 changed files
with
1,969 additions
and
1,832 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,6 @@ package-lock.json | |
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
|
||
# venv | ||
.venv/ |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import tdp_core.dbmigration.env # NOQA | ||
import visyn_core.dbmigration.env | ||
|
||
tdp_core.dbmigration.env.run_migrations_online() | ||
visyn_core.dbmigration.env.run_migrations_online() |
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,34 @@ | ||
import pytest | ||
from fastapi import FastAPI | ||
from fastapi.testclient import TestClient | ||
from visyn_core.security.manager import SecurityManager | ||
from visyn_core.security.model import User | ||
from visyn_core.server.visyn_server import create_visyn_server | ||
from visyn_core.tests.fixtures.postgres_db import postgres_db | ||
|
||
assert postgres_db # silence unused import warning | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def app(postgres_db) -> FastAPI: | ||
server = create_visyn_server( | ||
workspace_config={ | ||
"tdp_core": {"enabled_plugins": ["tdp_core", "coral"]}, | ||
"coral": { | ||
"dburl": postgres_db.url, | ||
}, | ||
} | ||
) | ||
|
||
return server | ||
|
||
|
||
@pytest.fixture() | ||
def client(monkeypatch, app: FastAPI): | ||
def mock_current_user_in_manager(self): | ||
return User(id="admin") | ||
|
||
monkeypatch.setattr(SecurityManager, "current_user", property(mock_current_user_in_manager)) | ||
|
||
with TestClient(app) as client: | ||
yield client |
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,5 @@ | ||
from fastapi.testclient import TestClient | ||
|
||
|
||
def test_loggedinas(client: TestClient): | ||
assert client.get("/loggedinas").json()["name"] == "admin" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "coral", | ||
"description": "Coral is a web-based cohort analysis tool to interactively create, refine, and analyze patient cohorts.", | ||
"homepage": "https://caleydo.org", | ||
"version": "4.0.1-SNAPSHOT", | ||
"version": "4.1.1-SNAPSHOT", | ||
"author": { | ||
"name": "PatrickAdelberger", | ||
"email": "[email protected]", | ||
|
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,9 +1,5 @@ | ||
black~=22.3.0 | ||
debugpy~=1.5.1 | ||
flake8~=4.0.1 | ||
isort~=5.10.1 | ||
mkdocs-material~=8.2.8 | ||
pep8-naming~=0.12.1 | ||
black~=22.12.0 | ||
pyright~=1.1.285 | ||
pytest-runner~=6.0.0 | ||
pytest~=7.1.1 | ||
recommonmark~=0.7.1 | ||
pytest~=7.2.0 | ||
ruff==0.0.218 |
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,15 @@ | ||
import type { ICohort } from './app/interfaces'; | ||
import type { CohortOverview } from './Overview/CohortOverview'; | ||
import type Taskview from './Taskview/Taskview'; | ||
|
||
export interface ICohortContext { | ||
cohortOverview: CohortOverview; | ||
taskview: Taskview; | ||
referenceCohort: ICohort; | ||
} | ||
|
||
export const CohortContext: ICohortContext = { | ||
cohortOverview: null, | ||
taskview: null, | ||
referenceCohort: null, | ||
}; |
Oops, something went wrong.