Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
atlas
athena
Merge requests
!41386
22.0-clang_warning_fix-IOVDbSvc
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
22.0-clang_warning_fix-IOVDbSvc
sroe/athena:22.0-clang_warning_fix-IOVDbSvc
into
master
Overview
2
Commits
1
Pipelines
1
Changes
1
Merged
Shaun Roe
requested to merge
sroe/athena:22.0-clang_warning_fix-IOVDbSvc
into
master
4 years ago
Overview
2
Commits
1
Pipelines
1
Changes
1
Expand
Correct warning about unused variable (which was actually a bug)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
c8f8590f
1 commit,
4 years ago
1 file
+
3
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Database/IOVDbSvc/src/CrestFunctions.cxx
+
3
−
6
Options
/*
Copyright (C) 2002-201
9
CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-20
2
1 CERN for the benefit of the ATLAS collaboration
*/
// @file CrestFunctions.cxx
// Implementation for CrestFunctions utilities
@@ -39,25 +39,22 @@ namespace IOVDbNamespace{
std
::
string
getIovsForTag
(
const
std
::
string
&
tag
,
const
bool
testing
){
//std::string url=urlBase()+"/iovs?tagname="+tag;
std
::
string
reply
{
R"delim([{"tagName":"Indet_Align-channelList","since":0,"insertionTime":"2019-07-08T15:33:46.124+0000","payloadHash":"551e8b2807dea49dd91933ba963d8eff78b3441ae5836cd17cddad26ec14ecc3"}])delim"
};
if
(
not
testing
){
//...CrestApi returns Iovs as a json object
auto
myCrestClient
=
Crest
::
CrestClient
(
urlBase
());
const
auto
&
jsonIovsList
=
myCrestClient
.
findAllIovs
(
tag
);
reply
=
myCrestClient
.
findAllIovs
(
tag
);
}
return
extractHashFromJson
(
reply
);
}
std
::
string
getPayloadForHash
(
const
std
::
string
&
hash
,
const
bool
testing
){
//auto payloadForHash=[](const std::string &h){return "/payloads/"+h+"/data";};
//std::string url=urlBase()+payloadForHash(hash);
std
::
string
reply
{
R"delim({"channel_list": ["0", "100", "101", "200", "201", "202", "203", "204", "205", "206", "207", "208", "209", "210", "211", "212", "213", "214", "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230"]})delim"
};
if
(
not
testing
){
//CrestApi method:
auto
myCrestClient
=
Crest
::
CrestClient
(
urlBase
());
re
turn
myCrestClient
.
getPayloadAsString
(
hash
);
re
ply
=
myCrestClient
.
getPayloadAsString
(
hash
);
}
return
reply
;
}
Loading