Skip to content

API - MHR Table Registration Enhancements  #30006

Closed
Closed

Description

@LizGovier
  • Add two new columns: Civic Address, Manufacturer
  • Sort By (Civic Address, Manufacturer)
  • Filter By (Manufacturer)

Update get account registrations response to include manufacturerName and civicAddress.
Update get account drafts response to include manufacturerName and civicAddress.

Example draft requests:
GET /mhr/api/v1/drafts?manufacturerName=starteck
GET /mhr/api/v1/drafts?sortCriteriaName=manufacturerName&sortDirection=ascending
GET /mhr/api/v1/drafts?sortCriteriaName=civicAddress&sortDirection=ascending

Example registration requests:
GET /mhr/api/v1/registrations?collapse=true&manufacturerName=star
GET /mhr/api/v1/registrations?collapse=true&sortCriteriaName=manufacturerName&sortDirection=descending
GET /mhr/api/v1/registrations?collapse=true&sortCriteriaName=civicAddress&sortDirection=descending

Both draft and registration responses now include:
"civicAddress": "71-8676 BLANSHARD STREET\nSECOND FLOOR\nVICTORIA BC\nCanada",
"manufacturerName": "Test MH",

Activity

  1. changed the title [-]API - MHR Table Enhancements[/-] [+]API - MHR Table Registration Enhancements [/+] on Aug 7, 2025
  2. LizGovier commented on Aug 7, 2025

    @LizGovier
    Author
  3. self-assigned this
    on Aug 12, 2025
  4. chdivyareddy commented on Aug 14, 2025

    @chdivyareddy
    Collaborator

    Hey @doug-lovett , All the GET requests for the Drafts and Registrations are working as expected, except the GET request for the registration /mhr/api/v1/registrations?collapse=true&manufacturerName=starline is not displaying the results in DEV for the staff account. Please take a look at the screenshot below, thanks!

    Registration request: GET /mhr/api/v1/registrations?collapse=true&manufacturerName=star

    image.png

    Draft requests (Working as expected):

    image.png

    image.png

    image.png

    Registration requests (Working as expected):

    image.png

    image.png

  5. doug-lovett commented on Aug 14, 2025

    @doug-lovett
    Collaborator

    @chdivyareddy nice catch - I think there is a bug that should be logged as a separate issue. Our testing manufacturer names are not stored as uppercase and they should be. The filtering assumes the database name is uppercase. I have updated the DEV active description manufacturer names containing "star" to uppercase and the filtering now works. In PROD there are 11 active description manufacturer names that are not uppercase and they are all recent registrations.

  6. chdivyareddy commented on Aug 14, 2025

    @chdivyareddy
    Collaborator

    Ah...got it, thank you for the quick fix and will create a bug ticket for the issue.

    Now, I see the results for the manufacturer names containing "star" in DEV.

    image.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions