mirror of
https://github.com/quay/quay.git
synced 2025-11-17 23:02:34 +03:00
chore: drop deprecated tables and remove unused code (PROJQUAY-522) (#2089)
* chore: drop deprecated tables and remove unused code * isort imports * migration: check for table existence before drop
This commit is contained in:
committed by
GitHub
parent
e72773bbce
commit
5f63b3a7bb
@@ -1,31 +1,34 @@
|
||||
"""
|
||||
Manage user and organization robot accounts.
|
||||
"""
|
||||
from flask import abort, request
|
||||
|
||||
from auth import scopes
|
||||
from auth.auth_context import get_authenticated_user
|
||||
from auth.permissions import (
|
||||
AdministerOrganizationPermission,
|
||||
OrganizationMemberPermission,
|
||||
)
|
||||
from endpoints.api import (
|
||||
allow_if_superuser,
|
||||
resource,
|
||||
nickname,
|
||||
ApiResource,
|
||||
allow_if_superuser,
|
||||
log_action,
|
||||
max_json_size,
|
||||
nickname,
|
||||
parse_args,
|
||||
path_param,
|
||||
query_param,
|
||||
related_user_resource,
|
||||
request_error,
|
||||
require_user_admin,
|
||||
require_scope,
|
||||
path_param,
|
||||
parse_args,
|
||||
query_param,
|
||||
require_user_admin,
|
||||
resource,
|
||||
validate_json_request,
|
||||
max_json_size,
|
||||
)
|
||||
from endpoints.api.robot_models_pre_oci import pre_oci_model as model
|
||||
from endpoints.exception import Unauthorized
|
||||
from auth.permissions import AdministerOrganizationPermission, OrganizationMemberPermission
|
||||
from auth.auth_context import get_authenticated_user
|
||||
from auth import scopes
|
||||
from util.names import format_robot_username
|
||||
from util.parsing import truthy_bool
|
||||
from flask import abort, request
|
||||
|
||||
|
||||
CREATE_ROBOT_SCHEMA = {
|
||||
"type": "object",
|
||||
|
||||
Reference in New Issue
Block a user