Page MenuHomePhabricator

Duplication of identifiers in Snapshots API
Closed, ResolvedPublic3 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue

  • query /v2/snapshots endpoint

What happens?
You receive a list of 5765 available project snapshots, but there are only 2884 unique snapshot IDs. Example (note that date_modified is different):

{
   "identifier": "abwiki_namespace_0",
   "version": "dbb2fa0d299ec0458acdbef2e1ceec9c",
   "date_modified": "2023-03-30T01:51:30.782286025Z",
   "is_part_of": {
     "identifier": "abwiki"
   },
   "in_language": {
     "identifier": "ab"
   },
   "namespace": {
     "identifier": 0
   },
   "size": {
     "value": 13.959,
     "unit_text": "MB"
   }
 },
 {
   "identifier": "abwiki_namespace_0",
   "version": "0729355f662f046032d8a581b7260a2f",
   "date_modified": "2023-03-17T02:12:52.732582157Z",
   "is_part_of": {
     "identifier": "abwiki"
   },
   "in_language": {
     "identifier": "ab"
   },
   "namespace": {
     "identifier": 0
   },
   "size": {
     "value": 13.862,
     "unit_text": "MB"
   }
 }

What should have happened instead?:
API response should not include duplications.

Notes
This is happening because of the monthly snapshots functionality, our aggregation is basically including then when creating the list, need to exclude them from the aggregation.

Event Timeline

Protsack.stephan updated the task description. (Show Details)
Tim.abdullin changed the task status from Open to In Progress.Apr 4 2023, 2:17 PM
Tim.abdullin claimed this task.