Skip to content

Commit 9803d50

Browse files
Updates to policy config and npm version of policy engine (#2141)
1 parent 164c26f commit 9803d50

File tree

5 files changed

+120
-26
lines changed

5 files changed

+120
-26
lines changed

database/mssql/scripts/versions/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,4 +328,8 @@
328328
- Configure STOW permit templates
329329

330330
### Version 83:
331-
- Updated policy config json to support fixed cost for NR conditional permits
331+
- Updated policy config json to support fixed cost for NR conditional permits
332+
333+
### Version 84:
334+
- Updated policy config json to reflect new structure to support STOW
335+
- Note this has a new minimum PE version, so requires updates to policy engine NPM packages wherever used
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
SET ANSI_NULLS ON
2+
GO
3+
SET QUOTED_IDENTIFIER ON
4+
GO
5+
SET NOCOUNT ON
6+
GO
7+
SET XACT_ABORT ON
8+
GO
9+
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
10+
GO
11+
BEGIN TRANSACTION
12+
GO
13+
14+
-- Remove the newly added policy configuration
15+
DELETE FROM [dbo].[ORBC_POLICY_CONFIGURATION]
16+
WHERE POLICY_CONFIGURATION_ID = (SELECT MAX(POLICY_CONFIGURATION_ID) FROM [dbo].[ORBC_POLICY_CONFIGURATION])
17+
GO
18+
19+
IF @@ERROR <> 0 SET NOEXEC ON
20+
GO
21+
22+
DECLARE @VersionDescription VARCHAR(255)
23+
SET @VersionDescription = 'Reverting updates to policy config to allow weight dimensions'
24+
25+
INSERT [dbo].[ORBC_SYS_VERSION] ([VERSION_ID], [DESCRIPTION], [RELEASE_DATE]) VALUES (83, @VersionDescription, getutcdate())
26+
GO
27+
28+
IF @@ERROR <> 0 SET NOEXEC ON
29+
GO
30+
31+
COMMIT TRANSACTION
32+
GO
33+
IF @@ERROR <> 0 SET NOEXEC ON
34+
GO
35+
DECLARE @Success AS BIT
36+
SET @Success = 1
37+
SET NOEXEC OFF
38+
IF (@Success = 1) PRINT 'The database revert succeeded'
39+
ELSE BEGIN
40+
IF @@TRANCOUNT > 0 ROLLBACK TRANSACTION
41+
PRINT 'The database revert failed'
42+
END
43+
GO

database/mssql/scripts/versions/v_84_ddl.sql

Lines changed: 48 additions & 0 deletions
Large diffs are not rendered by default.

frontend/package-lock.json

Lines changed: 23 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"material-react-table": "^2.13.3",
2222
"mui-nested-menu": "^3.4.0",
2323
"oidc-client-ts": "^3.1.0",
24-
"onroute-policy-engine": "^1.7.0",
24+
"onroute-policy-engine": "^2.0.1",
2525
"react": "^18.3.1",
2626
"react-dom": "^18.3.1",
2727
"react-error-boundary": "^4.1.2",

0 commit comments

Comments
 (0)