Last modified: 2014-10-28 17:14:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68843, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66843 - Story: User creates cohort with CentralAuth insertions
Story: User creates cohort with CentralAuth insertions
Status: RESOLVED FIXED
Product: Analytics
Classification: Unclassified
Wikimetrics (Other open bugs)
unspecified
All All
: Normal enhancement
: ---
Assigned To: Marcel Ruiz Forns
u=WikimetricsUser c=Wikimetrics p=21 ...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-19 14:58 UTC by Kevin Leduc
Modified: 2014-10-28 17:14 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kevin Leduc 2014-06-19 14:58:41 UTC
As a program manager,
I can select the checkbox labeled XYZ when uploading my cohort,
so wikimetrics will automatically add CentralAuth users’ accounts from other projects

Lable XYZ: Expand cohort to all user’s accounts across projects (via CentralAuth)

* the only time user sees this is when uploading a cohort.  No other references to CentralAuthUser are necessary.
* The UI does not need to distinguish cohorts that include accounts taken CentralAuth
* short form: program manager checks “expand...” when uploading cohort
Comment 1 Kevin Leduc 2014-07-14 18:21:53 UTC
74 hours
(8 hours working days for Teresa)

* (10 hours) puppet would need to be updated to create central auth testing database in vagrant (check central-auth role in vagrant. See class role::centralauth in puppet/manifests/roles/centralauth.pp in vagrant)
** puppet database definition has a if debug section that creates these test databases
* (16 hours) update database configuration and scripts
** we have get_session, get_mw_session and we would need get_ca_session that would return a centralauth session
** scripts create local versions of the test databases (for when we're not using puppet to develop)
* (16 hours) models to map to central auth database in labs (same access as other databases). 
** new folder wikimetrics/models/centralauth, analogous to wikimetrics/models/mediawiki
** four tables only (the ones being used)
** test mappings in tests/test_models/test_mappings.py
* (14 hours) make new ways of adding central auth test data to centralauth testing db
** simple signature: add_central_auth_users(user_names, projects)
** currently, create_test_cohort is our primary function for inserting controlled test data into blank mediawiki test databases.  For this task, you'd need to make an analogous test data creation utility method
* (16 hours) validation would need to include an option to expand users into all matching central-auth users (make sure there are no duplicates)
* (2 hours) user interface updated
** Just a checkbox. Analytics team handles the redesign, because that's needed anways.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links