Skip to content

Conversation

@CarlosCoelhoSL
Copy link
Contributor

@CarlosCoelhoSL CarlosCoelhoSL commented Apr 24, 2025

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

It was noticed in the assign entities command that some references with colons in them were causing issues with the prefix field. e.g the reference DA:20/21=S106:001:20/0284/FUL

The assign entities command was treating the DA part as the prefix so was outputting entities in lookup.csv like so:
DA,,,,local-authority:EXE,20/21=S106:001:20/0284/FUL,4609968,,,

This PR fixes this by ensuring that reference prefixes belong to a group of 'valid reference prefixes', which is the datasets from the specification

Related Tickets & Documents

QA Instructions, Screenshots, Recordings

Please replace this line with instructions on how to test your changes, a note
on the devices and browsers this has been tested on, as well as any relevant
images for UI changes.

Added/updated tests?

We encourage you to keep the code coverage percentage at 80% and above. Please refer to the Digital Land Testing Guidance for more information.

  • Yes
  • No, and this is why: please replace this line with details on why tests
    have not been included
  • I need help with writing tests

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.

Bugfix: Monitor number of references with : (colon) being considered as prefix:reference

2 participants