Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-python
Manage
Activity
Members
Plan
Custom issue tracker
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-python
Commits
291966bd
Commit
291966bd
authored
1 year ago
by
antondmtvch
Browse files
Options
Downloads
Patches
Plain Diff
added check of view collections
parent
8e7c7411
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
perxis/extensions/extension_setup.py
+5
-0
5 additions, 0 deletions
perxis/extensions/extension_setup.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
6 additions
and
1 deletion
perxis/extensions/extension_setup.py
+
5
−
0
View file @
291966bd
...
@@ -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
"
{}
"
),
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
291966bd
...
@@ -14,7 +14,7 @@ def load_requirements():
...
@@ -14,7 +14,7 @@ def load_requirements():
setup
(
setup
(
name
=
'
perxis
'
,
name
=
'
perxis
'
,
version
=
'
1.0.
0
'
,
version
=
'
1.0.
1
'
,
description
=
'
Perxis python client
'
,
description
=
'
Perxis python client
'
,
long_description
=
long_description
,
long_description
=
long_description
,
long_description_content_type
=
'
text/markdown
'
,
long_description_content_type
=
'
text/markdown
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment