-
-
I don't beleive this is ever used since no other resources define it. It looks like what you want is 'has_modify_permissions', according to the WebAPIResource docstring in Djblets. "has_modify_permissions - Used for HTTP POST or PUT calls, if called by the subclass. Returns False by default." Your new 'has_modify_permissions' method should take a group, and check if the user can modify it. Look at the other resources for examples of this.
-
You could probably treat this like 'ReviewRequestDraftResource' does. If the group already exists, just treat as an update, not a create.
Add group create/modify to webapi.
Review Request #3217 — Created July 13, 2012 and discarded
This isn't ready, I'm just posting the RB to get some pointers. Issues: 1) How to check if group already exists 2) How to add users to new group 3) How to update group 4) How to update users in group
Description | From | Last Updated |
---|---|---|
I don't beleive this is ever used since no other resources define it. It looks like what you want is … |
SM smacleod | |
You could probably treat this like 'ReviewRequestDraftResource' does. If the group already exists, just treat as an update, not a … |
SM smacleod |
SM
SH
- Change Summary:
-
1) If you can point out how "to make a DB query for this" that would be helpful. Where is the database's schema? I've been having to use `dir()` to inspect the objects because I can't find a quick way to understand reviewboard's internals. =X 2) If I understand correctly, I need to add a create() method to ReviewGroupUserListResource (and is related to ReviewGroupResource, right?). However, I don't see a similar class for ReviewGroupUserListResource... e.g., there is no ReviewGroupResource...? Why not? Again, the schema might be helpful. 3) Right. I think once I understand how "to make DB quer(ies)" that this will be easier. 4) Still confused, too. =)
- People: