Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
7f620adf
Commit
7f620adf
authored
Aug 06, 2019
by
Markus Scheidgen
Browse files
Added missing field to migration package class. [skip ci]
parent
37296e22
Pipeline
#53205
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/migration.py
View file @
7f620adf
...
...
@@ -406,6 +406,8 @@ class Package(Document):
next_offset
=
IntField
(
default
=-
1
)
""" Only for packages created from large tars. Give the offset to continue to create the next package. """
no_provernance
=
BooleanField
(
default
=
False
)
""" Does this package have calculations in the CoE Repository postgres db """
meta
=
dict
(
indexes
=
[
'upload_id'
,
'migration_version'
])
...
...
@@ -900,8 +902,8 @@ class SourceCalc(Document):
@
staticmethod
def
index
(
source
,
drop
:
bool
=
False
,
with_metadata
:
bool
=
True
,
per_query
:
int
=
100
,
start_pid
:
int
=
-
1
)
->
Generator
[
Tuple
[
'SourceCalc'
,
int
],
None
,
None
]:
source
,
drop
:
bool
=
False
,
with_metadata
:
bool
=
True
,
per_query
:
int
=
100
,
start_pid
:
int
=
-
1
)
->
Generator
[
Tuple
[
'SourceCalc'
,
int
],
None
,
None
]:
"""
Creates a collection of :class:`SourceCalc` documents that represent source repo
db entries.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment