Closed Bug 1056052 Opened 10 years ago Closed 6 years ago

Document how to give a user sheriffing permissions (is_staff) in development

Categories

(Tree Management :: Treeherder, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: Sylvestre, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

(deleted), text/x-github-pull-request
mdoglio
: review-
Details
Because I am lazy, I think it would be nice to have the command to create a new user included on this page: http://treeherder-service.readthedocs.org/en/latest/installation.html mdoglio told me that it should be: manage.py createsuperuser
Summary: Installation documentation should explain how to create a new user → Docs: treeherder-service installation docs should explain how to create a new user
Priority: P3 → P2
Blocks: 1072681
No longer blocks: 1072681
Component: Treeherder → Treeherder: Docs & Development
Priority: P2 → P3
I got the following code from Mauro, which let me add an existing user (as logged in via persona) to the staff group: from django.contrib.auth.models import User u = User.objects.get(email="your@email.com") u.is_staff = True u.save()
Attached file treeherder-PR631 (deleted) —
Please see above PR for status and review.
Attachment #8623105 - Flags: review?(mdoglio)
Assignee: nobody → tojonmz
Status: NEW → ASSIGNED
Attachment #8623105 - Flags: review?(mdoglio) → review-
I haven't had any chance to get back to this (additional request to create a promotesuperuser django command); so I'll leave the bug open for now and folks can use the closed PR for reference if they need it https://github.com/mozilla/treeherder/pull/631.
Assignee: tojonmz → nobody
Status: ASSIGNED → NEW
Should we wontfix that? thanks
Flags: needinfo?(emorley)
I think this (or some variation of it) is still relevant. We should either: 1) Document how to test features during development as a fake admin 2) Make all users during development admins or provide a "sudo" mode to toggle Also worth noting is that once bug 1273092 is fixed, people who belong to the relevant groups will automatically get admin permissions when developing on Treeherder, though that doesn't help contributors, who would still need (1) or (2).
Flags: needinfo?(emorley)
Summary: Docs: treeherder-service installation docs should explain how to create a new user → Document how to give a user sheriffing permissions (is_staff) in development
Blocks: 1416266
Wontfix since: * it's now possible to use auth when doing UI-only development by pointing at stage/prod (which `createsuperuser` won't help with) * since the bug was filed fewer things use is_staff (pretty much only perf sheriffing and some cancel-job buildbot-isms that will be going away), since we removed the exclusions profile/django admin/... * bug 1273092 will be making user permissions use the LDAP groups * if we did want to fix this, the better fix would be to make all vagrant users have admin, rather than having to add Yet More Setup Steps.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Component: Treeherder: Docs & Development → TreeHerder
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: