Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-python
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Wiki
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-python
Merge requests
!47
added check of view collections
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
added check of view collections
feature/AUTO-1518_view-collections
into
master
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Anton Teplyakov
requested to merge
feature/AUTO-1518_view-collections
into
master
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
https://tracker.yandex.ru/AUTO-1518
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
291966bd
1 commit,
1 year ago
2 files
+
6
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
perxis/extensions/extension_setup.py
+
5
−
0
Options
@@ -6,6 +6,7 @@ import typing
@@ -6,6 +6,7 @@ import typing
from
deepdiff
import
DeepDiff
from
deepdiff
import
DeepDiff
from
google.protobuf.json_format
import
MessageToDict
from
perxis.collections
import
collections_pb2_grpc
,
collections_pb2
from
perxis.collections
import
collections_pb2_grpc
,
collections_pb2
from
perxis.roles
import
roles_pb2_grpc
,
roles_pb2
from
perxis.roles
import
roles_pb2_grpc
,
roles_pb2
from
perxis.common
import
common_pb2
from
perxis.common
import
common_pb2
@@ -339,6 +340,10 @@ class ExtensionSetup:
@@ -339,6 +340,10 @@ class ExtensionSetup:
continue
continue
# если view-коллекция то не устанавливаем схему
if
MessageToDict
(
collection
).
get
(
"
view
"
):
continue
diff
=
DeepDiff
(
diff
=
DeepDiff
(
json
.
loads
(
collection
.
schema
or
"
{}
"
),
json
.
loads
(
collection
.
schema
or
"
{}
"
),
json
.
loads
(
local_collection
.
schema
or
"
{}
"
),
json
.
loads
(
local_collection
.
schema
or
"
{}
"
),
Loading