-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
User can edit actions on delegated service (#1130)
* trigger delegation modal from service display * display which resources user already has on delegation * display what rights the user already has * made hooks for delegation and revoke rights * new revoke endpoint and hook based on backends new endpoints * added use of new endpoints for edit functionality * fixed and added tests * added final tests * moved back button up * Fix code scanning alert no. 36: Log entries created from user input Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * fixed warnings * more conditional testing * typo * more warning fixes --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
- Loading branch information
1 parent
d64ee2b
commit 6385d56
Showing
49 changed files
with
1,315 additions
and
1,909 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
name: 'Continuous Integration: Frontend' | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_dispatch: # Manual trigger | ||
push: | ||
branches: [main] | ||
paths-ignore: | ||
- backend/** | ||
|
||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths-ignore: | ||
- backend/** | ||
|
||
jobs: | ||
ci: | ||
name: 'Continous Integration' | ||
name: 'Continuous Integration' | ||
uses: './.github/workflows/template-build-and-test-frontend.yml' |
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
29 changes: 29 additions & 0 deletions
29
...ment.UI/Altinn.AccessManagement.UI.Core/Models/SingleRight/Frontend/ResourceDelegation.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,29 @@ | ||
using Altinn.AccessManagement.UI.Core.Models.ResourceRegistry.Frontend; | ||
|
||
namespace Altinn.AccessManagement.UI.Core.Models.SingleRight | ||
{ | ||
/// <summary> | ||
/// Used to display a delegation in GUI, complete with the delegated rights and information about the resource | ||
/// </summary> | ||
public class ResourceDelegation | ||
{ | ||
/// <summary> | ||
/// The resource delegated. | ||
/// </summary> | ||
public ServiceResourceFE Resource { get; set; } | ||
|
||
/// <summary> | ||
/// Information about the delegation and rights | ||
/// </summary> | ||
public DelegationOutput Delegation { get; set; } | ||
|
||
/// <summary> | ||
/// Constructor | ||
/// </summary> | ||
public ResourceDelegation(ServiceResourceFE resource, DelegationOutput delegation) | ||
{ | ||
Resource = resource; | ||
Delegation = delegation; | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...Management.UI/Altinn.AccessManagement.UI.Core/Models/SingleRight/Frontend/RightChanges.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,18 @@ | ||
namespace Altinn.AccessManagement.UI.Core.Models.SingleRight | ||
{ | ||
/// <summary> | ||
/// The edits to be made to the delegated right on a resource | ||
/// </summary> | ||
public class RightChanges | ||
{ | ||
/// <summary> | ||
/// List of rightKeys for the rights that are to be delegated | ||
/// </summary> | ||
public List<string> RightsToDelegate { get; set; } | ||
|
||
/// <summary> | ||
/// List of rightKeys for the rights that are to be revoked | ||
/// </summary> | ||
public List<string> RightsToRevoke { get; set; } | ||
} | ||
} |
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.