Skip to content

Commit

Permalink
Merge pull request #25 from scaife-viewer/atlas/data-model-version
Browse files Browse the repository at this point in the history
Retire DATA_MODEL_ID setting
  • Loading branch information
jacobwegner authored Oct 14, 2020
2 parents 2e4613f + aa872f0 commit edf95ce
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
8 changes: 0 additions & 8 deletions atlas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ Default: `None`

The path to the directory containing ATLAS data

**DATA_MODEL_ID**

Default: A base64 encoded representation of the last release (in `YYYY-MM-DD-###` format) where a
backwards incompatible schema change occurred.

Site developers can use the value of this setting to help inform when ATLAS content should be re-ingested
due to BI schema changes.

**INGESTION_CONCURRENCY**

Default: `None`
Expand Down
2 changes: 0 additions & 2 deletions atlas/scaife_viewer/atlas/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import base64
import importlib

from django.conf import settings # noqa
Expand Down Expand Up @@ -26,7 +25,6 @@ def load_path_attr(path):
class ATLASAppConf(AppConf):
# Data model
DATA_DIR = None
DATA_MODEL_ID = base64.b64encode(b"2020-09-08-001\n").decode()
INGESTION_CONCURRENCY = None
NODE_ALPHABET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"

Expand Down
15 changes: 15 additions & 0 deletions atlas/scaife_viewer/atlas/data_model.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import base64


"""
`VERSION` is a base64 encoded representation of the last ATLAS release
(in `YYYY-MM-DD-###` format) where a backwards incompatible schema change
occurred.
Site developers can use the value of this setting to help inform when ATLAS
content should be re-ingested due to BI schema changes, e.g.:
* Leveraging the `prepare_atlas_db` management command
* Comparing a site-level setting to the current VERSION constant
"""
VERSION = base64.b64encode(b"2020-09-08-001\n").decode()
2 changes: 1 addition & 1 deletion atlas/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
author_email="[email protected]",
description="Aligned Text and Linguistic Annotation Server (ATLAS)",
name="scaife-viewer-atlas",
version="0.1a7",
version="0.1a8",
url="http://github.com/scaife-viewer/backend/",
license="MIT",
packages=find_packages(),
Expand Down

0 comments on commit edf95ce

Please sign in to comment.