Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 3adb876

Browse files
authored
Merge pull request #191 from VariantEffect/release/2.2.2
Release/2.2.2
2 parents 194e938 + f0c8a70 commit 3adb876

File tree

5 files changed

+25
-37
lines changed

5 files changed

+25
-37
lines changed

DEVELOPERS.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,15 @@ python manage.py runserver 0.0.0.0:8000
127127

128128
# Building a new image
129129

130-
## MaveHGVS docs
131-
Place the `mavehgvs` sphinx documentation files into `/docs/mavehgvs/`. The build path in `Makefile` and `make.bat`
132-
must be `../build/docs/mavehgvs/`. Once the application starts, this documentation will be collected in the static file
133-
directory and served at `https://mavedb.org/docs/mavehgvs`.
134-
135-
You can use the `./publish` script to build a new image and push it to the MaveDB [Docker Hub repository](https://hub.docker.com/).
136-
The script takes the following arguments in the following order `IMAGE_NAME`, `TAG`, `REPOSITORY`', where `IMAGE_NAME` and `REPOSITORY`
137-
are both `mavedb` for now.
130+
The `mavehgvs` and MaveTools documentation will be automatically built and placed in the correct location as specified
131+
in the Dockerfile.
132+
133+
To create the new image, follow these steps:
134+
```shell script
135+
MAVEDB_VERSION="2.2.2" # update to the version being built
136+
137+
docker build . -t mavedb/mavedb:$MAVEDB_VERSION --no-cache
138+
docker tag mavedb/mavedb:$MAVEDB_VERSION mavedb/mavedb:latest
139+
docker push mavedb/mavedb:$MAVEDB_VERSION
140+
docker push mavedb/mavedb:latest
141+
```

api/views.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -534,14 +534,19 @@ def _parse_reference_maps_data(data):
534534
request_data = json.loads(request.POST["request"])
535535
scoreset_request_data = request_data["scoreset"]
536536
target_request_data = request_data["target"]
537-
uniprot_request_data = request_data["uniprot"]
538-
ensembl_request_data = request_data["ensembl"]
539-
refseq_request_data = request_data["refseq"]
537+
# Accept none value for uniprot, ensemb and refseq.
538+
uniprot_request_data = request_data.get("uniprot", None)
539+
ensembl_request_data = request_data.get("ensembl", None)
540+
refseq_request_data = request_data.get("refseq", None)
540541
reference_maps_request_data = request_data["reference_maps"]
541542
files = {
542-
constants.variant_score_data: request.FILES["score_data"],
543-
constants.variant_count_data: request.FILES["count_data"],
544-
constants.meta_data: request.FILES["meta_data"],
543+
constants.variant_score_data: request.FILES.get(
544+
"score_data", None
545+
),
546+
constants.variant_count_data: request.FILES.get(
547+
"count_data", None
548+
),
549+
constants.meta_data: request.FILES.get("meta_data", None),
545550
}
546551
if "fasta_file" in request.FILES:
547552
files["sequence_fasta"] = request.FILES["fasta_file"]

data/main/site_info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"md_privacy": "",
77
"md_terms": "",
88
"md_usage_guide": "",
9-
"version": "2.2.1"
9+
"version": "2.2.2"
1010
}

main/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
urlpatterns = [
1212
url(r"^$", views.home_view, name="home"),
1313
# ------------ Documentation landing page ---------------------- #
14-
url(r"^docs", views.documentation_view, name="docs-landing"),
14+
url(r"^docs/$", views.documentation_view, name="docs-landing"),
1515
# ------------ MaveDB documentation ---------------------- #
1616
url(
1717
r"^docs/mavedb/$",

publish

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)