← Back to team overview

ubuntu-accomplishments-contributors team mailing list archive

Refactoring the model in the webeditor

 

Hi all,

Based on discussions on IRC (#ubuntu-accomplishments), we came to the
conclusion that we need to change the model.
- dropped AccomplishmentDiff
- renamed Accomplishment to AccomplishmentBase
- a new Accomplishment model extends AccomplishmentBase, but basically
an empty class
- a new AccomplishmentProposal extends AccomplishmentBase, with a few
extra fields to describe the contributor, etc

In this new setup, Accomplishment is still the "real official
Accomplishment", and "changes" are saved as AccomplishmentProposal, to
be processed by moderators / admins. This way AccomplishmentProposal
can have the same fields as Accomplishment, without code duplication.
The details of the UI is still undecided, though we're pretty sure we
want to use difflib.

This refactoring is still a work in progress, by ~umirra, so maybe
don't rush updating your Django databases, it might still change.

Anyway nothing is cast into stone, but just so that you know...

Cheers,
Janos
-- 
Janos Gyerik
http://www.janosgyerik.com/