Skip to content
Snippets Groups Projects
Commit 7e1bc70a authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Merge branch 'Sprint/2021-19' into 'master'

Sprint/2021 19

See merge request !15
parents 447aaaa8 ca81fc2c
No related branches found
No related tags found
1 merge request!15Sprint/2021 19
Pipeline #988747 failed
...@@ -22,16 +22,19 @@ namespace Coscine.OrganizationLoader ...@@ -22,16 +22,19 @@ namespace Coscine.OrganizationLoader
{ {
Name ="rds", Name ="rds",
Quota = 25, Quota = 25,
MaxQuota = 100,
HasQuota = true, HasQuota = true,
}, },
new ResourceType new ResourceType
{ Name ="rdss3", { Name ="rdss3",
Quota = 0, Quota = 0,
MaxQuota = 0,
HasQuota = true, HasQuota = true,
}, },
new ResourceType new ResourceType
{ Name = "linked", { Name = "linked",
Quota = -1, Quota = -1,
MaxQuota = -1,
HasQuota = false, HasQuota = false,
}, },
}; };
...@@ -292,7 +295,8 @@ namespace Coscine.OrganizationLoader ...@@ -292,7 +295,8 @@ namespace Coscine.OrganizationLoader
new Organization new Organization
{ {
OrgId = node["OrgId"].InnerText?.Trim(), OrgId = node["OrgId"].InnerText?.Trim(),
Name = node["Name"].InnerText?.Trim(), // IDM changed this to capital and might change it back. Keeps us safe for now.
Name = (node["NAME"] ?? node["Name"]).InnerText?.Trim(),
IKZ = node["IKZ"].InnerText?.Trim(), IKZ = node["IKZ"].InnerText?.Trim(),
Abbreviation = node["Abbreviation"]?.InnerText?.Trim(), Abbreviation = node["Abbreviation"]?.InnerText?.Trim(),
CMSLink = node["CMSLink"].InnerText?.Trim(), CMSLink = node["CMSLink"].InnerText?.Trim(),
...@@ -380,6 +384,7 @@ namespace Coscine.OrganizationLoader ...@@ -380,6 +384,7 @@ namespace Coscine.OrganizationLoader
if (resourceType.HasQuota) if (resourceType.HasQuota)
{ {
streamWriter.WriteLine($@" coscineresource:defaultQuota ""{resourceType.Quota}"";"); streamWriter.WriteLine($@" coscineresource:defaultQuota ""{resourceType.Quota}"";");
streamWriter.WriteLine($@" coscineresource:defaultMaxQuota ""{resourceType.MaxQuota}"";");
} }
streamWriter.WriteLine("]."); streamWriter.WriteLine("].");
} }
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
{ {
public string Name { get; set; } public string Name { get; set; }
public int Quota { get; set; } public int Quota { get; set; }
public int MaxQuota { get; set; }
public bool HasQuota { get; set; } public bool HasQuota { get; set; }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment