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
ac3bc48d
Commit
ac3bc48d
authored
2 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
FIX: empty string is equivalent to no name
parent
2fd4c78f
No related branches found
No related tags found
1 merge request
!105
REL: v0.4.0
Pipeline
#33251
passed
2 years ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+5
-0
5 additions, 0 deletions
CHANGELOG.md
src/caoscrawler/identifiable.py
+2
-0
2 additions, 0 deletions
src/caoscrawler/identifiable.py
with
7 additions
and
0 deletions
CHANGELOG.md
+
5
−
0
View file @
ac3bc48d
...
...
@@ -17,6 +17,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed ###
### Fixed ###
-
an empty string as name is treated as no name (as does the server). This, fixes
queries for identifiables since it would contain "WITH name=''" otherwise
which is an impossible condition. If your cfoods contained this case, it is
possible that Records are now matched that were not before. You need to adjust
your identifiable definition if this is not wanted.
### Security ###
...
...
This diff is collapsed.
Click to expand it.
src/caoscrawler/identifiable.py
+
2
−
0
View file @
ac3bc48d
...
...
@@ -62,6 +62,8 @@ class Identifiable():
self
.
path
=
path
self
.
record_type
=
record_type
self
.
name
=
name
if
name
is
""
:
self
.
name
=
None
self
.
properties
:
dict
=
{}
if
properties
is
not
None
:
self
.
properties
=
properties
...
...
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