Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Project
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
backend
apis
Project
Commits
e6291dc5
Commit
e6291dc5
authored
4 years ago
by
L. Ellenbeck
Browse files
Options
Downloads
Patches
Plain Diff
check for adjustable flag coscine/issues#1568
parent
e1168fa9
No related branches found
No related tags found
1 merge request
!157
Update: Added max quota and adapt Quota handling
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Project/Controllers/ProjectController.cs
+9
-2
9 additions, 2 deletions
src/Project/Controllers/ProjectController.cs
src/Project/Project.csproj
+1
-0
1 addition, 0 deletions
src/Project/Project.csproj
with
10 additions
and
2 deletions
src/Project/Controllers/ProjectController.cs
+
9
−
2
View file @
e6291dc5
...
...
@@ -375,9 +375,16 @@ namespace Coscine.Api.Project.Controllers
return
NotFound
(
$"Could not find resourceType with id:
{
resourceTypeId
}
"
);
}
if
(
resourceType
.
DisplayName
.
Equals
(
"rdss3"
))
var
resourceTypeDefinition
=
ResourceTypeFactory
.
CreateResourceTypeObject
(
resourceType
.
DisplayName
,
_configuration
);
if
(
resourceTypeDefinition
==
null
)
{
return
BadRequest
(
$"No provider for: \"
{
resourceType
.
DisplayName
}
\"."
);
}
if
(!
resourceTypeDefinition
.
GetResourceTypeInformation
().
Result
.
IsQuotaAdjustable
)
{
return
BadRequest
(
$"Cannot adjust quota for
rdss3
."
);
return
BadRequest
(
$"Cannot adjust quota for
{
resourceType
.
DisplayName
}
."
);
}
if
(
updateProjectQuotaObject
.
Allocated
<
0
)
...
...
This diff is collapsed.
Click to expand it.
src/Project/Project.csproj
+
1
−
0
View file @
e6291dc5
...
...
@@ -23,5 +23,6 @@
<PackageReference Include="Coscine.Logging" Version="2.*-*" />
<PackageReference Include="Coscine.Metadata" Version="2.*-*" />
<PackageReference Include="Coscine.ResourceLoader" Version="2.*-*" />
<PackageReference Include="Coscine.ResourceTypeBase" Version="2.*-*" />
</ItemGroup>
</Project>
\ No newline at end of file
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