Skip to content

Commit

Permalink
Support for new policy engine with LCV awareness
Browse files Browse the repository at this point in the history
  • Loading branch information
john-fletcher-aot committed Dec 24, 2024
1 parent 51727fa commit 12b85dd
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 8 deletions.

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions database/mssql/scripts/versions/revert/v_52_ddl_revert.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET NOCOUNT ON
GO
SET XACT_ABORT ON
GO
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
GO
BEGIN TRANSACTION
GO

-- Remove the newly added policy configuration
DELETE FROM [dbo].[ORBC_POLICY_CONFIGURATION]
WHERE POLICY_CONFIGURATION_ID = (SELECT MAX(POLICY_CONFIGURATION_ID) FROM [dbo].[ORBC_POLICY_CONFIGURATION])
GO

IF @@ERROR <> 0 SET NOEXEC ON
GO

DECLARE @VersionDescription VARCHAR(255)
SET @VersionDescription = 'Reverting updates to policy configuration JSON for lcv'

INSERT [dbo].[ORBC_SYS_VERSION] ([VERSION_ID], [DESCRIPTION], [RELEASE_DATE]) VALUES (51, @VersionDescription, getutcdate())
GO

IF @@ERROR <> 0 SET NOEXEC ON
GO

COMMIT TRANSACTION
GO
IF @@ERROR <> 0 SET NOEXEC ON
GO
DECLARE @Success AS BIT
SET @Success = 1
SET NOEXEC OFF
IF (@Success = 1) PRINT 'The database revert succeeded'
ELSE BEGIN
IF @@TRANCOUNT > 0 ROLLBACK TRANSACTION
PRINT 'The database revert failed'
END
GO
48 changes: 48 additions & 0 deletions database/mssql/scripts/versions/v_52_ddl.sql

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"material-react-table": "^2.13.3",
"mui-nested-menu": "^3.4.0",
"oidc-client-ts": "^3.1.0",
"onroute-policy-engine": "^1.0.0",
"onroute-policy-engine": "^1.1.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-error-boundary": "^4.1.2",
Expand Down

0 comments on commit 12b85dd

Please sign in to comment.