Look a company up in its register, on a press, and keep what is ticked (#1021) #1068
No reviewers
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo!1068
Loading…
Reference in a new issue
No description provided.
Delete branch "1021-register-lookup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The online half of #935, built as option B there: a feature plugin beside the
identifier module, which stays offline and always on. Register lookup
offers Look up in ... beside a company's register number, where an adapter
answers for its country, and beside its LEI (GLEIF), to whoever may change the
company. A press is one request carrying the number and nothing else; the
answer is held in the session and shown on a review page modelled on the
Wikidata one (#673): official name, registered office, state and NACE
activity (#897), each an unticked box. Only what is ticked is kept: the name
through update_company (a clash is refused), the office added beside the
company's addresses, the state with the register's page as its source, the
NACE division as an industry. From an LEI, GLEIF's registeredAs is offered to
a company with no register number, and compared with the one it has, the
cross-check that cannot be made offline.
0012 writes the instance's "off" row, which the switch on Server settings ->
Plugins removes as for any other plugin. A press is a register learning
which company somebody here looks at, so it is the operator's decision.
entry-point group (postulo.register_adapters) modelled on link services
(#305). An adapter declares its scheme, country and hosts, builds the
address and reads the JSON; Postulo makes the request through
public_only_client, https on a declared host only, with its user agent, a
deadline, a 2 MB limit and no redirects, under POSTULO_REGISTER_LOOKUP_RATE
(30/h) through core/throttle. A package cannot take a country Postulo
answers for. RegisterAdapter, RegisterRecord, RegisterAddress and
RegisterAdapterPlugin are on the plugin surface.
Finland (YTJ v3), Czechia (ARES), Poland (KRS) and GLEIF, each confirmed on
2026-10-27 against the register's documentation and a real answer, recorded
in the adapters' docstring. Estonia is left out: every documented query
service needs an agreement and a key. The keyed registers (GB, NL, DK, SE)
are the follow-up.
and its licence while the plugin is on for anybody; the review page shows
the attribution each licence asks for. THREAT-MODEL.md has the entry.
Closes #1021
Closes #935
Notes for review
plugins/register_lookup/adapters.py):plugins 0012_register_lookup_starts_offwrites the instance's FORCED_OFF row, and the existing switch removes it.🤖 Generated with Claude Code
6c548ad061e69ff6ca44e69ff6ca443593e3455e