Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
oee-services
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
harshavardhan.c
oee-services
Commits
51c833a7
Commit
51c833a7
authored
Jun 07, 2022
by
harshavardhan.c
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aggregation bugfix while fetching the project_info.
parent
5bad1819
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
scripts/db/mongo/ilens_configuration/aggregations/customer_projects.py
...ngo/ilens_configuration/aggregations/customer_projects.py
+1
-1
No files found.
scripts/db/mongo/ilens_configuration/aggregations/customer_projects.py
View file @
51c833a7
...
@@ -13,5 +13,5 @@ class ProjectAggregate:
...
@@ -13,5 +13,5 @@ class ProjectAggregate:
},
},
}},
{
'$replaceRoot'
:
{
'newRoot'
:
{
'$arrayToObject'
:
'$data'
}}}]
}},
{
'$replaceRoot'
:
{
'newRoot'
:
{
'$arrayToObject'
:
'$data'
}}}]
if
project_id
:
if
project_id
:
query_json
[
0
]
.
update
(
{
'$match'
:
{
'customer_project_id'
:
project_id
}})
query_json
.
insert
(
0
,
{
'$match'
:
{
'customer_project_id'
:
project_id
}})
return
query_json
return
query_json
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment