Skip to content

Commit

Permalink
AB#91450 Add column to dataset to configure exporting data.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjmurre committed Jan 10, 2024
1 parent 85c191b commit 065c44e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 2024-01-10 (5.22.0)

* Add `enable_export` column to the `dataset` model to be able
to configure the exports per dataset.

# 2024-01-08 (5.21.2)

* Remove the Django >= 4.2 pinning, because DSO is still on Django 3.x.
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = amsterdam-schema-tools
version = 5.21.2
version = 5.22.0
url = https://github.com/amsterdam/schema-tools
license = Mozilla Public 2.0
author = Team Data Diensten, van het Dataplatform onder de Directie Digitale Voorzieningen (Gemeente Amsterdam)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.1.7 on 2024-01-10 16:59

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("datasets", "0016_dataset_view_data"),
]

operations = [
migrations.AddField(
model_name="dataset",
name="enable_export",
field=models.BooleanField(default=False),
),
]
1 change: 1 addition & 0 deletions src/schematools/contrib/django/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ class Dataset(models.Model):
# Settings for publishing the schema:
enable_api = models.BooleanField(default=True)
enable_db = models.BooleanField(default=True)
enable_export = models.BooleanField(default=False)
endpoint_url = models.URLField(blank=True, null=True)
path = models.TextField(unique=True, blank=False, validators=[URLPathValidator()])
auth = models.CharField(_("Authorization"), blank=True, null=True, max_length=250)
Expand Down

0 comments on commit 065c44e

Please sign in to comment.