-
Task
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
-
8
-
False
-
-
False
-
Impediment
-
subs-swatch-thunder
-
-
- Create a REST API endpoint to process existing tally_snapshots data.
- Support filtering by org ID and/or product ID.
- Implement logic to identify the correct primary record per grouping logic for payg and non-payg.
- Ensure the operation is safe for re-runs and large datasets. Don't run anything yet on prod. Just enable the REST endpoint.
Acceptance Criteria
- REST endpoint is implemented and documented.
- Endpoint supports org ID and product ID as request parameters.
- Correct records are identified and updated with is_primary = true for payg and non-payg.
- Non-primary records are set or remain is_primary = false.
- Endpoint is idempotent and handles re-execution safely.
- No adverse impact on existing data or APIs.
- Component test to support this endpoint
- Don't run anything yet on prod. Just enable the REST endpoint.
- blocks
-
SWATCH-4497 Run Backfill Endpoint for Org 6340056 and Validate Query Performance for tally_snapshots
-
- Backlog
-
- is blocked by
-
SWATCH-4492 Add partial index on tally_snapshots
-
- Backlog
-