Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CaosDB Crawler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
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
Code review analytics
Issue 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
caosdb
Software
CaosDB Crawler
Commits
462ec764
Commit
462ec764
authored
1 year ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
up
parent
ec2e7791
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!178
FIX: #96 Better error output for crawl.py script.
,
!167
Sync Graph
Pipeline
#51348
failed
1 year ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caoscrawler/sync_graph.py
+9
-0
9 additions, 0 deletions
src/caoscrawler/sync_graph.py
with
9 additions
and
0 deletions
src/caoscrawler/sync_graph.py
+
9
−
0
View file @
462ec764
...
@@ -286,6 +286,12 @@ class SyncGraph():
...
@@ -286,6 +286,12 @@ class SyncGraph():
Return an equivalent SyncNode.
Return an equivalent SyncNode.
Equivalent means that ID, path or identifiable are the same.
Equivalent means that ID, path or identifiable are the same.
If a new information was added to the given SyncNode (e.g. the ID), it might be possible
then to identify an equivalent node (i.e. one with the same ID in this example).
There might be more than one equivalent nodes in the graph. However, simply the first that
is found is being returned. (When an equivalent node is found this, the given node is
typically merged, into the one that was found and after the merge the graph is again
checked for equivalent nodes)
Returns None if no equivalent node is found.
Returns None if no equivalent node is found.
"""
"""
...
@@ -565,6 +571,9 @@ class SyncGraph():
...
@@ -565,6 +571,9 @@ class SyncGraph():
# - merge
# - merge
self
.
_add_identifiables_to_dependend_nodes
(
target
)
self
.
_add_identifiables_to_dependend_nodes
(
target
)
if
self
.
get_equivalent
(
target
)
is
not
None
:
self
.
_merge_into
(
target
,
self
.
get_equivalent
(
target
))
def
_identifiable_is_needed
(
self
,
node
:
SyncNode
):
def
_identifiable_is_needed
(
self
,
node
:
SyncNode
):
"""
"""
This function checks:
This function checks:
...
...
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