Skip to content

Commit 45cb068

Browse files
committed
Merged in stage (pull request #21)
release 0.4.0
2 parents 0f294f2 + 066e06d commit 45cb068

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+32074
-182
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
SHELL = /bin/bash
2-
3-
.PHONY: all
2+
.PHONY: tests
43

54
init:
65
cd django && make init
@@ -41,7 +40,7 @@ deploy_dev:
4140

4241
deploy_local:
4342
docker-compose up -d
44-
make -f vue/Makefile build
43+
make -f vue/Makefile build-cron
4544
source env.hosts.prod && rsync -av --delete vue/dist $$VUE_LOCAL_PATH
4645
docker-compose exec -T django make migrate
4746
docker-compose exec -T django killall -TERM gunicorn
@@ -63,3 +62,7 @@ dump-db:
6362

6463
import-db:
6564
@docker-compose exec pdb sh -c 'psql -U $$POSTGRES_USER $$POSTGRES_DB < /var/services/postgres/var/dump.sql'
65+
66+
tests:
67+
cd django && make tests
68+
cd vue && make tests

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,20 @@ The current tech stack of this project is:
1212
- Wagtail
1313
- Docker
1414

15+
# Releases
16+
17+
*See [RELEASE.md](/RELEASE.md)*
18+
1519
# Developer guide
1620

1721
:construction:
1822

23+
For a tour of the app and a testing protocol see [`docs/testing.md`](/docs/testing.md).
24+
1925
## setup project
2026

27+
Add `django` to the 127.0.0.1 entry in `/etc/hosts` (for screenshot service).
28+
2129
```bash
2230
touch env.hosts.prod # required file, can be empty and edited later
2331
```
@@ -89,5 +97,8 @@ Type `make deploy_prod` in the project root. The file `env.hosts.prod` needs to
8997

9098
## additional docs
9199

92-
- [grahpql](/docs/graphql.md)
93100
- [architecture](/docs/architecture.md)
101+
- [django](/docs/django.md)
102+
- [links](/docs/links.md)
103+
- [grahpql](/docs/graphql.md)
104+
- [troubleshooting](/docs/troubleshooting.md)

RELEASE.md

Lines changed: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,60 @@
11
# Release Notes
22

3-
The latest supported release is [TBD]
3+
## Releases
44

5-
## Latest updates
5+
### 0.3.1
6+
[Released: *2020-04-09*](https://bitbucket.org/cividi/gemeindescan-webui/commits/tag/0.3.1)
7+
[Sprint: 4 "Out of the Box"](https://bitbucket.org/cividi/gemeindescan-webui/issues?milestone=SP+4%3A+Out+of+the+box)
68

7-
You can download the latest updates from https://bitbucket.org/cividi/gemeindescan-webui/src
9+
- Small fixes
810

9-
## Sprint 0: Project setup
11+
### 0.3.0 "Out of the Box"
12+
[Released: *2020-04-09*](https://bitbucket.org/cividi/gemeindescan-webui/commits/tag/0.3.0)
13+
[Sprint: 4 "Out of the Box"](https://bitbucket.org/cividi/gemeindescan-webui/issues?milestone=SP+4%3A+Out+of+the+box)
1014

11-
[Bitbucket issues](https://bitbucket.org/cividi/gemeindescan-webui/issues?status=new&status=open&milestone=Sprint%200%3A%20Project%20setup) - until 10.1.2020
15+
- Workspace support
16+
- Improved layouts
17+
- Improved deployment
18+
- Improved JSON editor in Django-Admin
19+
- Experimental branch: automatic screenshot generator
1220

13-
TODO: what is in this release, bullet points.
21+
### 0.2.1
22+
[Released: *2020-03-16*](https://bitbucket.org/cividi/gemeindescan-webui/commits/tag/0.2.1)
23+
[Sprint: 3 "Hello World"](https://bitbucket.org/cividi/gemeindescan-webui/issues?milestone=SP+3%3A+Hello+world)
24+
25+
- Legend is now using SVG rendering
26+
- Small fixes
27+
28+
### 0.2.0 "Hello World"
29+
[Released: *2020-03-11*](https://bitbucket.org/cividi/gemeindescan-webui/commits/tag/0.2.0)
30+
[Sprint: 3 "Hello World"](https://bitbucket.org/cividi/gemeindescan-webui/issues?milestone=SP+3%3A+Hello+world)
31+
32+
- SnapshotView support according to [Gemeindescan Datapackage Specification](https://bitbucket.org/cividi/gemeindescan-sample/)
33+
- Based on Leaflet and [Simple Style GeoJSON](https://github.com/mapbox/simplestyle-spec)
34+
- Support for [Simple Style GeoJSON](https://github.com/mapbox/simplestyle-spec) and Leaflet Circles
35+
- Support for Legends
36+
- GeoDjango added
37+
38+
### 0.1.2
39+
[Released: *2020-02-20*](https://bitbucket.org/cividi/gemeindescan-webui/commits/tag/0.1.2)
40+
[Sprint: 2 "Map Space"](https://bitbucket.org/cividi/gemeindescan-webui/issues?milestone=SP+2%3A+Map+space)
41+
42+
- Multilanguage support via [`vue-i18n`](https://github.com/kazupon/vue-i18n)
43+
- Improved docker setup
44+
- Experimental: snapshot view
45+
46+
### 0.1.1
47+
[Released: *2020-02-13*](https://bitbucket.org/cividi/gemeindescan-webui/commits/tag/0.1.1)
48+
[Sprint: 2 "Map Space"](https://bitbucket.org/cividi/gemeindescan-webui/issues?milestone=SP+2%3A+Map+space)
49+
50+
- Static content updates
51+
52+
### 0.1.0
53+
[Released: *2020-02-06*](https://bitbucket.org/cividi/gemeindescan-webui/commits/tag/0.1.0)
54+
[Sprint: 0 "Project Setup" + Sprint 1 "Splash Down"](https://bitbucket.org/cividi/gemeindescan-webui/issues?milestone=SP+1%3A+Splash+down&milestone=SP+0%3A+Project+setup)
55+
56+
- Initial version
57+
- Django + Graphene + GraphQL + Vue setup
1458

1559
## See also
1660

django/Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
GEMEINDESCAN_WEBUI_DJANGO=0.3.3
1+
GEMEINDESCAN_WEBUI_DJANGO=0.3.4
22
DOCKER_EXEC=$(shell command -v docker > /dev/null && echo "docker-compose exec django")
3-
3+
all: run-tests run-tests-dev
44
.PHONY: all
55
default: dev
66

@@ -29,6 +29,12 @@ migrate:
2929
$(DOCKER_EXEC) python3 manage.py migrate
3030
make collectstatic
3131

32+
tests:
33+
$(DOCKER_EXEC) pytest --create-db
34+
35+
tests-dev:
36+
$(DOCKER_EXEC) pytest --reuse-db -vvv --nomigrations
37+
3238
delete-gemeinden-django:
3339
$(DOCKER_EXEC) python3 manage.py shell --command="from gsmap.models import Municipality;Municipality.objects.all().delete()"
3440

django/conftest.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pytest
2+
3+
from django.core.management import call_command
4+
5+
@pytest.fixture(scope='session')
6+
def django_db_setup(django_db_setup, django_db_blocker):
7+
with django_db_blocker.unblock():
8+
call_command('loaddata', 'fixtures-tests/sites.site.json')
9+
call_command('loaddata', 'fixtures-tests/gsuser.user.json')
10+
call_command('loaddata', 'fixtures-tests/gsmap.municipality.json')
11+
call_command('loaddata', 'fixtures-tests/gsmap.snapshot.json')

django/docker/django/requirements/02.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ pylint-django==2.0.13
4242
pylint-plugin-utils==0.6
4343
pyparsing==2.4.6
4444
pytest==5.3.5
45+
pytest-django==3.9.0
4546
pytz==2019.3
4647
requests==2.23.0
4748
Rx==1.6.1

django/fixtures-tests/gsmap.municipality.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

django/fixtures-tests/gsmap.snapshot.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"model": "gsuser.user", "pk": 1, "fields": {"password": "pbkdf2_sha256$180000$0wINEkSnlTLQ$cKkWUQGHdT4/pT9KcNzOZ+XS0LNw8Wx4VF4tuZ1oXkE=", "last_login": "2020-05-10T16:16:58.410Z", "is_superuser": true, "username": "admin", "first_name": "", "last_name": "", "email": "[email protected]", "is_staff": true, "is_active": true, "date_joined": "2020-05-10T16:11:16.244Z", "groups": [], "user_permissions": []}}]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"model": "sites.site", "pk": 1, "fields": {"domain": "localhost:8081", "name": "localhost:8081"}}]

0 commit comments

Comments
 (0)