Closed Bug 797783 Opened 12 years ago Closed 12 years ago

Create locale model for localization information (leaders, reviewers, editors)

Categories

(support.mozilla.org :: Knowledge Base Software, task, P2)

Tracking

(Not tracked)

RESOLVED FIXED
2012Q4

People

(Reporter: atopal, Assigned: rrosario)

References

Details

(Whiteboard: u=contributor c=wiki p=2 s=2012.22)

Please create groups automatically for locales. If possible, give them a group profile and dashboard.

Please add default roles for those locales
* KB locale leader - Can add new Reviewers
* KB Reviewers:  Can approve content
* KB Editors: No special rights
Whiteboard: u=contributor c=wiki p= → u=contributor c=wiki p=2012.22
Whiteboard: u=contributor c=wiki p=2012.22 → u=contributor c=wiki p= s=2012.22
I don't think we will be using groups for this. We will need to create a locale model and then use that everywhere. This will need to be broken up.
I am limiting the scope of this bug and will file followups regarding setting up the access control, views and whatever else we want to add later.

This bug is about creating a Locale model. The model should have the following fields:

* Locale code
* Leaders (ManyToMany to User)
* Reviewers (ManyToMany to User)
* Editors (ManyToMany to User)

In addition to setting up the model, we should create a migration for all existing locales. The migration should create a row for each locale. We won't be setting up the Leaders, Reviewers or Editors in the migration.


Kadir, is there any other information we should be storing at this point?
Flags: needinfo?(a.topal)
Summary: Automatically create localization groups and roles for those locales → Create localization model for localization information (leaders, reviewers, editors)
Whiteboard: u=contributor c=wiki p= s=2012.22 → u=contributor c=wiki p=3 s=2012.22
Summary: Create localization model for localization information (leaders, reviewers, editors) → Create locale model for localization information (leaders, reviewers, editors)
After writing that out, I think this is more like a 2pter. The model is pretty simple and the migration should be straightforward.
Whiteboard: u=contributor c=wiki p=3 s=2012.22 → u=contributor c=wiki p=2 s=2012.22
Ricky, that sounds good to me. I'm wondering if it would make sense to cover all roles mentioned in bug 721451 now that we are at it. What do you think?
Flags: needinfo?(a.topal)
Rosana, this means we have to manually create a list of current locale leaders and assign them their roles. 

The good news is: They can take it from there and assign reviewers for their own locale.
Assignee: nobody → rrosario
Landed and deployed:

https://github.com/mozilla/kitsune/commit/0e922b00896ed9f0abb625ed1fb8ee549724567d

Leaders (and reviewers and editors) can be assigned only from the admin right now. Bug 815438 will add a UI like what currently exists for groups so that leaders that aren't admins can manage their locale.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.