Skip to content

Commit f796f25

Browse files
Merge pull request #4941 from open-formulieren/chore/3283-document-migration-procedure
📝 [#3283] Document registration backend migration procedure
2 parents 99d8c52 + 29c3bf4 commit f796f25

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

docs/installation/upgrade-300.rst

+15
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,18 @@ The setting ``TEMPORARY_UPLOADS_REMOVED_AFTER_DAYS`` controls how long file uplo
130130
kept. Ensure that this many days have passed since the last legacy upload before
131131
upgrading to Open Forms 3.0, otherwise you will run into database errors during the
132132
upgrade.
133+
134+
Deprecations in registration backends
135+
=====================================
136+
137+
We've done extensive UX rework in the Objects API and ZGW API's registration backends -
138+
you can now select the case and/or document types to use in dropdowns rather than having
139+
to copy-paste the API resource URLs. The API resource URLs will continue to work and
140+
are scheduled for removal in Open Forms 4.0 (no planned date for this yet), but we
141+
recommend you to already migrate your forms to the new format:
142+
143+
* it has a better UX for the people configuring forms :)
144+
* it automatically picks the correct version from the Catalogi API
145+
146+
Migrating is as simple as opening the registration options, selecting the catalogue to
147+
use and then selecting the case type/document type to use and emptying the URL-field.

src/openforms/contrib/objects_api/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class ObjectsAPIGroupConfig(models.Model):
141141
)
142142

143143
# XXX: the URLFields are to be replaced with charfields storing the omschrijving.
144-
# DeprecationWarning: remove in OF 3.0
144+
# DeprecationWarning: remove in OF 4.0
145145
informatieobjecttype_submission_report = models.URLField(
146146
_("submission report informatieobjecttype"),
147147
max_length=1000,

src/openforms/registrations/contrib/objects_api/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class ObjectsAPIOptionsSerializer(JsonSchemaSerializerMixin, serializers.Seriali
175175
),
176176
)
177177

178-
# DeprecationWarning: remove in OF 3.0
178+
# DeprecationWarning: remove in OF 4.0
179179
informatieobjecttype_submission_report = serializers.URLField(
180180
label=_("submission report PDF informatieobjecttype"),
181181
help_text=_(

src/openforms/registrations/contrib/objects_api/typing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class _BaseRegistrationOptions(TypedDict, total=False):
3838
iot_submission_csv: Required[str]
3939
iot_attachment: Required[str]
4040

41-
# DeprecationWarning: URL properties will be removed in OF 3.0
41+
# DeprecationWarning: URL properties will be removed in OF 4.0
4242
informatieobjecttype_submission_report: str
4343
informatieobjecttype_submission_csv: str
4444
informatieobjecttype_attachment: str

src/openforms/registrations/contrib/zgw_apis/options.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class ZaakOptionsSerializer(JsonSchemaSerializerMixin, serializers.Serializer):
9696
default="",
9797
)
9898

99-
# DeprecationWarning - deprecated, will be removed in OF 3.0 or 4.0
99+
# DeprecationWarning - deprecated, will be removed in OF 4.0
100100
zaaktype = serializers.URLField(
101101
help_text=_("URL of the ZAAKTYPE in the Catalogi API"),
102102
required=False,

0 commit comments

Comments
 (0)