-
Notifications
You must be signed in to change notification settings - Fork 6
chore: APP-1186 added maker checker for agency paas project needs (approve, reject, discard etc) #232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
luhfluh
wants to merge
7
commits into
master
Choose a base branch
from
paas/APP-1186
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
chore: APP-1186 added maker checker for agency paas project needs (approve, reject, discard etc) #232
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
39e36b8
chore(ut-rule) added create, accept, discard, reject APP-1186
raymondadutwumagyei fbb0b93
updated package version to 12.1.6-paas.0
raymondadutwumagyei 0f37ee8
Merge branch 'master' into paas/APP-1186
luhfluh 3f699e0
updated code for pr APP-1186
raymondadutwumagyei 05b71ef
added lock/unlock feature APP-1186
raymondadutwumagyei 74f960b
code updates and improvements
raymondadutwumagyei 865867d
Merge branch 'master' into paas/APP-1186
kalinkrustev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -22,3 +22,4 @@ npm-debug.* | |
| package-lock.json | ||
| yarn.lock | ||
| .scannerwork | ||
| .lint/ | ||
This file contains hidden or 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 hidden or 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,17 @@ | ||
| CREATE TABLE [rule].[conditionUnapproved] ( | ||
| conditionId INT IDENTITY(1000, 1) NOT NULL, | ||
| [priority] INT, | ||
| operationStartDate DATETIME, | ||
| operationEndDate DATETIME, | ||
| sourceAccountId NVARCHAR(255), | ||
| destinationAccountId NVARCHAR(255), | ||
| isDeleted BIT NOT NULL DEFAULT(0), -- a flag to show if the rule is deleted, e.g. 1 - Deleted | ||
| createdBy BIGINT NULL, -- id of the actor | ||
| createdOn DATETIME2 (0) NULL, -- date of the rule created | ||
| updatedBy BIGINT NULL, -- id of the actor | ||
| updatedOn DATETIME2 (0) NULL, -- date of the rule updated | ||
| status VARCHAR(20) NULL DEFAULT('pending'), | ||
| rejectReason VARCHAR(255) NULL, | ||
| CONSTRAINT [pkRuleConditionUnapproved] PRIMARY KEY CLUSTERED ([conditionId] ASC), | ||
| CONSTRAINT fkRuleConditionUnapproved_status FOREIGN KEY(status) REFERENCES [core].[status] (statusId) | ||
| ) |
This file contains hidden or 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,11 @@ | ||
| CREATE TABLE [rule].[conditionActorUnapproved] ( | ||
| conditionId INT NOT NULL, | ||
| factor CHAR(2) NOT NULL, | ||
| actorId BIGINT NOT NULL, | ||
| status VARCHAR(20) NULL DEFAULT('pending'), | ||
| CONSTRAINT pkRuleConditionActorUnapproved PRIMARY KEY CLUSTERED (conditionId, factor, actorId), | ||
| CONSTRAINT fkRuleConditionActorUnapproved_conditionId FOREIGN KEY (conditionId) REFERENCES [rule].[conditionUnapproved](conditionId), | ||
| CONSTRAINT fkRuleConditionActorUnapproved_actorId FOREIGN KEY(actorId) REFERENCES [core].[actor] (actorId), | ||
| CONSTRAINT ccRuleConditionActorUnapproved_factor CHECK (factor IN ('so', 'do', 'co')), -- source organization, destination organization, channel organization | ||
| CONSTRAINT fkRuleConditionActorUnapproved_status FOREIGN KEY(status) REFERENCES [core].[status] (statusId) | ||
| ) |
This file contains hidden or 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,11 @@ | ||
| CREATE TABLE [rule].[conditionItemUnapproved] ( | ||
| conditionId INT NOT NULL, | ||
| factor CHAR(2) NOT NULL, | ||
| itemNameId BIGINT NOT NULL, | ||
| status VARCHAR(20) NULL DEFAULT('pending'), | ||
| CONSTRAINT pkRuleConditionItemUnapproved PRIMARY KEY CLUSTERED (conditionId, factor, itemNameId), | ||
| CONSTRAINT fkRuleConditionItemUnapproved_conditionId FOREIGN KEY (conditionId) REFERENCES [rule].[conditionUnapproved](conditionId), | ||
| CONSTRAINT fkRuleConditionItemUnapproved_itemNameId FOREIGN KEY(itemNameId) REFERENCES [core].[itemName] (itemNameId), | ||
| CONSTRAINT ccRuleConditionItemUnapproved_factor CHECK (factor IN ('ss', 'ds', 'cs', 'oc', 'sc', 'dc')), -- source spatial, destination spatial, channel spatial, operation category, source category, destination category | ||
| CONSTRAINT fkRuleConditionItemUnapproved_status FOREIGN KEY(status) REFERENCES [core].[status] (statusId) | ||
| ) |
This file contains hidden or 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,12 @@ | ||
| CREATE TABLE [rule].[conditionPropertyUnapproved] ( | ||
| conditionId INT NOT NULL, | ||
| factor CHAR(2) NOT NULL, | ||
| [name] NVARCHAR(50) NOT NULL, | ||
| [value] NVARCHAR(200) NOT NULL, | ||
| status VARCHAR(20) NULL DEFAULT('pending'), | ||
| CONSTRAINT pkRuleConditionPropertyUnapproved PRIMARY KEY CLUSTERED (conditionId, factor, [name]), | ||
| CONSTRAINT fkRuleConditionPropertyUnapproved_conditionId FOREIGN KEY (conditionId) REFERENCES [rule].[conditionUnapproved](conditionId), | ||
| CONSTRAINT ccRuleConditionPropertyUnapproved_factor CHECK (factor IN ('so', 'do', 'co', 'ss', 'ds', 'cs', 'oc', 'sc', 'dc')), | ||
| -- source organization, destination organization, channel organization, source spatial, destination spatial, channel spatial, operation category, source category, destination category | ||
| CONSTRAINT fkRuleConditionPropertyUnapproved_status FOREIGN KEY(status) REFERENCES [core].[status] (statusId) | ||
| ) |
This file contains hidden or 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,21 @@ | ||
| CREATE TABLE [rule].[limitUnapproved] ( | ||
| limitId INT IDENTITY(1000, 1) NOT NULL, | ||
| conditionId INT NOT NULL, | ||
| currency VARCHAR(3) NOT NULL, | ||
| minAmount MONEY, | ||
| maxAmount MONEY, | ||
| maxAmountDaily MONEY, | ||
| maxCountDaily BIGINT, | ||
| maxAmountWeekly MONEY, | ||
| maxCountWeekly BIGINT, | ||
| maxAmountMonthly MONEY, | ||
| maxCountMonthly BIGINT, | ||
| [credentials] INT, | ||
| [priority] SMALLINT, | ||
| status VARCHAR(20) NULL DEFAULT('pending'), | ||
| CONSTRAINT [pkRuleLimitUnapproved] PRIMARY KEY CLUSTERED (limitId ASC), | ||
| CONSTRAINT ukRuleLimitUnapprovedConditionCurrencyPriority UNIQUE (conditionId, currency, [priority]), | ||
| CONSTRAINT ukRuleLimitUnapprovedConditionCurrencyCredentials UNIQUE (conditionId, currency, [credentials]), | ||
| CONSTRAINT [fkRuleLimitUnapproved_condition] FOREIGN KEY (conditionId) REFERENCES [rule].[conditionUnapproved](conditionId), | ||
| CONSTRAINT fkRuleLimitUnapproved_status FOREIGN KEY(status) REFERENCES [core].[status] (statusId) | ||
| ) |
This file contains hidden or 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,11 @@ | ||
| CREATE TABLE [rule].[splitNameUnapproved] ( | ||
| splitNameId INT IDENTITY(1000, 1) NOT NULL, | ||
| conditionId INT NOT NULL, | ||
| name VARCHAR(50) NOT NULL, | ||
| tag VARCHAR(max), | ||
| status VARCHAR(20) NULL DEFAULT('pending'), | ||
| CONSTRAINT [pkRuleSplitNameUnapproved] PRIMARY KEY CLUSTERED (splitNameId ASC), | ||
| CONSTRAINT [fkRuleSplitNameUnapproved_ruleCondition] FOREIGN KEY (conditionId) REFERENCES [rule].[conditionUnapproved](conditionId), | ||
| CONSTRAINT [ukRuleSplitNameUnapprovedConditionIdName] UNIQUE (conditionId, name), | ||
| CONSTRAINT fkRuleSplitNameUnapproved_status FOREIGN KEY(status) REFERENCES [core].[status] (statusId) | ||
| ) |
This file contains hidden or 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,14 @@ | ||
| CREATE TABLE [rule].[splitAssignmentUnapproved] ( | ||
| splitAssignmentId INT IDENTITY(1000, 1) NOT NULL, | ||
| splitNameId INT NOT NULL, | ||
| debit VARCHAR(50) NOT NULL, | ||
| credit VARCHAR(50) NOT NULL, | ||
| minValue MONEY, | ||
| maxValue MONEY, | ||
| [percent] DECIMAL(9, 2), | ||
| description VARCHAR(50) NOT NULL, | ||
| status VARCHAR(20) NULL DEFAULT('pending'), | ||
| CONSTRAINT [pkRuleSplitAssignmentUnapproved] PRIMARY KEY CLUSTERED (splitAssignmentId ASC), | ||
| CONSTRAINT [fkRuleSplitAssignmentUnapproved_ruleSplitName] FOREIGN KEY (splitNameId) REFERENCES [rule].[splitNameUnapproved](splitNameId), | ||
| CONSTRAINT fkRuleSplitAssignmentUnapproved_status FOREIGN KEY(status) REFERENCES [core].[status] (statusId) | ||
| ) |
This file contains hidden or 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 @@ | ||
| CREATE TABLE [rule].[splitRangeUnapproved] ( | ||
| splitRangeId INT IDENTITY(1000, 1) NOT NULL, | ||
| splitNameId INT NOT NULL, | ||
| startAmount MONEY NOT NULL, | ||
| startAmountCurrency VARCHAR(3) NOT NULL, | ||
| startAmountDaily MONEY NOT NULL, | ||
| startCountDaily BIGINT NOT NULL, | ||
| startAmountWeekly MONEY NOT NULL, | ||
| startCountWeekly BIGINT NOT NULL, | ||
| startAmountMonthly MONEY NOT NULL, | ||
| startCountMonthly BIGINT NOT NULL, | ||
| isSourceAmount BIT NOT NULL, | ||
| minValue MONEY, | ||
| maxValue MONEY, | ||
| [percent] DECIMAL(9, 2), | ||
| percentBase MONEY, | ||
| status VARCHAR(20) NULL DEFAULT('pending'), | ||
| CONSTRAINT [pkRuleSplitRangeUnapproved] PRIMARY KEY CLUSTERED (splitRangeId ASC), | ||
| CONSTRAINT [ukRuleSplitRangeUnapproved_splitNameId__startAmount__startAmountCurrency] UNIQUE (splitNameId, startAmount, startAmountCurrency, startAmountDaily, startCountDaily, startAmountWeekly, startCountWeekly, startAmountMonthly, startCountMonthly), | ||
| CONSTRAINT [fkRuleSplitRangeUnapproved_ruleSplitName] FOREIGN KEY (splitNameId) REFERENCES [rule].[splitNameUnapproved](splitNameId), | ||
| CONSTRAINT fkRuleSplitRangeUnapproved_status FOREIGN KEY(status) REFERENCES [core].[status] (statusId) | ||
| ) |
This file contains hidden or 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,11 @@ | ||
| CREATE TABLE [rule].[splitAnalyticUnapproved] ( | ||
| splitAnalyticId INT IDENTITY(1000, 1) NOT NULL, | ||
| splitAssignmentId INT NOT NULL, | ||
| [name] VARCHAR(50), | ||
| [value] VARCHAR(100), | ||
| status VARCHAR(20) NULL DEFAULT('pending'), | ||
| CONSTRAINT [pkRuleSplitAnalyticUnapproved] PRIMARY KEY CLUSTERED (splitAnalyticId ASC), | ||
| CONSTRAINT [ukRuleSplitAnalyticUnapproved_splitAssignmentId_name] UNIQUE (splitAssignmentId, [name]), | ||
| CONSTRAINT [fkRuleSplitAnalyticUnapproved_ruleSplitName] FOREIGN KEY (splitAssignmentId) REFERENCES [rule].[splitAssignmentUnapproved](splitAssignmentId), | ||
| CONSTRAINT fkRuleSplitAnalyticUnapproved_status FOREIGN KEY(status) REFERENCES [core].[status] (statusId) | ||
| ) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.