-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DMS-434] Build Validation for resourceClaims (#378)
* Adding the table and basic CRUD for ClaimSet * Frontend basic CRUD for claimSets * Fixing things after testing endpoints on postman * Adding Copy functionallity * Adding support for Export * Adding support for import claimsets * Adding verbose parameter for get by id and get all * Adding detail: Data validation failed. See 'validationErrors' for details. For Unit Test * Adding Claimset Postgresql integration test * first step on frontend unit test success scenarios * success test for copy export and import * Adding test more scenarios for claimsets * Renaming ClaimSetName to name to follow the AdminAPI standard * adding a collection of applications to get all and get by id * collection of applications also for export option * JsonPropertyName for _applications and _isSystemREserved * removing IsSystemReserved from parameter for import put and post * Chance type JsonElement to ResourceClaim on import * Paging change namespace location after merge * Testing solution for on pull request error * setup dotnet * codeql * setup net 8 on pull request for config * updating detail for e2e data validation error * adding net8 setup step on scheduled build * Take ResourceClaim and serialize it to store in db * Validation: ActionName and AuthStrategyName must exist * Adding ResourceClaimValidator to ClaimSetImportCommand * DataProvider to get to the repository data actions and AuthStrategies * Fixing Tests * Common Validator for import, insert and update and testing scenarios * Adding claimsetname unique name validation for claimset * Adding propper response for validation of duplicate claimsetname * Testing frontend response for duplicated claimsetname * Unify serialze for resourceclaim * Minor adjustments
- Loading branch information
1 parent
4c1d4c4
commit 09768b6
Showing
21 changed files
with
634 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/config/backend/EdFi.DmsConfigurationService.Backend.Postgresql/ClaimSetDataProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// Licensed to the Ed-Fi Alliance under one or more agreements. | ||
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. | ||
// See the LICENSE and NOTICES files in the project root for more information. | ||
|
||
using EdFi.DmsConfigurationService.Backend.Repositories; | ||
using EdFi.DmsConfigurationService.DataModel.Model.ClaimSets; | ||
|
||
namespace EdFi.DmsConfigurationService.Backend.Postgresql; | ||
|
||
public class ClaimSetDataProvider(IClaimSetRepository repository) : IClaimSetDataProvider | ||
{ | ||
public List<string> GetActions() | ||
{ | ||
return repository.GetActions().Select(a => a.Name).ToList(); | ||
} | ||
|
||
public List<string> GetAuthorizationStrategies() | ||
{ | ||
return repository.GetAuthorizationStrategies().Select(a => a.AuthStrategyName).ToList(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.