Skip to content

OS-244 #246 Adding Datafordeler address lookup#327

Open
stankut wants to merge 5 commits into
developfrom
f/246_datafordeler_address_lookup
Open

OS-244 #246 Adding Datafordeler address lookup#327
stankut wants to merge 5 commits into
developfrom
f/246_datafordeler_address_lookup

Conversation

@stankut
Copy link
Copy Markdown
Collaborator

@stankut stankut commented May 15, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@jekuaitk jekuaitk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we bump os2web/os2web_datalookup version when it is merged to ensure an up-to-date version?

'#pattern' => '^(\d{3},?)*$',
'#description' => $this->t('CSV list of municipalities codes, what will limit the address lookup.'),
'#title' => $this->t('Limit by municipality'),
'#pattern' => '^(\d{4})$',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So only single municipality limits now? Also, would this not silently break existing webforms?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the worst case, that would produce empty result (if there has been a multivalue value before).

We haven't talked about any migration logic, i also don't see any good migration logic here. I would say that is a manual process after migration, @ds-bellcom what is your say on this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any clear migration logic either. If this limitation is indeed intended we need to ensure webform builders are made aware of it! Let's see what @ds-bellcom has to say :-)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stankut @jekuaitk As I understand the new API from Klimadatastyrelsen, multiple municipality codes are not supported - see here: https://confluence.sdfi.dk/pages/viewpage.action?pageId=244318431

Regardless of whether you use "Husnummersøgning" or "Adressesøgning", the "kommunekode" must only be 4 digits - no more, no less.

I don't see any good migration solution - other than that the forms where the DAWA elements are used are reviewed. This is of course something that needs to be communicated to the users so that they can do this review.

Comment thread modules/os2forms_dawa/src/Element/DawaElementBase.php Outdated
@jekuaitk jekuaitk self-requested a review May 26, 2026 07:05
Copy link
Copy Markdown
Contributor

@jekuaitk jekuaitk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Awaiting clarification on the municipality limitation.

@jekuaitk jekuaitk self-requested a review May 26, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DAWA (Danmarks Adressers Web API) lukker ned pr. 1. juli 2026

3 participants