Skip to content

Update player stats "data model" #365

@heyheyjp

Description

@heyheyjp

Objectives:

  • Group cumulative stats in a single object (we'll be tracking more than ECC now)
  • Make explicit the meaning of property values
  • Make tracking a history of things consistent with how we're doing this elsewhere, particularly with project.cycleHistory

Proposing a change in how player stats data is currently structured from this...

{
  "ecc": 311,
  "cycleProjectECC": {
    "204125f3-ece7-42bb-8a86-a619682ff379": {
      "48382d94-dcd7-479a-9229-7db4bb364916": {
        "abc": 3,
        "ecc": 108,
        "rc": 36,
      }
    } ,
  },
}

...to this...

{
  "stats": {
    "ecc": 311,

    "projects": {
      "48382d94-dcd7-479a-9229-7db4bb364916": {
        "cycles": {
          "204125f3-ece7-42bb-8a86-a619682ff379": {
            "abc": 3,
            "ecc": 108,
            "rc": 36,
          }
        }
      }
    }
  }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions