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

feat: modify searchbar to use vuetify toolbars (#17) #18

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
ee5ab62
feat: environment files
gromdimon Aug 15, 2023
ca15639
feat: implement reverse_proxy
gromdimon Aug 15, 2023
655cf0b
feat: tests for proxies
gromdimon Aug 15, 2023
2c1a2b4
fix: temporary fix for failing tests
gromdimon Aug 15, 2023
0b94d4c
feat: first try to implement search bar
gromdimon Aug 15, 2023
8474734
feat: search logic
gromdimon Aug 16, 2023
49bca7e
feat: new styling
gromdimon Aug 16, 2023
7f3a086
wip
gromdimon Aug 17, 2023
41684f7
wip
gromdimon Aug 21, 2023
5fc52ba
wip
gromdimon Aug 22, 2023
0818705
feat: environment files
gromdimon Aug 15, 2023
56fd581
feat: implement reverse_proxy
gromdimon Aug 15, 2023
81ab44d
feat: tests for proxies
gromdimon Aug 15, 2023
0909ef6
fix: temporary fix for failing tests
gromdimon Aug 15, 2023
fd79e52
feat: first try to implement search bar
gromdimon Aug 15, 2023
a670963
feat: search logic
gromdimon Aug 16, 2023
bf56aa8
feat: new styling
gromdimon Aug 16, 2023
424b259
wip
gromdimon Aug 17, 2023
9dc6ca8
wip
gromdimon Aug 21, 2023
74d8450
pull
gromdimon Aug 22, 2023
ad9a08b
cleanup
gromdimon Aug 22, 2023
89c89b2
cleanup#2
gromdimon Aug 22, 2023
2a3a39c
feat: search logic + ui view
gromdimon Aug 22, 2023
967cc01
feat: geneInformation
gromdimon Aug 22, 2023
f95d69e
wip
gromdimon Aug 22, 2023
c7ec27a
wip
gromdimon Aug 23, 2023
0e1a011
Delete info?hgnc-id=HGNC:1100
gromdimon Aug 23, 2023
e7fcdde
wip
gromdimon Aug 23, 2023
2ced3e9
Merge branch '11-implement-gene-search-functionality-and-gene-informa…
gromdimon Aug 23, 2023
6254d7b
wip
gromdimon Aug 23, 2023
c4f00fc
wip
gromdimon Aug 23, 2023
b1689cf
ci
gromdimon Aug 23, 2023
fe59d8f
tests
gromdimon Aug 23, 2023
8f10113
backend cleanup
gromdimon Aug 24, 2023
50e411c
tests
gromdimon Aug 24, 2023
22d1e85
wip
gromdimon Aug 25, 2023
eadad2d
new structure
gromdimon Aug 25, 2023
db627cf
wip
gromdimon Aug 25, 2023
9f15977
testing
gromdimon Aug 28, 2023
08adc56
wip
gromdimon Aug 28, 2023
afe7302
wip
gromdimon Aug 28, 2023
0a74af2
docker issue
gromdimon Aug 28, 2023
15c9515
minor
gromdimon Aug 28, 2023
3e5237a
docker
gromdimon Aug 28, 2023
8cb98ee
doc
gromdimon Aug 28, 2023
7bdd23e
minor
gromdimon Aug 29, 2023
39b9941
feat: search-bar with vuetify toolbar
gromdimon Aug 29, 2023
814b0b2
wip
gromdimon Aug 30, 2023
4621d08
codecov
gromdimon Aug 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/__tests__/**
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/__tests__/*.json filter=lfs diff=lfs merge=lfs -text
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
lfs: 'true'

- name: Set up Python 3.10
uses: actions/setup-python@v4
Expand All @@ -48,6 +50,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
lfs: 'true'

- name: Set up Python 3.10
uses: actions/setup-python@v4
Expand Down Expand Up @@ -84,6 +88,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
lfs: 'true'

- name: Set up node 20.x
uses: actions/setup-node@v3
Expand All @@ -106,6 +112,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
lfs: 'true'

- name: Set up node 20.x
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion backend/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

import httpx
from dotenv import load_dotenv
from fastapi import FastAPI, Query
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from fastapi.staticfiles import StaticFiles
from starlette.background import BackgroundTask
from starlette.requests import Request
from starlette.responses import JSONResponse, RedirectResponse, Response, StreamingResponse
from starlette.responses import RedirectResponse, Response, StreamingResponse

# Load environment
env = os.environ
Expand Down Expand Up @@ -52,7 +52,7 @@ async def reverse_proxy(request: Request) -> Response:
backend_url = None

if url.path.startswith("/proxy/annonars"):
backend_url = BACKEND_PREFIX_ANNONARS + url.path.replace("/proxy/annonars", "/annos")
backend_url = BACKEND_PREFIX_ANNONARS + url.path.replace("/proxy/annonars", "")
elif url.path.startswith("/proxy/mehari"):
backend_url = BACKEND_PREFIX_MEHARI + url.path.replace("/proxy/mehari", "")
elif url.path.startswith("/proxy/viguno"):
Expand Down
4 changes: 2 additions & 2 deletions backend/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import pytest
from app import main
from requests_mock import Mocker
from starlette.testclient import TestClient

#: Host name to use for the mocked backend.
Expand All @@ -18,6 +17,7 @@
@pytest.fixture
def non_mocked_hosts() -> typing.List[str]:
"""List of hosts that should not be mocked.

We read the host from ``client``.
"""
return [client._base_url.host]
Expand All @@ -28,7 +28,7 @@ async def test_proxy_annonars(monkeypatch, httpx_mock):
"""Test proxying to annonars backend."""
monkeypatch.setattr(main, "BACKEND_PREFIX_ANNONARS", f"http://{MOCKED_BACKEND_HOST}")
httpx_mock.add_response(
url=f"http://{MOCKED_BACKEND_HOST}/annos/{MOCKED_URL_TOKEN}",
url=f"http://{MOCKED_BACKEND_HOST}/{MOCKED_URL_TOKEN}",
method="GET",
text="Mocked response",
)
Expand Down
27 changes: 27 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# For more configuration details:
# https://docs.codecov.io/docs/codecov-yaml

# Check if this file is valid by running in bash:
# curl -X POST --data-binary @.codecov.yml https://codecov.io/validate

# Coverage configuration
# ----------------------
coverage:
status:
patch: false

range: 60..80 # First number represents red, and second represents green
# (default is 70..100)
round: down # up, down, or nearest
precision: 2 # Number of decimal places, between 0 and 5

# Ignoring Paths
# --------------
# which folders/files to ignore

# Pull request comments:
# ----------------------
# Diff is the Coverage Diff of the pull request.
# Files are the files impacted by the pull request
comment:
layout: diff, files # accepted in any order: reach, diff, flags, and/or files
36 changes: 36 additions & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,39 @@
<script type="module" src="/src/main.ts"></script>
</body>
</html>

<style>
#app {
margin: 0;
padding: 0;
display: flex;
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
min-height: 100vh; /* Ensure the content takes up at least the full viewport height */
font-weight: normal;
}

a,
.green {
text-decoration: none;
color: rgb(111, 100, 210);
transition: 0.4s;
}

@media (min-width: 1024px) {
body {
display: flex;
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
min-height: 100vh; /* Ensure the body takes up at least the full viewport height */
}

#app {
display: grid;
grid-template-columns: 1fr;
width: 100%; /* Take up the full available width */
max-width: none; /* Remove max-width to utilize full width */
align-items: center; /* Center horizontally */
}
}
</style>
Loading
Loading