fedspendingtransparency / usaspending-api

Server application to serve U.S. federal spending data via a RESTful API
https://www.usaspending.gov
Creative Commons Zero v1.0 Universal
310 stars 113 forks source link

[DEV-11453] Unique program activity autocomplete results #4189

Closed aguest-kc closed 2 months ago

aguest-kc commented 2 months ago

Description: Only return unique combinations of program_activity_code and program_activity_name for the program_activity autocomplete endpoint. Previously, the same program code and name could be returned since there are multiple program activities with the same code and name for different years or accounts.

Technical details: The technical details for the knowledge of other developers. Any detailed caveats or specific deployment steps should be outlined here.

Requirements for PR merge:

  1. [x] Unit & integration tests updated
  2. [x] Necessary PR reviewers:
    • [x] Backend
  3. [x] Matview impact assessment completed
  4. [x] Frontend impact assessment completed
  5. [x] Data validation completed
  6. [x] Jira Ticket DEV-11453:
    • [x] Link to this Pull-Request

Area for explaining above N/A when needed:

2. API documentation updated
No API documentation is affected by this change.

7. Appropriate Operations ticket(s) created
No operations tickets are needed for this change.