Skip to content

[Greenwich] Add DVLA lookup for Greenwich#6027

Open
MorayMySoc wants to merge 3 commits into
masterfrom
5560-greenwich-add-dvla
Open

[Greenwich] Add DVLA lookup for Greenwich#6027
MorayMySoc wants to merge 3 commits into
masterfrom
5560-greenwich-add-dvla

Conversation

@MorayMySoc

Copy link
Copy Markdown
Contributor

@MorayMySoc
MorayMySoc requested a review from struan June 25, 2026 16:12
@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 57.14286% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.36%. Comparing base (b62aafb) to head (43b421c).

Files with missing lines Patch % Lines
web/cobrands/fixmystreet-uk-councils/dvla.js 57.14% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6027      +/-   ##
==========================================
- Coverage   83.36%   83.36%   -0.01%     
==========================================
  Files         500      500              
  Lines       37418    37422       +4     
  Branches     6176     6176              
==========================================
+ Hits        31195    31196       +1     
- Misses       4415     4418       +3     
  Partials     1808     1808              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@struan struan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good.

@MorayMySoc
MorayMySoc requested a review from struan July 1, 2026 15:51
@MorayMySoc

Copy link
Copy Markdown
Contributor Author

Hi @struan - turns out cars under 3 years old are exempt from MOT and it returns 'No details held by DVLA'. But figure it's better to just work against 'Not valid' if that makes sense https://developer-portal.driver-vehicle-licensing.api.gov.uk/apis/vehicle-enquiry-service/v1.2.0-vehicle-enquiry-service.json

@struan struan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One small request for a comment, plus to reflect the 3 year thing in the main MOT status check.

'greenwich': {
fn: function (data) {
if ( data.taxStatus == 'SORN' || (data.taxStatus == 'Taxed' && data.motStatus == 'Valid')) {
if ( data.taxStatus == 'SORN' || (data.taxStatus == 'Taxed' && data.motStatus != 'Not valid')) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess maybe a comment here to explain the 3 year thing? Should also update the generic case further down the file too.

Do we know what "No results returned" means? I can't tell from the documentation why that would happen.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't really know - it looks maybe like it's vehicles that may never have been registered somewhere in some way - like old cars which are exempt, but never expected to be on the system

@mysociety-pusher
mysociety-pusher force-pushed the 5560-greenwich-add-dvla branch from 55a705b to 43b421c Compare July 2, 2026 12:13
@MorayMySoc
MorayMySoc requested a review from struan July 2, 2026 13:18

@struan struan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good

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