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
13114a96
Commit
13114a96
authored
1 year ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Plain Diff
Merge branch 'f-id-path' into f-refactor-merge
parents
dc95a9ab
65dd9bab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
4 merge requests
!160
STY: styling
,
!153
MAINT: refactor merge into new function
,
!152
MAINT: move checks that are not related to identifiables
,
!151
New class to track treated Records during sync
Pipeline
#47359
passed
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/crawl.py
+0
-31
0 additions, 31 deletions
src/caoscrawler/crawl.py
with
0 additions
and
31 deletions
src/caoscrawler/crawl.py
+
0
−
31
View file @
13114a96
...
...
@@ -254,27 +254,6 @@ class TreatedRecordLookUp():
self
.
_missing
:
dict
[
int
,
db
.
Entity
]
=
{}
self
.
_existing
:
dict
[
int
,
db
.
Entity
]
=
{}
# TODO is this needed?
def
by_path
(
self
,
path
):
if
path
in
self
.
_path_look_up
:
return
self
.
_path_look_up
[
path
]
else
:
return
None
# TODO is this needed?
def
by_ID
(
self
,
eid
):
if
eid
in
self
.
_id_look_up
:
return
self
.
_id_look_up
[
path
]
else
:
return
None
# TODO is this needed?
def
by_identifiable
(
self
,
identifiable
):
if
identifiable
.
get_representation
()
in
self
.
_id_look_up
:
return
self
.
_id_look_up
[
identifiable
.
get_representation
()]
else
:
return
None
def
add
(
self
,
record
:
db
.
Entity
,
identifiable
:
Optional
[
Identifiable
]
=
None
):
"""
Add a Record that was treated, such that it is contained in the internal look up dicts
...
...
@@ -326,16 +305,6 @@ class TreatedRecordLookUp():
else
:
return
None
# TODO is this needed?
def
is_missing
(
self
,
record
:
db
.
Entity
):
"""
Check whether this Record is missing on the remote server
"""
return
id
(
record
)
in
self
.
_missing
# TODO is this needed?
def
is_existing
(
self
,
record
:
db
.
Entity
):
"""
Check whether this Record is existing on the remote server
"""
return
id
(
record
)
in
self
.
_existing
def
get_missing_list
(
self
):
"""
Return all Records that are missing in the remote server
"""
return
list
(
self
.
_missing
.
values
())
...
...
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