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?

Comment on lines +39 to +40
/** @var \Drupal\os2web_datalookup\Plugin\os2web\DataLookup\DatafordelerAddressLookupInterface $datafordelerAddressLookup */
$datafordelerAddressLookup = \Drupal::service('plugin.manager.os2web_datalookup')->createInstance('datafordeler_address_lookup');
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.

We could move this into the if to avoid unnecessary instantiation when it is not a os2forms_dawa_address-element.

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.

updated in: f00c76f

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

2 participants