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
988208cd
Commit
988208cd
authored
1 year ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Plain Diff
Merge branch 'f-empty' into 'dev'
Allow empty records See merge request
!132
parents
942cf082
369286d6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!160
STY: styling
,
!132
Allow empty records
Pipeline
#41704
passed
1 year ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
3
Pipelines
12
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
src/caoscrawler/converters.py
+6
-0
6 additions, 0 deletions
src/caoscrawler/converters.py
unittests/test_parent_cfood.yml
+1
-1
1 addition, 1 deletion
unittests/test_parent_cfood.yml
with
8 additions
and
1 deletion
CHANGELOG.md
+
1
−
0
View file @
988208cd
...
...
@@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed ###
### Fixed ###
-
Empty Records can now be created (https://gitlab.com/caosdb/caosdb-crawler/-/issues/27)
*
[
#58
](
https://gitlab.com/caosdb/caosdb-crawler/-/issues/58
)
Documentation builds API docs in pipeline now.
...
...
This diff is collapsed.
Click to expand it.
src/caoscrawler/converters.py
+
6
−
0
View file @
988208cd
...
...
@@ -235,6 +235,12 @@ def create_records(values: GeneralStore, records: RecordStore, def_records: dict
keys_modified
=
[]
for
name
,
record
in
def_records
.
items
():
# If only a name was given (Like this:
# Experiment:
# ) set record to an empty dict / empty configuration
if
record
is
None
:
record
=
{}
role
=
"
Record
"
# This allows us to create e.g. Files
if
"
role
"
in
record
:
...
...
This diff is collapsed.
Click to expand it.
unittests/test_parent_cfood.yml
+
1
−
1
View file @
988208cd
...
...
@@ -10,7 +10,6 @@ data:
match_name
:
'
.*'
records
:
Experiment
:
name
:
"
e"
Projekt
:
parents
:
[
"
project"
]
name
:
"
p"
...
...
@@ -25,6 +24,7 @@ data:
records
:
Experiment
:
parents
:
[
"
Exp"
]
name
:
"
e"
Projekt
:
parents
:
[
"
Projekt"
]
Campaign
:
...
...
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