Skip to content

Commit 54abf6a

Browse files
👷 Add oaf-check.yml
1 parent 9471a93 commit 54abf6a

File tree

7 files changed

+30
-19
lines changed

7 files changed

+30
-19
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ jobs:
125125
echo "Please update the environment documentation by running \`bin/generate_envvar_docs.sh\`"
126126
exit 1
127127
fi
128-
env:
129-
DJANGO_SETTINGS_MODULE: openvtb.conf.ci
130128
131129
store-reusable-workflow-vars:
132130
name: create values which can be passed through a reusable workflow
@@ -144,8 +142,8 @@ jobs:
144142
needs:
145143
- store-reusable-workflow-vars
146144
with:
147-
apt-packages: "libgdal-dev gdal-bin graphviz graphviz-dev"
148-
main-branch: "main"
145+
apt-packages: 'libgdal-dev gdal-bin graphviz graphviz-dev'
146+
main-branch: 'main'
149147
run-docs: true
150148
python-version: '3.12'
151149
docker-image-name: ${{ needs.store-reusable-workflow-vars.outputs.image-name }}

.github/workflows/oaf-check.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Check Open API Framework Version
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- '*'
9+
workflow_dispatch:
10+
schedule:
11+
- cron: '0 7 * * 1'
12+
13+
14+
jobs:
15+
open-api-workflow-check-oas:
16+
uses: maykinmedia/open-api-workflows/.github/workflows/oaf-check.yml@v6
17+
18+
with:
19+
python-version: '3.12'

docs/conf.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,6 @@
7575

7676
source_suffix = [".rst", ".md"]
7777

78-
intersphinx_mapping = {
79-
"requests": (
80-
"https://docs.python-requests.org/en/latest/",
81-
None,
82-
),
83-
"django": (
84-
"http://docs.djangoproject.com/en/4.2/",
85-
"http://docs.djangoproject.com/en/4.2/_objects/",
86-
),
87-
}
88-
8978
# Datamodel image settings
9079
graphviz_output_format = "png"
9180

@@ -123,9 +112,14 @@
123112
extlinks = {}
124113

125114
django_structlog_version = _version("django-structlog")
115+
oaf_version = _version("open-api-framework")
126116
intersphinx_mapping = {
127117
"django-structlog": (
128118
f"https://django-structlog.readthedocs.io/en/{django_structlog_version}",
129119
None,
130120
),
121+
"oaf": (
122+
f"https://open-api-framework.readthedocs.io/en/{oaf_version}/",
123+
None,
124+
),
131125
}

docs/installation/config/env_configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Database
2929
* ``DB_HOST``: hostname of the PostgreSQL database. Defaults to ``db`` for the docker environment, otherwise defaults to ``localhost``.
3030
* ``DB_PORT``: port number of the database. Defaults to: ``5432``.
3131
* ``DB_CONN_MAX_AGE``: The lifetime of a database connection, as an integer of seconds. Use 0 to close database connections at the end of each request — Django’s historical behavior. This setting is ignored if connection pooling is used. Defaults to: ``60``.
32-
* ``DB_POOL_ENABLED``: Whether to use connection pooling. Defaults to: ``False``.
32+
* ``DB_POOL_ENABLED``: **Experimental:** Whether to use connection pooling. This feature is not yet recommended for production use. See the documentation for details: https://open-api-framework.readthedocs.io/en/latest/connection_pooling.html. Defaults to: ``False``.
3333
* ``DB_POOL_MIN_SIZE``: The minimum number of connection the pool will hold. The pool will actively try to create new connections if some are lost (closed, broken) and will try to never go below min_size. Defaults to: ``4``.
3434
* ``DB_POOL_MAX_SIZE``: The maximum number of connections the pool will hold. If None, or equal to min_size, the pool will not grow or shrink. If larger than min_size, the pool can grow if more than min_size connections are requested at the same time and will shrink back after the extra connections have been unused for more than max_idle seconds. Defaults to: ``None``.
3535
* ``DB_POOL_TIMEOUT``: The default maximum time in seconds that a client can wait to receive a connection from the pool (using connection() or getconn()). Note that these methods allow to override the timeout default. Defaults to: ``30``.

requirements/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ mozilla-django-oidc-db==0.25.1
264264
# open-api-framework
265265
notifications-api-common==0.9.0
266266
# via commonground-api-common
267-
open-api-framework==0.13.1
267+
open-api-framework==0.13.2
268268
# via -r requirements/base.in
269269
opentelemetry-api==1.38.0
270270
# via

requirements/ci.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ notifications-api-common==0.9.0
499499
# -c requirements/base.txt
500500
# -r requirements/base.txt
501501
# commonground-api-common
502-
open-api-framework==0.13.1
502+
open-api-framework==0.13.2
503503
# via
504504
# -c requirements/base.txt
505505
# -r requirements/base.txt

requirements/dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ notifications-api-common==0.9.0
572572
# -c requirements/ci.txt
573573
# -r requirements/ci.txt
574574
# commonground-api-common
575-
open-api-framework==0.13.1
575+
open-api-framework==0.13.2
576576
# via
577577
# -c requirements/ci.txt
578578
# -r requirements/ci.txt

0 commit comments

Comments
 (0)