Page MenuHomePhabricator

Geo Analytics: Add project validation to manage the 'invalid characters' error (400 Bad Request)
Closed, ResolvedPublic1 Estimated Story Points

Description

Epic: T288305: AQS 2.0: Geo Analytics Service

Description

During the Sprint 01 we worked on a new function to validate project to manage the 'invalid characters' error (we missed it during the initial phase of the development). A function called ValidateProject was added to aqsassist to be used from a middleware function in all the services. We did it for some of them but this task was deferred because other services had been already deployed. geo-analytics was one of those services, so we still need to include this validation.

Acceptance Criteria

  • A middleware function has been created to validate project to manage the 'invalid characters' 400 error.

Required

  • Add new integration test cases for this new scenario (an invalid project is requested)
  • Run unit and integration tests after adding the new middleware function

Event Timeline

Sfaci triaged this task as Medium priority.Oct 3 2023, 2:05 PM
WDoranWMF set the point value for this task to 1.Oct 17 2023, 11:10 AM

Change 979027 had a related patch set uploaded (by Jennifer Ebe; author: Jennifer Ebe):

[generated-data-platform/aqs/geo-analytics@main] Add Project Validation to Manage invalid characters error(400 Bad Request)

https://gerrit.wikimedia.org/r/979027

JEbe-WMF reassigned this task from Surabhi_13692 to SGupta-WMF.
JEbe-WMF added a subscriber: Surabhi_13692.
JEbe-WMF subscribed.

Change 979027 merged by Sg912:

[generated-data-platform/aqs/geo-analytics@main] Add Project Validation to Manage invalid characters error(400 Bad Request)

https://gerrit.wikimedia.org/r/979027

  • unit and integration tests (the ones that are built in the project) work fine.
  • The new behaviour for this service doesn't seem to be included in the QA test suite so I have included two new scenarios to be able to test it. After that I have run all the scenarios and the service is responding fine for all of them (pending MR here to include the new ones to the QA test suite project -> https://gitlab.wikimedia.org/repos/generated-data-platform/aqs/aqs_tests/-/merge_requests/30). Could you review it @SGupta-WMF?

We can consider QA is passed

@Sfaci Reviewed and approved , feel free to merge this.

Thanks! It's merged.

So, the only pending task here is to deploy the service

Change 983160 had a related patch set uploaded (by Sg912; author: Sg912):

[operations/deployment-charts@master] Geo analytics image version change

https://gerrit.wikimedia.org/r/983160

Change 983160 merged by jenkins-bot:

[operations/deployment-charts@master] Geo analytics image version change

https://gerrit.wikimedia.org/r/983160

The service is already deployed in the production environment and seems to work fine