Page MenuHomePhabricator

AQS 2.0: Edit Analytics: Implement integration tests
Open, MediumPublic

Description

subtask. of epic T327817

Event Timeline

JArguello-WMF renamed this task from Edit Analytics: Integration tests to Edit Analytics: unit tests.Jun 8 2023, 12:02 PM
JArguello-WMF renamed this task from Edit Analytics: unit tests to Edit Analytics: integration tests.
Sfaci renamed this task from Edit Analytics: integration tests to Edit Analytics: Implement integration tests.Jul 4 2023, 9:36 AM
Sfaci renamed this task from Edit Analytics: Implement integration tests to AQS 2.0: Edit Analytics: Implement integration tests.Jul 17 2023, 9:46 AM
Sfaci claimed this task.
Sfaci triaged this task as Medium priority.
Sfaci removed Sfaci as the assignee of this task.Jul 19 2023, 7:33 AM

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

[generated-data-platform/aqs/edit-analytics@main] Tests and minify

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

Just a warning for our future selfs about these integration test cases and some improvements we added to the common Druid code that are no present here yet. Real support for 'all-projects' and 'all-wikipedia-projects' keywords was added there but we still need to refactor this service to take advantage of it. Because of that, at the time of writing this, that is not really working because these keywords are validated as a regular project value and no data is found.

So, until refactoring is done, we can consider some tests values as fine but we will have to keep in mind that some of them will change after refactoring using the common Druid code. We will have to keep specially in mind all tests cases that use those keywords. Maybe we should keep this ticket open to be revisited after refactoring.

Another issue should be considered after refactoring. The one about 404 vs 200 with zero values when no data is found regarding the project. There are no consistency between this services and the rest of them and recently we discussed about keeping the 404 Not Found error when no data is found for that reason. Some endpoints at this moment respond with a 200 and zero values and some others with a 404 Not Found error.

Change 958461 merged by Sg912:

[generated-data-platform/aqs/edit-analytics@main] Tests and minify

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