Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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-pylib
Commits
3bd7191c
Commit
3bd7191c
authored
4 months ago
by
I. Nüske
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Update compare_entities Docstring to describe which keys are used in the diff
parent
790fb8b6
No related branches found
No related tags found
2 merge requests
!175
BUG: Request responses without the "Set-Cookie" header no longer overwrite the...
,
!165
Compare_entities diff uses id instead of name where needed
Pipeline
#58408
passed
4 months ago
Stage: code_style
Stage: linting
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/linkahead/apiutils.py
+4
-2
4 additions, 2 deletions
src/linkahead/apiutils.py
with
4 additions
and
2 deletions
src/linkahead/apiutils.py
+
4
−
2
View file @
3bd7191c
...
...
@@ -196,6 +196,8 @@ def compare_entities(entity0: Optional[Entity] = None,
that are missing in the other entity, and the
'
properties
'
dict contains
properties and SPECIAL_ATTRIBUTES if they are missing or different from
their counterparts in the other entity.
The key used to represent a parent or property is the entities name if the
name is present for both compared entities, the id otherwise.
The value of the properties dict for each listed property is again a dict
detailing the differences between this property and its counterpart.
...
...
@@ -224,9 +226,9 @@ def compare_entities(entity0: Optional[Entity] = None,
Params
------
entity0
:
Entity
entity0
:
Entity
First entity to be compared.
entity1
:
Entity
entity1
:
Entity
Second entity to be compared.
compare_referenced_records: bool, default: False
If set to True, values with referenced records
...
...
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