Skip to content
This repository has been archived by the owner on Mar 11, 2020. It is now read-only.

Workspaces #32

Draft
wants to merge 9 commits into
base: develop
Choose a base branch
from
Draft

Workspaces #32

wants to merge 9 commits into from

Conversation

b0g3r
Copy link
Member

@b0g3r b0g3r commented Feb 16, 2019

Resolve #19

b0g3r and others added 9 commits February 6, 2019 21:42
* Add vk gate

- Add function to obtain token
- Add function to submit post to group (to be updated)
- Group all Vk API requests into a small client
- Add Vk API request exception
* Add OAuth2 authentication

* Fix trailing commas 🙈

* Add instruction for oauth using and basic setting

* Add user registration

* Fix flake8-per-file-ignores with flake8 3.7.x issues :(

more info: wemake-services/wemake-python-styleguide#472 (comment)

* Fix code for passing flake8 linter checks
Also remove most of superuser endpoints, because I'm not sure about them.
Maybe they should be in isolated prefix, like `/admin/workspace`

Because most of requests to our API tied to specific workspace (e.g.
work with publications), the middleware saves us from a lot of repeated
code for extracting workspace by request data.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
code for extracting workspace by request data.
code for extracting workspace from request data.


def __init__(self, get_response):
"""
Standard interface of django middleware.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Standard interface of django middleware.
A standard interface of Django middleware.


def process_view(self, request, view_func, view_args, view_kwargs):
"""
One of the django middleware hook.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
One of the django middleware hook.
One of the django middleware hooks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants