8000 Development by fpagliar · Pull Request #1 · fpagliar/server-client-python · GitHub
[go: up one dir, main page]

Skip to content

Development #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 23, 2019
Merged

Development #1

merged 11 commits into from
Aug 23, 2019

Conversation

fpagliar
Copy link
Owner

No description provided.

opus-42 and others added 11 commits August 22, 2018 22:26
Adding created_at, updated_at and sheet_type properties to view items
* Adding model for PersonalAccessToken authentication information

* Making the signin request accept generic credentials

* Adding login sample

* adding sign in tests for tokens

* Fixing lint issues

* moving auth credentials to a property

* Making PAT use a specific sign in method, to avoid misuing the feature attempting to use it against older versions of the server
Add support for getting and setting permissions for all content types. 
This is accomplished with a few patterns, some new, some old.
1 - We now have a `_PermissionsEndpoint` much like tags, that gets composed into a permissions sub-endpoint for each type. Calls to the type endpoint pass through to the sub-endpoint, just like tags. Item models treat permissions like any populated property.
2 - Permissions are returned as a list of rules, where a rule is a grantee-capability pairing.
3 - We have another sub-endpoint for DefaultPermissions, for Projects and (in another PR), databases.
4 - We have a new `as_reference` and and `to_reference` method on `User` and `Group` types, that let's us create an id-only object for use in permissions parsing, and as a short-hand for those objects when you don't need all the other properties. I think this could expand to all item types, but I haven't yet hit a strong need for it so skipped that for this already giant PR.
@fpagliar fpagliar merged commit fa82bb9 into fpagliar:development Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0