Change API so each record is unique, not a running total

Created on 12 October 2022, over 2 years ago
Updated 5 September 2024, 8 months ago

Problem/Motivation

A key problem with the API is that records in the userpoints table are not standalone records, they depend upon the previous revision record. This means that that individual userpoint records can't be removed or edited, instead a new revision has to be added that makes the change, but there's no connection on this new revision to the previous revision.

The expectation with a points system is that records would be created for each points addition, like a regular table:

Totals could be either saved in a separate column, or through a separate API.

Proposed resolution

Change the API so that:
* Each userpoints record is a standalone thing, i.e. its own entity.
* The running total for a given type of point for a given entity would be generated using an API.

Remaining tasks

Change the API.

User interface changes

TBD

API changes

Lots :-)

Data model changes

TBD

πŸ› Bug report
Status

Active

Version

2.0

Component

Code: userpoints

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024