Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Coscine
backend
apis
Project
Commits
c7499fab
Commit
c7499fab
authored
Jun 29, 2020
by
Benedikt Heinrichs
Browse files
Get all resources from a project instead
parent
6c333afb
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Project/Controllers/ProjectController.cs
View file @
c7499fab
...
...
@@ -138,7 +138,10 @@ namespace Coscine.Api.Project.Controllers
if
(
projectQuota
.
ResourceType
.
DisplayName
==
"rds"
)
{
var
resources
=
resourceModel
.
GetAllWhere
((
resource
)
=>
resource
.
TypeId
==
projectQuota
.
ResourceType
.
Id
);
resource
.
TypeId
==
projectQuota
.
ResourceType
.
Id
&&
(
from
connection
in
resource
.
ProjectResourceResourceIdIds
where
connection
.
ProjectId
==
guidId
select
connection
).
Any
());
var
size
=
resources
.
Sum
((
resource
)
=>
rdsResourceTypeModel
.
GetById
(
resource
.
ResourceTypeOptionId
.
Value
).
Size
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment