Skip to content

Commit

Permalink
Merge pull request #4941 from open-formulieren/chore/3283-document-mi…
Browse files Browse the repository at this point in the history
…gration-procedure

📝 [#3283] Document registration backend migration procedure
  • Loading branch information
sergei-maertens authored Dec 18, 2024
2 parents 99d8c52 + 29c3bf4 commit f796f25
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
15 changes: 15 additions & 0 deletions docs/installation/upgrade-300.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,18 @@ The setting ``TEMPORARY_UPLOADS_REMOVED_AFTER_DAYS`` controls how long file uplo
kept. Ensure that this many days have passed since the last legacy upload before
upgrading to Open Forms 3.0, otherwise you will run into database errors during the
upgrade.

Deprecations in registration backends
=====================================

We've done extensive UX rework in the Objects API and ZGW API's registration backends -
you can now select the case and/or document types to use in dropdowns rather than having
to copy-paste the API resource URLs. The API resource URLs will continue to work and
are scheduled for removal in Open Forms 4.0 (no planned date for this yet), but we
recommend you to already migrate your forms to the new format:

* it has a better UX for the people configuring forms :)
* it automatically picks the correct version from the Catalogi API

Migrating is as simple as opening the registration options, selecting the catalogue to
use and then selecting the case type/document type to use and emptying the URL-field.
2 changes: 1 addition & 1 deletion src/openforms/contrib/objects_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class ObjectsAPIGroupConfig(models.Model):
)

# XXX: the URLFields are to be replaced with charfields storing the omschrijving.
# DeprecationWarning: remove in OF 3.0
# DeprecationWarning: remove in OF 4.0
informatieobjecttype_submission_report = models.URLField(
_("submission report informatieobjecttype"),
max_length=1000,
Expand Down
2 changes: 1 addition & 1 deletion src/openforms/registrations/contrib/objects_api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class ObjectsAPIOptionsSerializer(JsonSchemaSerializerMixin, serializers.Seriali
),
)

# DeprecationWarning: remove in OF 3.0
# DeprecationWarning: remove in OF 4.0
informatieobjecttype_submission_report = serializers.URLField(
label=_("submission report PDF informatieobjecttype"),
help_text=_(
Expand Down
2 changes: 1 addition & 1 deletion src/openforms/registrations/contrib/objects_api/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class _BaseRegistrationOptions(TypedDict, total=False):
iot_submission_csv: Required[str]
iot_attachment: Required[str]

# DeprecationWarning: URL properties will be removed in OF 3.0
# DeprecationWarning: URL properties will be removed in OF 4.0
informatieobjecttype_submission_report: str
informatieobjecttype_submission_csv: str
informatieobjecttype_attachment: str
Expand Down
2 changes: 1 addition & 1 deletion src/openforms/registrations/contrib/zgw_apis/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class ZaakOptionsSerializer(JsonSchemaSerializerMixin, serializers.Serializer):
default="",
)

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

0 comments on commit f796f25

Please sign in to comment.