Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
TFS
controller
Merge requests
!181
Resolve "(CTTC) Multiple Bug Fixes affecting `common` code"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "(CTTC) Multiple Bug Fixes affecting `common` code"
feat/96-cttc-multiple-bug-fixes-affecting-common-code
into
develop
Overview
0
Commits
1
Pipelines
3
Changes
3
Merged
Lluis Gifre Renom
requested to merge
feat/96-cttc-multiple-bug-fixes-affecting-common-code
into
develop
1 year ago
Overview
0
Commits
1
Pipelines
3
Changes
3
Expand
Closes
#96 (closed)
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
1d98c9bb
1 commit,
1 year ago
3 files
+
7
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
src/common/tests/InMemoryObjectDatabase.py
+
3
−
1
Options
@@ -37,7 +37,9 @@ class InMemoryObjectDatabase:
LOGGER
.
debug
(
'
[get_entry] BEFORE database={:s}
'
.
format
(
str
(
self
.
_database
)))
container
=
self
.
_get_container
(
container_name
)
if
entry_uuid
not
in
container
:
context
.
abort
(
grpc
.
StatusCode
.
NOT_FOUND
,
str
(
'
{:s}({:s}) not found
'
.
format
(
container_name
,
entry_uuid
)))
MSG
=
'
{:s}({:s}) not found; available({:s})
'
msg
=
str
(
MSG
.
format
(
container_name
,
entry_uuid
,
str
(
container
.
keys
())))
context
.
abort
(
grpc
.
StatusCode
.
NOT_FOUND
,
msg
)
return
container
[
entry_uuid
]
def
set_entry
(
self
,
container_name
:
str
,
entry_uuid
:
str
,
entry
:
Any
)
->
Any
:
Loading