Skip to content

Commit 3a84b45

Browse files
authored
Merge pull request #462 from maykinmedia/release/2.4.4
Release/2.4.4
2 parents 43b6f7d + c209600 commit 3a84b45

20 files changed

+386
-35
lines changed

.bumpversion.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[bumpversion]
22
commit = False
33
tag = False
4-
current_version = 2.4.3
4+
current_version = 2.4.4
55

66
[bumpversion:file:README.rst]
77

.github/workflows/oaf-check.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Check Open API Framework Version
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '36 0 * * 0'
7+
8+
jobs:
9+
run:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.11'
17+
- name: Install dependencies
18+
run: pip install -U pip-tools
19+
- name: Run compile dependencies
20+
run: ./bin/compile_dependencies.sh --upgrade-package open-api-framework
21+
22+
- name: Check git diff
23+
run: git diff --exit-code -- requirements/*.txt

CHANGELOG.rst

+26-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,35 @@
22
Change history
33
==============
44

5+
3.0.0 (WIP)
6+
-----------
7+
8+
**Breaking changes**
9+
10+
* dropped support for v1 endpoints (#453)
11+
12+
13+
2.4.4 (2024-10-01)
14+
------------------
15+
16+
**Bugfixes and QOL**
17+
18+
* fixed CSP errors on the OAS page (#458)
19+
* fixed OIDC login by making SameSite setting lax (#458)
20+
* fixed adding permissions in the Admin (#449)
21+
* fixed ``NOTIFICATIONS_DISABLED`` setting (#452)
22+
23+
**Project maintenance**
24+
25+
* added CI action to check if OAF is up-to-date (#443)
26+
27+
528
2.4.3 (2024-09-18)
629
------------------
730

831
**New features**
932

33+
* added an endpoint to retrieve a specific object version (#328)
1034
* supported the `in` operator in `data_attrs` to match one element (#414)
1135

1236
**Bugfixes and QOL**
@@ -15,9 +39,9 @@ Change history
1539
* fixed 2FA app title (#442)
1640
* bumped setuptools and npm dependencies (#441)
1741

18-
**Project maintaince**
42+
**Project maintenance**
1943

20-
* disabled cofiguration steps by default (#446)
44+
* disabled configuration steps by default (#446)
2145
* increase default values for uwsgi processes and threads (#448)
2246

2347
.. warning::

README.NL.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Objecten API
33
============
44

5-
:Version: 2.4.3
5+
:Version: 2.4.4
66
:Source: https://github.com/maykinmedia/objecttypes-api
77
:Keywords: objecten, assets, zaakobjecten
88

@@ -38,10 +38,10 @@ Versie Release datum API specificatie
3838
============== ============== =============================
3939
latest n/a `ReDoc <https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/master/src/objects/api/v2/openapi.yaml>`_,
4040
`Swagger <https://petstore.swagger.io/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/master/src/objects/api/v2/openapi.yaml>`_,
41-
(`verschillen <https://github.com/maykinmedia/objects-api/compare/2.4.3..master#diff-b9c28fec6c3f3fa5cff870d24601d6ab7027520f3b084cc767aefd258cb8c40a>`_)
42-
2.4.3 2024-03-22 `ReDoc <https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/2.4.3/src/objects/api/v2/openapi.yaml>`_,
43-
`Swagger <https://petstore.swagger.io/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/2.4.3/src/objects/api/v2/openapi.yaml>`_
44-
(`verschillen <https://github.com/maykinmedia/objects-api/compare/2.3.0..2.4.3#diff-b9c28fec6c3f3fa5cff870d24601d6ab7027520f3b084cc767aefd258cb8c40a>`_)
41+
(`verschillen <https://github.com/maykinmedia/objects-api/compare/2.4.4..master#diff-b9c28fec6c3f3fa5cff870d24601d6ab7027520f3b084cc767aefd258cb8c40a>`_)
42+
2.4.4 2024-03-22 `ReDoc <https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/2.4.4/src/objects/api/v2/openapi.yaml>`_,
43+
`Swagger <https://petstore.swagger.io/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/2.4.4/src/objects/api/v2/openapi.yaml>`_
44+
(`verschillen <https://github.com/maykinmedia/objects-api/compare/2.3.0..2.4.4#diff-b9c28fec6c3f3fa5cff870d24601d6ab7027520f3b084cc767aefd258cb8c40a>`_)
4545
2.3.0 2024-03-15 `ReDoc <https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/2.3.0/src/objects/api/v2/openapi.yaml>`_,
4646
`Swagger <https://petstore.swagger.io/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/2.3.0/src/objects/api/v2/openapi.yaml>`_
4747
(`verschillen <https://github.com/maykinmedia/objects-api/compare/2.2.1..2.3.0#diff-b9c28fec6c3f3fa5cff870d24601d6ab7027520f3b084cc767aefd258cb8c40a>`_)

README.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Objects API
33
===========
44

5-
:Version: 2.4.3
5+
:Version: 2.4.4
66
:Source: https://github.com/maykinmedia/objects-api
77
:Keywords: objects, assets, zaakobjecten
88

@@ -36,10 +36,10 @@ Version Release date API specification
3636
============== ============== =============================
3737
latest n/a `ReDoc <https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/master/src/objects/api/v2/openapi.yaml>`_,
3838
`Swagger <https://petstore.swagger.io/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/master/src/objects/api/v2/openapi.yaml>`_,
39-
(`diff <https://github.com/maykinmedia/objects-api/compare/2.4.3..master#diff-b9c28fec6c3f3fa5cff870d24601d6ab7027520f3b084cc767aefd258cb8c40a>`_)
40-
2.4.3 2024-03-22 `ReDoc <https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/2.4.3/src/objects/api/v2/openapi.yaml>`_,
41-
`Swagger <https://petstore.swagger.io/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/2.4.3/src/objects/api/v2/openapi.yaml>`_
42-
(`diff <https://github.com/maykinmedia/objects-api/compare/2.3.0..2.4.3#diff-b9c28fec6c3f3fa5cff870d24601d6ab7027520f3b084cc767aefd258cb8c40a>`_)
39+
(`diff <https://github.com/maykinmedia/objects-api/compare/2.4.4..master#diff-b9c28fec6c3f3fa5cff870d24601d6ab7027520f3b084cc767aefd258cb8c40a>`_)
40+
2.4.4 2024-03-22 `ReDoc <https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/2.4.4/src/objects/api/v2/openapi.yaml>`_,
41+
`Swagger <https://petstore.swagger.io/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/2.4.4/src/objects/api/v2/openapi.yaml>`_
42+
(`diff <https://github.com/maykinmedia/objects-api/compare/2.3.0..2.4.4#diff-b9c28fec6c3f3fa5cff870d24601d6ab7027520f3b084cc767aefd258cb8c40a>`_)
4343
2.3.0 2024-03-15 `ReDoc <https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/2.3.0/src/objects/api/v2/openapi.yaml>`_,
4444
`Swagger <https://petstore.swagger.io/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/2.3.0/src/objects/api/v2/openapi.yaml>`_
4545
(`diff <https://github.com/maykinmedia/objects-api/compare/2.2.1..2.3.0#diff-b9c28fec6c3f3fa5cff870d24601d6ab7027520f3b084cc767aefd258cb8c40a>`_)

docs/api/index.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ API Specification version(s)
1414
`Redoc <https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/maykinmedia/objecttypes-api/2.0.0/src/objecttypes/api/v2/openapi.yaml>`__,
1515
`Swagger <https://petstore.swagger.io/?url=https://raw.githubusercontent.com/maykinmedia/objecttypes-api/2.0.0/src/objecttypes/api/v2/openapi.yaml>`__
1616
)
17-
`Objects API`_ 2.4.3 (
18-
`Redoc <https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/2.4.3/src/objects/api/v2/openapi.yaml>`__,
19-
`Swagger <https://petstore.swagger.io/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/2.4.3/src/objects/api/v2/openapi.yaml>`__
17+
`Objects API`_ 2.4.4 (
18+
`Redoc <https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/2.4.4/src/objects/api/v2/openapi.yaml>`__,
19+
`Swagger <https://petstore.swagger.io/?url=https://raw.githubusercontent.com/maykinmedia/objects-api/2.4.4/src/objects/api/v2/openapi.yaml>`__
2020
)
2121
====================== ==========================================
2222

docs/installation/config.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Available environment variables
1616
Required
1717
--------
1818

19-
* ``SECRET_KEY``: Secret key that's used for certain cryptographic utilities. You should generate one via `miniwebtool <https://www.miniwebtool.com/django-secret-key-generator>`_.
19+
* ``SECRET_KEY``: Secret key that's used for certain cryptographic utilities. .
2020
* ``ALLOWED_HOSTS``: a comma separated (without spaces!) list of domains that serve the installation. Used to protect against Host header attacks. Defaults to: ``(empty string)``.
2121
* ``CACHE_DEFAULT``: redis cache address for the default cache (this **MUST** be set when using Docker). Defaults to: ``localhost:6379/0``.
2222
* ``CACHE_AXES``: redis cache address for the brute force login protection cache (this **MUST** be set when using Docker). Defaults to: ``localhost:6379/0``.
@@ -86,7 +86,7 @@ Optional
8686
* ``LOG_LEVEL``: control the verbosity of logging output. Available values are ``CRITICAL``, ``ERROR``, ``WARNING``, ``INFO`` and ``DEBUG``. Defaults to: ``WARNING``.
8787
* ``LOG_QUERIES``: enable (query) logging at the database backend level. Note that you must also set ``DEBUG=1``, which should be done very sparingly!. Defaults to: ``False``.
8888
* ``LOG_REQUESTS``: enable logging of the outgoing requests. Defaults to: ``False``.
89-
* ``SESSION_COOKIE_SAMESITE``: The value of the SameSite flag on the session cookie. This flag prevents the cookie from being sent in cross-site requests thus preventing CSRF attacks and making some methods of stealing session cookie impossible. Defaults to: ``Strict``.
89+
* ``SESSION_COOKIE_SAMESITE``: The value of the SameSite flag on the session cookie. This flag prevents the cookie from being sent in cross-site requests thus preventing CSRF attacks and making some methods of stealing session cookie impossible.Currently interferes with OIDC. Keep the value set at Lax if used. Defaults to: ``Lax``.
9090
* ``CSRF_COOKIE_SAMESITE``: The value of the SameSite flag on the CSRF cookie. This flag prevents the cookie from being sent in cross-site requests. Defaults to: ``Strict``.
9191
* ``ENVIRONMENT``: An identifier for the environment, displayed in the admin depending on the settings module used and included in the error monitoring (see ``SENTRY_DSN``). The default is set according to ``DJANGO_SETTINGS_MODULE``.
9292
* ``SUBPATH``: If hosted on a subpath, provide the value here. If you provide ``/gateway``, the component assumes its running at the base URL: ``https://somedomain/gateway/``. Defaults to an empty string. Defaults to: ``None``.

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "objects",
3-
"version": "2.4.3",
3+
"version": "2.4.4",
44
"description": "objects project",
55
"main": "src/objects/static/bundles/objects-js.js",
66
"directories": {

publiccode.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ publiccodeYmlVersion: '0.2'
77
name: Objects API
88
url: 'http://github.com/maykinmedia/objects-api.git'
99
softwareType: standalone/backend
10-
softwareVersion: 2.4.3
10+
softwareVersion: 2.4.4
1111
releaseDate: '2021-01-13'
1212
logo: 'https://github.com/maykinmedia/objects-api/blob/master/docs/logo.png'
1313
platforms:

requirements/base.txt

+8-3
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ django==4.2.15
9797
# djangorestframework-inclusions
9898
# drf-nested-routers
9999
# drf-spectacular
100+
# drf-spectacular-sidecar
100101
# drf-yasg
101102
# maykin-2fa
102103
# mozilla-django-oidc
@@ -177,8 +178,12 @@ djangorestframework-inclusions==1.2.0
177178
# via open-api-framework
178179
drf-nested-routers==0.93.3
179180
# via commonground-api-common
180-
drf-spectacular==0.27.2
181-
# via open-api-framework
181+
drf-spectacular[sidecar]==0.27.2
182+
# via
183+
# drf-spectacular
184+
# open-api-framework
185+
drf-spectacular-sidecar==2024.7.1
186+
# via drf-spectacular
182187
drf-yasg==1.21.7
183188
# via commonground-api-common
184189
ecs-logging==2.1.0
@@ -238,7 +243,7 @@ notifications-api-common==0.2.2
238243
# via
239244
# -r requirements/base.in
240245
# commonground-api-common
241-
open-api-framework==0.8.0
246+
open-api-framework==0.8.1
242247
# via -r requirements/base.in
243248
orderedmultidict==1.0.1
244249
# via furl

requirements/ci.txt

+8-2
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ django==4.2.15
139139
# djangorestframework-inclusions
140140
# drf-nested-routers
141141
# drf-spectacular
142+
# drf-spectacular-sidecar
142143
# drf-yasg
143144
# maykin-2fa
144145
# mozilla-django-oidc
@@ -271,10 +272,15 @@ drf-nested-routers==0.93.3
271272
# via
272273
# -r requirements/base.txt
273274
# commonground-api-common
274-
drf-spectacular==0.27.2
275+
drf-spectacular[sidecar]==0.27.2
275276
# via
276277
# -r requirements/base.txt
278+
# drf-spectacular
277279
# open-api-framework
280+
drf-spectacular-sidecar==2024.7.1
281+
# via
282+
# -r requirements/base.txt
283+
# drf-spectacular
278284
drf-yasg==1.21.7
279285
# via
280286
# -r requirements/base.txt
@@ -381,7 +387,7 @@ notifications-api-common==0.2.2
381387
# via
382388
# -r requirements/base.txt
383389
# commonground-api-common
384-
open-api-framework==0.8.0
390+
open-api-framework==0.8.1
385391
# via -r requirements/base.txt
386392
orderedmultidict==1.0.1
387393
# via

requirements/dev.txt

+8-2
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ django==4.2.15
161161
# djangorestframework-inclusions
162162
# drf-nested-routers
163163
# drf-spectacular
164+
# drf-spectacular-sidecar
164165
# drf-yasg
165166
# maykin-2fa
166167
# mozilla-django-oidc
@@ -303,10 +304,15 @@ drf-nested-routers==0.93.3
303304
# via
304305
# -r requirements/ci.txt
305306
# commonground-api-common
306-
drf-spectacular==0.27.2
307+
drf-spectacular[sidecar]==0.27.2
307308
# via
308309
# -r requirements/ci.txt
310+
# drf-spectacular
309311
# open-api-framework
312+
drf-spectacular-sidecar==2024.7.1
313+
# via
314+
# -r requirements/ci.txt
315+
# drf-spectacular
310316
drf-yasg==1.21.7
311317
# via
312318
# -r requirements/ci.txt
@@ -430,7 +436,7 @@ notifications-api-common==0.2.2
430436
# via
431437
# -r requirements/ci.txt
432438
# commonground-api-common
433-
open-api-framework==0.8.0
439+
open-api-framework==0.8.1
434440
# via -r requirements/ci.txt
435441
orderedmultidict==1.0.1
436442
# via

src/objects/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from .celery import app as celery_app
22

33
__all__ = ("celery_app",)
4-
__version__ = "2.4.3"
4+
__version__ = "2.4.4"
55
__author__ = "Maykin Media"
66
__homepage__ = "https://github.com/maykinmedia/objects-api"

src/objects/api/v2/openapi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.0.3
22
info:
33
title: Objects API
4-
version: 2.4.3 (v2)
4+
version: 2.4.4 (v2)
55
description: |
66
An API to manage Objects.
77

src/objects/conf/api.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
from vng_api_common.conf.api import * # noqa - imports white-listed
2-
3-
API_VERSION = "2.4.3"
4-
VERSIONS = {"v1": "1.3.0", "v2": "2.4.3"}
1+
API_VERSION = "2.4.4"
2+
VERSIONS = {"v1": "1.3.0", "v2": "2.4.4"}
53

64
# api settings
75
REST_FRAMEWORK = {
@@ -89,6 +87,7 @@
8987
"""
9088

9189
SPECTACULAR_SETTINGS = {
90+
"REDOC_DIST": "SIDECAR",
9291
"SCHEMA_PATH_PREFIX": r"/api/v[1-9]+",
9392
"SCHEMA_PATH_PREFIX_TRIM": True,
9493
"TITLE": "Objects API",

src/objects/token/admin.py

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ def get_data_field_choices(self):
5252
except requests.JSONDecodeError:
5353
continue
5454

55+
# TODO: remove check once API V1 is removed
56+
if "results" in response_data:
57+
response_data = response_data["results"]
58+
5559
# use only first level of properties
5660
data_fields[object_type.id] = {
5761
version["version"]: {

0 commit comments

Comments
 (0)