tournesol icon indicating copy to clipboard operation
tournesol copied to clipboard

Create model to store score and stats related to (entity, poll)

Open amatissart opened this issue 2 years ago • 2 comments

Model Entity currently contains fields rating_n_contributors, rating_n_ratings, as well as tournesol_score introduced in #614.

These fields are actually specific to a given poll, and should be moved to a new model, with foreign keys to Entity and Poll. Potential name: EntityPollScore

amatissart avatar Feb 27 '22 18:02 amatissart

My understanding of this issue is that it is not high priority because we only need this when we will have multiple Polls using the same entities. Please correct me if I understand this wrongly.

lfaucon avatar Mar 13 '22 16:03 lfaucon

  • [x] create the new model
  • [x] test the new model
  • [x] create the data migration
    • see https://github.com/tournesol-app/tournesol/pull/1149
    • [x] update the comparisons view to create or refresh the model after each comparison
    • [x] update the ML train to also update the tournesol score of the new model
  • update the serializers / update the API tests
    • is tracked by the EPIC https://github.com/tournesol-app/tournesol/issues/606
  • update the Entity admin interfaces, and maybe others
    • is tracked by https://github.com/tournesol-app/tournesol/issues/1471

GresilleSiffle avatar Sep 01 '22 14:09 GresilleSiffle

@bbosson can look at the PR #1149

lfaucon avatar Mar 02 '23 11:03 lfaucon

Before closing this task I need to create the remaining issues as described in: https://github.com/tournesol-app/tournesol/issues/631#issuecomment-1234372754

GresilleSiffle avatar Mar 23 '23 10:03 GresilleSiffle