Skip to content
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

P3sprint8 Release to sandbox on 23-05-2023 #1412

Merged
merged 41 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
f81485d
Merge pull request #1218 from Crown-Commercial-Service/p3sprint7
ponselvamsakthivel-bc Apr 3, 2023
5e652b5
issue has been fixed (#1219)
ajithmuthukumar-bc Apr 3, 2023
198afde
PPG 212 non associated email domain check UI (#1222)
ajithmuthukumar-bc Apr 5, 2023
d9a59d8
github secret scan script added
ponselvamsakthivel-bc Apr 7, 2023
b7c32e5
Merge pull request #1225 from Crown-Commercial-Service/github-secrets…
ponselvamsakthivel-bc Apr 7, 2023
bcd81fd
fleet bugs are fixed (#1226)
ajithmuthukumar-bc Apr 7, 2023
083f670
Update secrets-scan.yml
rahulgandhijayabalan-bc Apr 7, 2023
1fef38a
Merge pull request #1228 from Crown-Commercial-Service/github-secrets…
ponselvamsakthivel-bc Apr 7, 2023
4b80930
issue fixed (#1229)
ajithmuthukumar-bc Apr 10, 2023
6e59b5e
Typo fixed (#1231)
brijrajsinh-bc Apr 11, 2023
2bd93ca
condtion changed (#1232)
ajithmuthukumar-bc Apr 11, 2023
1a2426c
Merge pull request #1237 from Crown-Commercial-Service/p3sprint7
ponselvamsakthivel-bc Apr 12, 2023
1e0a664
table colum issue fixed (#1238)
ajithmuthukumar-bc Apr 12, 2023
0da6f3f
code climate fixed (#1243)
ajithmuthukumar-bc Apr 17, 2023
4c3e91c
Merge pull request #1241 from Crown-Commercial-Service/p3sprint8
ponselvamsakthivel-bc Apr 17, 2023
c55bc7a
fixed in sprint8 and 9 (#1247)
ajithmuthukumar-bc Apr 17, 2023
542d84f
Merge pull request #1249 from Crown-Commercial-Service/p3sprint7
ponselvamsakthivel-bc Apr 17, 2023
fde30b2
Bug 5474: PPG 170 - User not Created - Text change from 'You do not h…
brijeshpatel-bc Apr 21, 2023
9fdf9b2
Merge pull request #1257 from Crown-Commercial-Service/p3sprint7
ponselvamsakthivel-bc Apr 24, 2023
2ed3b91
codeclimate encryptions added
ponselvamsakthivel-bc Apr 24, 2023
543d8f1
Merge pull request #1258 from Crown-Commercial-Service/codeclimate_ym…
ponselvamsakthivel-bc Apr 24, 2023
7a50805
Merge pull request #1259 from Crown-Commercial-Service/p3sprint8
ponselvamsakthivel-bc Apr 24, 2023
d6e7d84
Merge branch 'testing' into main
ponselvamsakthivel-bc Apr 24, 2023
13cee2b
Merge pull request #1260 from Crown-Commercial-Service/main
ponselvamsakthivel-bc Apr 24, 2023
d9e172a
Merge pull request #1282 from Crown-Commercial-Service/p3sprint7
ponselvamsakthivel-bc Apr 26, 2023
65e5481
PPON UI changes for p3sprint8 (#1271)
brijeshpatel-bc Apr 27, 2023
8bf72aa
Merge pull request #1288 from Crown-Commercial-Service/p3sprint8
ponselvamsakthivel-bc Apr 27, 2023
973e329
Update environment-testing.ts
ponselvamsakthivel-bc Apr 27, 2023
4d4524d
Merge branch 'testing' into p3sprint8
ponselvamsakthivel-bc Apr 27, 2023
3989e33
Merge pull request #1292 from Crown-Commercial-Service/p3sprint7
ponselvamsakthivel-bc Apr 27, 2023
997517c
Bug 5554: PPG- 293 - Updating Fleet role for user profile affects Gro…
brijeshpatel-bc May 2, 2023
39bf6e5
Merge branch 'production' into p3sprint8
ajithmuthukumar-bc May 10, 2023
4fcf342
Merge pull request #1338 from Crown-Commercial-Service/p3sprint8
boobalanmurugan-bc May 11, 2023
6e710d9
prod issue fixed
ajithmuthukumar-bc May 12, 2023
e2ef380
Merge pull request #1352 from Crown-Commercial-Service/p3sprint8
ponselvamsakthivel-bc May 12, 2023
c9894a1
prod issue fixed
ajithmuthukumar-bc May 12, 2023
fe037bf
changes updated
ajithmuthukumar-bc May 12, 2023
2212dcb
P3sprint8 (#1355)
ajithmuthukumar-bc May 12, 2023
751aab9
changes done
ajithmuthukumar-bc May 12, 2023
2126adc
Merge branch 'production' into p3sprint8
ajithmuthukumar-bc May 12, 2023
91f95da
changes are reverted
ajithmuthukumar-bc May 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: "2"
checks:
argument-count:
enabled: true
complex-logic:
enabled: true
file-lines:
enabled: false
method-complexity:
enabled: true
config:
threshold: 20
method-count:
enabled: false
method-lines:
enabled: false
nested-control-flow:
enabled: true
return-statements:
enabled: true
similar-code:
enabled: false
identical-code:
enabled: true
64 changes: 64 additions & 0 deletions .github/workflows/secrets-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Git Secrets Scan

on:
schedule:
- cron: "0 0 * * *"
push:
branches: [main, feature/*, p3sprint/*]

jobs:
git-secrets-scan:
name: Git Secrets Scan
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install git secrets
run: sudo apt-get update && sudo apt-get install git-secrets -y

- name: Add custom secrets patterns
run: git secrets --add '(\bBEGIN\b).*(PRIVATE KEY\b)'
&& git secrets --add 'AKIA[0-9A-Z]{16}'
&& git secrets --add '^([A-Za-z0-9/+=]{40,})$'
&& git secrets --add '^ghp_[a-zA-Z0-9]{36}'
&& git secrets --add '^github_pat_[a-zA-Z0-9]{22}_[a-zA-Z0-9]{59}'
&& git secrets --add '^v[0-9]\\.[0-9a-f]{40}'
&& git secrets --add '[A-Za-z0-9+/]{88}=='
&& git secrets --add '[A-Za-z0-9_-]{32}$'
&& git secrets --add 'conclavesso[0-9a-z-]{84}'
&& git secrets --add '\\b[a-z0-9]{80}\\b'
&& git secrets --add '\\b[A-Z0-9]{50}\\b'
&& git secrets --add '\\b[A-Z0-9]{58}\\b'
&& git secrets --add '^[a-zA-Z0-9_-]{32,64}$'

- name: Run git secrets scan
run: |
git secrets --scan

- name: Send email notification
uses:
dawidd6/action-send-mail@v3.1.0
if: always()

with:
server_address: ${{ secrets.SERVER_ADDRESS }}
server_port: ${{ secrets.SERVER_PORT }}
username: ${{ secrets.USER_NAME }}
password: ${{ secrets.PASSWORD }}
subject: Git Secrets Scan Results
to: "ponselvam.sakthivel@brickendon.com"
from: "secops@brickendon.com"
body: |

Hi,

The Git Secrets scan has completed for "${{ github.repository }}". Please review the results below:

Scan Job URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

Scan Status: **${{ job.status }}**

Thank You.
Brickendon SecOps
4 changes: 2 additions & 2 deletions src/app/components/govuk-table/govuk-table.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@
</div>
</fieldset>
</td>
<td class="tablular govuk-table__cell" *ngIf="!isHyperLinkVisible">
<a class="tablular" tabindex="0">.</a>
<td class="tablular" *ngIf="!isHyperLinkVisible">
<a class="tablular govuk-table__cell" tabindex="0">.</a>
</td>
</tr>
</tbody>
Expand Down
1 change: 0 additions & 1 deletion src/app/components/govuk-table/govuk-table.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ a {
.role_group_table {
padding: 0px 0px 0px 0 !important;
}

.hide_dots{
display: none;
}
106 changes: 59 additions & 47 deletions src/app/models/organisationGroup.ts
Original file line number Diff line number Diff line change
@@ -1,86 +1,98 @@
export interface Group {
groupId: number;
mfaEnabled: boolean;
groupName: string;
createdDate?: string;
groupId: number;
mfaEnabled: boolean;
groupName: string;
createdDate?: string;
}

export interface GroupList {
organisationId: string;
groupList: Group[]
organisationId: string;
groupList: Group[];
}

export interface OrganisationGroupNameInfo {
groupName?: string;
groupName?: string;
}

export interface OrganisationGroupRequestInfo extends OrganisationGroupNameInfo {
roleInfo?: OrganisationGroupRolePatchInfo,
serviceRoleGroupInfo?: OrganisationGroupRolePatchInfo,
userInfo?: OrganisationGroupUserPatchInfo
export interface OrganisationGroupRequestInfo
extends OrganisationGroupNameInfo {
roleInfo?: OrganisationGroupRolePatchInfo;
serviceRoleGroupInfo?: OrganisationGroupRolePatchInfo;
userInfo?: OrganisationGroupUserPatchInfo;
}


export interface OrganisationGroupRolePatchInfo {
addedRoleIds?: number[],
removedRoleIds?: number[]
addedServiceRoleGroupIds?: number[],
removedServiceRoleGroupIds?: number[]
addedRoleIds?: number[];
removedRoleIds?: number[];
addedServiceRoleGroupIds?: number[];
removedServiceRoleGroupIds?: number[];
}

export interface OrganisationGroupServicePatchInfo {
addedRoleIds: number[],
removedRoleIds: number[]
addedRoleIds: number[];
removedRoleIds: number[];
}

export interface OrganisationGroupUserPatchInfo {
addedUserIds: string[],
removedUserIds: string[]
addedUserIds: string[];
removedUserIds: string[];
}

export interface RoleDetail {
orgTypeEligibility?: number;
description?: string | undefined;
subscriptionTypeEligibility?: number;
tradeEligibility?: number;
enabled?: boolean;
serviceName?: string | null;
isDeleted?: boolean;
orgTypeEligibility?: number;
description?: string | undefined;
subscriptionTypeEligibility?: number;
tradeEligibility?: number;
enabled?: boolean;
serviceName?: string | null;
isDeleted?: boolean;
}

export interface Role extends RoleDetail {
pendingStatus?: boolean;
roleId: number;
roleKey: string;
roleName: string;
pendingStatus?: boolean;
roleId: number;
roleKey: string;
roleName: string;
}

export interface ServiceRoleGroup extends RoleDetail {
id: number;
key: string;
name: string;
id: number;
key: string;
name: string;
}


export interface CheckBoxRoleListGridSource extends Role {
isChecked?: boolean
isDisable?: any

isChecked?: boolean;
isDisable?: any;
}

export interface OrganisationGroupResponseInfo extends Group {
roles: GroupRole[],
users: GroupUser[]
serviceRoleGroups: GroupRole[],
roles: GroupRole[];
users: GroupUser[];
serviceRoleGroups: GroupRole[];
}

export interface GroupRole {
id: number;
name: string;
id: number;
name: string;
}

export interface GroupUser {
userId: string;
name: string;
isAdmin: boolean;
}
userId: string;
name: string;
isAdmin: boolean;
}

export interface pendingApprovalResponce {
currentPage: number;
groupUser: pendingApprovalGroupRole[];
pageCount: number;
rowCount: number;
}

export interface pendingApprovalGroupRole {
isAdmin: boolean;
userPendingRoleStatus: number;
name: string;
userId: string;
}
4 changes: 2 additions & 2 deletions src/app/pages/buyer/details/details.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h2 class="govuk-heading-s">Registries</h2>
</tr>
<tr class="govuk-table__row" *ngFor="let row of additionalIdentifiers">
<th scope="row" class="govuk-table__header">{{ getSchemaName(row.scheme) }}</th>
<td class="govuk-table__cell">{{ row.id }}</td>
<td class="govuk-table__cell">{{ getId(row.id, row.scheme) }}</td>
<td class="govuk-table__cell"></td>
</tr>
</tbody>
Expand All @@ -54,4 +54,4 @@ <h2 class="govuk-heading-s">Registries</h2>
<button type="button" class="govuk-button govuk-button--secondary" data-module="govuk-button"
(click)="onCancelClick()">Cancel</button>
</div>
</div>
</div>
26 changes: 21 additions & 5 deletions src/app/pages/buyer/details/details.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,34 @@ export class BuyerDetailsComponent extends BaseComponent implements OnInit {
}

public getSchemaName(schema: string): string {
let selecedScheme = this.schemeData.find(s => s.scheme === schema);
if(selecedScheme?.schemeName) {
return selecedScheme?.schemeName;
}
else if (schema === 'GB-CCS') {
let selecedScheme = this.schemeData.find(s => s.scheme === schema);
if (schema === 'GB-CCS') {
return 'Internal Identifier';
}
else if(selecedScheme?.schemeName) {
return selecedScheme?.schemeName;
}
else {
return '';
}
}

public getId(id:string, schema: string): string {
if (schema === 'GB-PPG') {
return this.convertIdToHyphenId(id);
}
else {
return id;
}
}

public convertIdToHyphenId(id:string): string {
if (id != null) {
return [id.slice(0, 3), '-', id.slice(3,6), '-', id.slice(6,9)].join('')
}
return id;
}

public onContinueClick() {
if(environment.appSetting.hideAutoValidation){
this.router.navigateByUrl(`buyer/confirm/${this.selectedOrgId}`);
Expand Down
29 changes: 29 additions & 0 deletions src/app/pages/home/home.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,33 @@ strong {
}
.govuk-heading-xl {
margin-bottom: 30px;
}

.govuk-notification-banner__title {
font-size: 19px;
font-size: 1.1875rem;
line-height: 1.3157894737;
}
.govuk-notification-banner__title {
font-family: "GDS Transport", arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 700;
font-size: 16px;
font-size: 1rem;
line-height: 1.25;
margin: 0;
padding: 0;
color: #ffffff;
}
.govuk-notification-banner__content {
color: #0b0c0c;
padding: 15px;
background-color: #ffffff;
}
.govuk-notification-banner__heading {
max-width: 100%;
}
.govuk-notification-banner{
margin-bottom: 15px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h2 class="govuk-heading-m">Organisation registries</h2>
</tr>
<tr class="govuk-table__row" *ngFor="let row of additionalIdentifiers">
<th scope="row" class="govuk-table__header">{{ getSchemaName(row.scheme) }}</th>
<td class="govuk-table__cell">{{ row.id }}</td>
<td class="govuk-table__cell">{{ getId(row.id, row.scheme) }}</td>
<td class="govuk-table__cell"></td>
</tr>
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,16 +236,34 @@ export class ViewPendingVerificationComponent implements OnInit {
}

public getSchemaName(schema: string): string {
let selecedScheme = this.schemeData.find((s) => s.scheme === schema);
if (selecedScheme?.schemeName) {
return selecedScheme?.schemeName;
} else if (schema === 'GB-CCS') {
let selecedScheme = this.schemeData.find(s => s.scheme === schema);
if (schema === 'GB-CCS') {
return 'Internal Identifier';
} else {
}
else if(selecedScheme?.schemeName) {
return selecedScheme?.schemeName;
}
else {
return '';
}
}

public getId(id:string, schema: string): string {
if (schema === 'GB-PPG') {
return this.convertIdToHyphenId(id);
}
else {
return id;
}
}

public convertIdToHyphenId(id:string): string {
if (id != null) {
return [id.slice(0, 3), '-', id.slice(3,6), '-', id.slice(6,9)].join('')
}
return id;
}

getPendingVerificationOrg() {
this.wrapperBuyerAndBothService.getpendingVerificationOrg(
this.organisationId,
Expand Down
Loading