Page MenuHomePhabricator

AQS 2.0: Editor Analytics: QA test suite scenarios for the aggregate endpoint
Closed, ResolvedPublic

Description

This is a subtask of T346301: AQS2.0: Editor Analytics Service : Create QA automation test suite

Goal

Define and implement all scenarios for the aggregate endpoint (editor-analytics) for the QA test suite

Scenarios to be done

  • 200 OK varying project, editor-type, page-type, activity-level, granularity and dates
    • metrics/editors/aggregate/sw.wikipedia/all-editor-types/all-page-types/all-activity-levels/daily/20210302/20210901
    • metrics/editors/aggregate/sw.wikipedia.org/anonymous/content/1..4-edits/monthly/20210302/20210901
    • metrics/editors/aggregate/www.sw.wikipedia.org/group-bot/non-content/5..24-edits/daily/20210302/20210901
    • metrics/editors/aggregate/www.ab.wikipedia/name-bot/all-page-types/25..99-edits/daily/20190227/20211231
    • metrics/editors/aggregate/sw.wikipedia/user/content/100..-edits/monthly/20210302/20210901
    • metrics/editors/aggregate/sw.wikipedia/user/content/100..-edits/monthly/2021030200/20210901
    • metrics/editors/aggregate/ab.wikipedia.org/user/content/100..-edits/monthly/20200302/2021090100
  • 400 Bad request
    • all-... filter not allowed for this endpoint
      • metrics/editors/aggregate/all-projects/all-editor-types/content/1..4-edits/monthly/20210302/20210901
      • metrics/editors/aggregate/all-wikipedia-projects/all-editor-types/content/1..4-edits/monthly/20210302/20210901
    • invalid editor-type, page-type, activity-level and granularity
      • metrics/editors/aggregate/sw.wikipedia/invalid-editor-type/all-page-types/all-activity-levels/daily/20210302/20210901
      • metrics/editors/aggregate/sw.wikipedia/anonymous/invalid-page-type/1..4-edits/monthly/20210302/20210901
      • metrics/editors/aggregate/sw.wikipedia/group-bot/non-content/invalid_activity_level/daily/20210302/20210901
      • metrics/editors/aggregate/sw.wikipedia/name-bot/all-page-types/25..99-edits/invalid_granularity/20210302/20210901
    • invalid dates: start date invalid, end date invalid, end before start and no full months
      • metrics/editors/aggregate/sw.wikipedia/all-editor-types/all-page-types/all-activity-levels/daily/20210302333/20210901
      • metrics/editors/aggregate/sw.wikipedia/all-editor-types/all-page-types/all-activity-levels/daily/20210302/20210901aaa
      • metrics/editors/aggregate/sw.wikipedia/all-editor-types/all-page-types/all-activity-levels/daily/20210302/20200901
      • metrics/editors/aggregate/sw.wikipedia/all-editor-types/all-page-types/all-activity-levels/monthly/20210302/20210401
    • invalid characters (not implemented yet)
      • metrics/editors/aggregate/sw.wi*kipedia/all-editor-types/all-page-types/all-activity-levels/daily/20210302/20210901
  • 404 Not Found
    • non-existent project
      • metrics/editors/aggregate/invalid_project/all-editor-types/content/1..4-edits/monthly/20210302/20210901
    • no data found
      • metrics/editors/aggregate/sw.wikipedia/all-editor-types/content/1..4-edits/monthly/20230302/20240901
  • 404 Invalid route
    • metrics/editors/aggregate//sw.wikipedia/all-editor-types/content/1..4-edits/monthly/20210302/20210901

Event Timeline

Sfaci renamed this task from AQS 2.0: Editor Analytics - QA test suite scenarios for aggregate endpoint to AQS 2.0: Editor Analytics: QA test suite scenarios for aggregate endpoint.
Sfaci triaged this task as Medium priority.
Sfaci updated the task description. (Show Details)
Sfaci renamed this task from AQS 2.0: Editor Analytics: QA test suite scenarios for aggregate endpoint to AQS 2.0: Editor Analytics: QA test suite scenarios for the aggregate endpoint.Sep 15 2023, 1:16 PM
Sfaci updated the task description. (Show Details)
Sfaci updated the task description. (Show Details)

I have pushed a new branch (https://gitlab.wikimedia.org/repos/generated-data-platform/aqs/aqs_tests/-/tree/editors-aggregate-scenarios) with all the scenarios included in the ticket's description for editor aggregate endpoint. @Emeka-okechukwu can you take a look at them? Just to know if I'm on the right path (if you consider we can prepare a MR to start a formal review).

Just to mention that, besides the new endpoint scenarios I have added, I changed some common resources in resources.py because their names started with editors but they stored edits paths, and they were going to collide with the new editors resources we are working right now. The following resources are the ones I have changed there:

# Edits
- edits_data_aggregate
- edits_data_per_page

Thanks!