Skip to content

Expand duplicate_geometry_check expectation#520

Open
sianteesdale wants to merge 3 commits intomainfrom
st/expand-duplicate-geom-expectation
Open

Expand duplicate_geometry_check expectation#520
sianteesdale wants to merge 3 commits intomainfrom
st/expand-duplicate-geom-expectation

Conversation

@sianteesdale
Copy link
Copy Markdown

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

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

Description

Currently, the duplicate_geometry_check expectation raises entities that have either 100% overlap (complete_match) or one geography that has >95% overlap (single_match). This results in smaller overlaps to slip through the system due to them not being reported through these tests.

This PR allows for all overlaps to be returned through the any_match label. This will then be fed into our reporting tasks so we can monitor any overlaps, and ask LPAs to edit their data.

There are no increases to timings by adding any_match into the script - the script already calculates all overlaps, it just previously discarded those that didn't match the conditions for single_match or complete_match.

Related Tickets & Documents

QA Instructions, Screenshots, Recordings

Locally testing the logic resulted in 2,534 rows being returned when testing on conservation-area data only - an increase of 2,208 rows from previously. Timings remained the same at approximately ~129 seconds.

image

Hard to QA without Docker container being installed - happy to share a test script Claude wrote for me to test (as I don't have Docker on my Mac!).

Added/updated tests?

  • 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

@pooleycodes pooleycodes self-requested a review April 10, 2026 08:37
@sianteesdale
Copy link
Copy Markdown
Author

Waiting to merge this PR until Monday, to avoid any undue effects over the weekend

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.

2 participants