Skip to content

Commit f8a8a29

Browse files
Calin LupasCalin Lupas
authored andcommitted
Remove RepositoryClassification from RequestModel
The `RepositoryClassification` property has been removed from the `RepositoryRequestModel` class. This change affects its declaration, usage in various methods, and validity checks. The focus is now on `RepositoryName`, `RepositoryVisibility`, and `RepositoryDescription`.
1 parent 2079f34 commit f8a8a29

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/DevExcelerateApi/Models/RepositoryRequestModel.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ public class RepositoryRequestModel : DevExIssueRequestModel
1818
[YamlMember(Alias = "visibility", Order = 12)]
1919
public string? RepositoryVisibility { get; set; }
2020

21-
[YamlMember(Alias = "classification", Order = 13)]
22-
public string? RepositoryClassification { get; set; }
23-
2421
[YamlMember(Alias = "repository_description", Order = 14)]
2522
public string? RepositoryDescription { get; set; }
2623

@@ -93,7 +90,6 @@ public class RepositoryRequestModel : DevExIssueRequestModel
9390
RepositoryName = repositoryName?.ToString()?.SanitizeResourceName(),
9491
NewRepositoryName = newRepositoryName?.ToString()?.SanitizeResourceName(),
9592
RepositoryVisibility = repositoryVisibility?.ToString(),
96-
RepositoryClassification = repositoryClassification?.ToString(),
9793
RepositoryDescription = repositoryDescription?.ToString(),
9894
RepositoryMaintainers = repositoryMaintainers?.ToString(),
9995
MaintainerList = repositoryMaintainers?.ToString().ConvertCsvToList(),
@@ -116,7 +112,6 @@ public bool IsValidCreate()
116112
return RequestType == RequestType.CREATE_REPOSITORY &&
117113
!string.IsNullOrEmpty(RepositoryName) &&
118114
!string.IsNullOrEmpty(RepositoryVisibility) &&
119-
!string.IsNullOrEmpty(RepositoryClassification) &&
120115
!string.IsNullOrEmpty(RepositoryDescription) &&
121116
ContributorList?.Count > 0 &&
122117
RulesetList?.Count > 0;
@@ -131,7 +126,6 @@ public bool IsValidUpdate()
131126
!string.IsNullOrEmpty(NewRepositoryName) ||
132127
!string.IsNullOrEmpty(RepositoryDescription) ||
133128
!string.IsNullOrEmpty(RepositoryVisibility) ||
134-
!string.IsNullOrEmpty(RepositoryClassification) ||
135129
!string.IsNullOrEmpty(RepositoryMaintainers) ||
136130
!string.IsNullOrEmpty(RepositoryReaders) ||
137131
!string.IsNullOrEmpty(RepositoryContributors) ||
@@ -155,8 +149,7 @@ public void Update(RepositoryRequestModel model)
155149
{
156150
if (string.IsNullOrEmpty(RepositoryDescription)) RepositoryDescription = model.RepositoryDescription;
157151
if (string.IsNullOrEmpty(RepositoryVisibility)) RepositoryVisibility = model.RepositoryVisibility;
158-
if (string.IsNullOrEmpty(RepositoryClassification)) RepositoryClassification = model.RepositoryClassification;
159-
152+
160153
if (MaintainerList == null || MaintainerList.Count == 0)
161154
{
162155
MaintainerList = model.MaintainerList ?? [];

0 commit comments

Comments
 (0)