Vendor Standard Organization
@@ -169,4 +185,4 @@ Value
-
\ No newline at end of file
+
diff --git a/src/app/components/modals/systems-modal/systems-modal.component.ts b/src/app/components/modals/systems-modal/systems-modal.component.ts
index a81e5ceb..e58c8760 100644
--- a/src/app/components/modals/systems-modal/systems-modal.component.ts
+++ b/src/app/components/modals/systems-modal/systems-modal.component.ts
@@ -256,6 +256,22 @@ export class SystemsModalComponent implements OnInit {
field: 'Category',
title: 'Software Category',
sortable: true,
+ }, {
+ field: 'AttestationRequired',
+ title: 'Attestation Required',
+ sortable: true,
+ }, {
+ field: 'AttestationLink',
+ title: 'Attestation Link',
+ sortable: true,
+ }, {
+ field: 'Fedramp',
+ title: 'Fedramp',
+ sortable: true,
+ }, {
+ field: 'OpenSource',
+ title: 'Open Source',
+ sortable: true,
}, {
field: 'ApprovalExpirationDate',
title: 'Approved Status Expiration Date',
@@ -575,4 +591,4 @@ sysWebsitesColumnDefs: any[] = [
$('#systemManager').modal('show');
}
-}
\ No newline at end of file
+}
diff --git a/src/app/views/technologies/it-standards/it-standards.component.ts b/src/app/views/technologies/it-standards/it-standards.component.ts
index ffc9ac68..c51896b4 100644
--- a/src/app/views/technologies/it-standards/it-standards.component.ts
+++ b/src/app/views/technologies/it-standards/it-standards.component.ts
@@ -154,6 +154,26 @@ export class ItStandardsComponent implements OnInit {
title: 'Comments',
sortable: true,
visible: false
+ }, {
+ field: 'AttestationRequired',
+ title: 'Attestation Required',
+ sortable: true,
+ visible: false
+ }, {
+ field: 'AttestationLink',
+ title: 'Attestation Link',
+ sortable: true,
+ visible: false
+ }, {
+ field: 'Fedramp',
+ title: 'Fedramp',
+ sortable: true,
+ visible: false
+ }, {
+ field: 'OpenSource',
+ title: 'Open Source',
+ sortable: true,
+ visible: false
}, {
field: 'ApprovalExpirationDate',
title: 'Approval Expiration Date',
From be218634e90d28b26fb6a980a321207a8f737245 Mon Sep 17 00:00:00 2001
From: King Wang <152906017+kinggsagov@users.noreply.github.com>
Date: Tue, 26 Dec 2023 10:59:56 -0600
Subject: [PATCH 06/10] Fix query
---
api/queries/GET/get_it-standards.sql | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/api/queries/GET/get_it-standards.sql b/api/queries/GET/get_it-standards.sql
index 4cf955f1..f49bb3f1 100644
--- a/api/queries/GET/get_it-standards.sql
+++ b/api/queries/GET/get_it-standards.sql
@@ -30,10 +30,10 @@ SELECT
GROUP_CONCAT(DISTINCT CONCAT_WS(', ', CONCAT(poc.FirstName, ' ', poc.LastName), poc.Email, org.Display_Name) SEPARATOR '; ') AS POC,
GROUP_CONCAT(DISTINCT obj_standard_category.Keyname SEPARATOR ', ') AS Category,
tech.Keyname AS OldName,
- DATE(tech.endOfLifeDate) AS EndOfLifeDate
- tech.Attestation_Required AS AttestationRequired
- tech.Attestation_Link AS AttestationLink
- tech.Fedramp AS Fedramp
+ DATE(tech.endOfLifeDate) AS EndOfLifeDate,
+ tech.Attestation_Required AS AttestationRequired,
+ tech.Attestation_Link AS AttestationLink,
+ tech.Fedramp AS Fedramp,
tech.Open_Source AS OpenSource
FROM obj_technology AS tech
From 85734dcd9963ed791a5da56810b0d75c60f704ad Mon Sep 17 00:00:00 2001
From: King Wang <152906017+kinggsagov@users.noreply.github.com>
Date: Wed, 3 Jan 2024 14:29:19 -0600
Subject: [PATCH 07/10] Add form elements for the fields
---
.../it-standard-manager.component.html | 35 ++++++++++++--
.../it-standard-manager.component.ts | 48 +++++++++++++------
2 files changed, 65 insertions(+), 18 deletions(-)
diff --git a/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.html b/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.html
index 061f7cd9..46a91bf9 100644
--- a/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.html
+++ b/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.html
@@ -30,7 +30,7 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -373,4 +402,4 @@
-
\ No newline at end of file
+
diff --git a/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.ts b/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.ts
index e01fdf88..42964ebb 100644
--- a/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.ts
+++ b/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.ts
@@ -33,6 +33,10 @@ export class ItStandardManagerComponent implements OnInit {
itStandCategory: new FormControl(null, [Validators.required]),
itStand508: new FormControl(),
itStandMyView: new FormControl(),
+ itStandReqAtte: new FormControl(),
+ itStandAtteLink: new FormControl(),
+ itStandFedramp: new FormControl(),
+ itStandOpenSource: new FormControl(),
itStandVendorOrg: new FormControl(),
itStandDeployment: new FormControl(null, [Validators.required]),
itStandGoldImg: new FormControl(),
@@ -90,7 +94,7 @@ export class ItStandardManagerComponent implements OnInit {
ngOnInit(): void {
//console.log("it-standard-manager.component.ts ngOnInit()"); //DEBUG
-
+
// Emit setFormDefaults for when edit button is pressed
if (this.sharedService.itStandardsFormSub == undefined) {
this.sharedService.itStandardsFormSub = this.sharedService.itStandardsFormEmitter.subscribe(() => { this.setFormDefaults(); });
@@ -173,7 +177,7 @@ export class ItStandardManagerComponent implements OnInit {
// Only set status default for creating new record
const twoYearsLater = new Date();
twoYearsLater.setFullYear(twoYearsLater.getFullYear() + 2);
-
+
if (this.createBool) {
this.itStandardsForm.reset(); // Clear any erroneous values if any
// Set Approval Expiration Date on Date Picker to +2 years from current date
@@ -231,7 +235,7 @@ export class ItStandardManagerComponent implements OnInit {
}
// Adjust MyView for rendering - could turn this into one line:
- var myView = this.itStandard.Available_through_Myview === 'T'
+ var myView = this.itStandard.Available_through_Myview === 'T'
// Adjust Gold Image for rendering
var goldImg = this.itStandard.Gold_Image === 'T'
@@ -259,6 +263,10 @@ export class ItStandardManagerComponent implements OnInit {
itStandCategory: categoryIDs,
itStand508: this.sharedService.findInArray(this.compliance, 'Name', this.itStandard.ComplianceStatus),
itStandMyView: myView,
+ itStandReqAtte: this.itStandard.AttestationRequired,
+ itStandAtteLink: this.itStandard.AttestationLink,
+ itStandFedramp: this.itStandard.Fedramp,
+ itStandOpenSource: this.itStandard.OpenSource,
itStandVendorOrg: this.itStandard.Vendor_Standard_Organization,
itStandDeployment: this.sharedService.findInArray(this.deploymentTypes, 'Name', this.itStandard.DeploymentType),
itStandGoldImg: goldImg,
@@ -271,9 +279,9 @@ export class ItStandardManagerComponent implements OnInit {
};
submitForm() {
-
+
//console.log("Submitting form"); //DEBUG
-
+
//console.log("Form: ", this.itStandardsForm); // Debug
if (this.itStandardsForm.valid) {
@@ -284,6 +292,15 @@ export class ItStandardManagerComponent implements OnInit {
if (this.itStandardsForm.value.itStandGoldImg) this.itStandardsForm.value.itStandGoldImg = 'T';
else this.itStandardsForm.value.itStandGoldImg = 'F';
+ if (this.itStandardsForm.value.itStandReqAtte) this.itStandardsForm.value.itStandReqAtte = 'T';
+ else this.itStandardsForm.value.itStandReqAtte = 'F';
+
+ if (this.itStandardsForm.value.itStandFedramp) this.itStandardsForm.value.itStandFedramp = 'T';
+ else this.itStandardsForm.value.itStandFedramp = 'F';
+
+ if (this.itStandardsForm.value.itStandOpenSource) this.itStandardsForm.value.itStandOpenSource = 'T';
+ else this.itStandardsForm.value.itStandOpenSource = 'F';
+
// Set Date from Date Picker
if ($('#itStandAprvExp').data('datepicker')) {
this.itStandardsForm.value.itStandAprvExp = $('#itStandAprvExp').data('datepicker').getFormattedDate('yyyy-mm-dd');
@@ -294,6 +311,7 @@ export class ItStandardManagerComponent implements OnInit {
if (!this.itStandardsForm.value.itStandGoldComment) this.itStandardsForm.value.itStandGoldComment = 'N/A';
if (!this.itStandardsForm.value.itStandComments) this.itStandardsForm.value.itStandComments = 'N/A';
if (!this.itStandardsForm.value.itStand508) this.itStandardsForm.value.itStand508 = '3';
+ if (!this.itStandardsForm.value.itStandAtteLink) this.itStandardsForm.value.itStandAtteLink = 'N/A';
// replace ' from all text fields
if (String(this.itStandardsForm.value.itStandDesc).includes("'")) {
@@ -427,11 +445,11 @@ export class ItStandardManagerComponent implements OnInit {
setTimeout(() => {
try {
//console.log("setting approval expiration date to: ", data.endOfLifeDate); //DEBUG
-
+
if (data.endOfLifeDate !== '' && data.endOfLifeDate !== null && data.endOfLifeDate !== undefined && data.endOfLifeDate !== 'null' && data.endOfLifeDate !== 'undefined') {
let date = new Date(data.endOfLifeDate);
-
+
// set the endOfLifeDate to the value from the database
this.endOfLifeDate = date;
@@ -463,7 +481,7 @@ export class ItStandardManagerComponent implements OnInit {
// handles the formatting of the endOfLifeDate
formatEndOfLifeDate(data: any) {
- //console.log("Formatting endOfLifeDate:", data); //DEBUG
+ //console.log("Formatting endOfLifeDate:", data); //DEBUG
// return the data as a string in the format Month dd, yyyy
if (data === null || data === undefined || data === 'null' || data === 'undefined' || data === '') {
return null;
@@ -509,10 +527,10 @@ export class ItStandardManagerComponent implements OnInit {
// if the endOfLifeDate is not null
if (data !== null) {
//console.log("hasEndOfLifeDatePassed data.endOfLifeDate: ", data.endOfLifeDate); //DEBUG
-
+
// get the endOfLifeDate as a Date object
let date = new Date(data);
-
+
// get today's date
let today = new Date();
@@ -531,7 +549,7 @@ export class ItStandardManagerComponent implements OnInit {
}
manufacturerChange(manufacturer: any) {
-
+
//console.log("Manufacturer changed to: ", manufacturer); //DEBUG
this.softwareProductsLoading = true;
@@ -579,7 +597,7 @@ export class ItStandardManagerComponent implements OnInit {
}
softwareProductChange(softwareProduct: any) {
-
+
//console.log("Software Product changed to: ", softwareProduct); //DEBUG
this.softwareVersionsLoading = true;
@@ -620,7 +638,7 @@ export class ItStandardManagerComponent implements OnInit {
}
softwareVersionChange(softwareVersion: any) {
-
+
//console.log("Software Version changed to: ", softwareVersion); //DEBUG
this.softwareReleasesLoading = true;
@@ -672,7 +690,7 @@ export class ItStandardManagerComponent implements OnInit {
}
disableSoftwareVersion(): void {
- //console.log("Disabling Version");
+ //console.log("Disabling Version");
$("#divVersion").addClass("disabledDivVersion");
}
@@ -697,4 +715,4 @@ export class ItStandardManagerComponent implements OnInit {
$("#divEndOfLifeDate").addClass("disabledDivEndOfLifeDate");
}
-}
\ No newline at end of file
+}
From def553ca3a84c37bcb0dfff3c36b6640a6bd8140 Mon Sep 17 00:00:00 2001
From: King Wang <152906017+kinggsagov@users.noreply.github.com>
Date: Wed, 3 Jan 2024 15:27:39 -0600
Subject: [PATCH 08/10] Add form elements for the fields more
---
api/controllers/it-standards.controller.js | 18 +++++++++++++++---
api/models/it-standards.model.ts | 8 ++++----
api/queries/GET/get_it-standards.sql | 10 +++++-----
.../it-standard-manager.component.html | 17 ++++++++++++++---
.../it-standard-manager.component.ts | 4 ++++
5 files changed, 42 insertions(+), 15 deletions(-)
diff --git a/api/controllers/it-standards.controller.js b/api/controllers/it-standards.controller.js
index 4f75d345..7d38ab34 100644
--- a/api/controllers/it-standards.controller.js
+++ b/api/controllers/it-standards.controller.js
@@ -34,7 +34,7 @@ exports.findSystems = (req, res) => {
var query = fs.readFileSync(path.join(__dirname, queryPath, 'GET/get_systems.sql')).toString() +
` LEFT JOIN zk_systems_subsystems_technology AS mappings ON systems.\`ex:GEAR_ID\` = mappings.obj_systems_subsystems_Id
LEFT JOIN obj_technology AS tech ON mappings.obj_technology_Id = tech.Id
-
+
WHERE tech.Id = ${req.params.id} GROUP BY systems.\`ex:GEAR_ID\`;`; //removed LEFT JOIN cowboy_ods.obj_technology reference
res = ctrl.sendQuery(query, 'systems using IT Standard', res);
@@ -104,7 +104,11 @@ exports.update = (req, res) => {
Vendor_Standard_Organization = '${data.itStandVendorOrg}',
obj_deployment_type_Id = ${data.itStandDeployment},
Gold_Image = '${data.itStandGoldImg}',
+ Attestation_Required = '${data.itStandReqAtte}',
+ Fedramp = '${data.itStandFedramp}',
+ Open_Source = '${data.itStandOpenSource}',
Gold_Image_Comment = '${data.itStandGoldComment}',
+ Attestation_Link = '${data.itStandAtteLink}',
Approved_Status_Expiration_Date = ${data.itStandAprvExp},
Comments = '${data.itStandComments}',
Reference_documents = ${data.itStandRefDocs},
@@ -129,7 +133,7 @@ exports.update = (req, res) => {
res = ctrl.sendQuery(query + ' ' + logStatement, 'update IT Standard', res); //removed sendQuery_cowboy reference
} else {
//console.log('*** API Security Testing - API Auth Validation: FAILED'); //DEBUGGING
-
+
//console.log('it-standard update no valid token!!!!');
res.status(502).json({
message: "No authorization token present. Not allowed to update IT-Standards"
@@ -171,7 +175,11 @@ exports.create = (req, res) => {
Vendor_Standard_Organization,
Available_through_Myview,
Gold_Image,
+ Attestation_Required,
+ Fedramp,
+ Open_Source,
Gold_Image_Comment,
+ Attestation_Link,
Comments,
obj_technology_status_Id,
obj_deployment_type_Id,
@@ -195,7 +203,11 @@ exports.create = (req, res) => {
'${data.itStandVendorOrg}',
'${data.itStandMyView}',
'${data.itStandGoldImg}',
+ '${data.itStandReqAtte}',
+ '${data.itStandFedramp}',
+ '${data.itStandOpenSource}',
'${data.itStandGoldComment}',
+ '${data.itStandAtteLink}',
'${data.itStandComments}',
${data.itStandStatus},
${data.itStandDeployment},
@@ -255,4 +267,4 @@ exports.findTypes = (req, res) => {
var query = fs.readFileSync(path.join(__dirname, queryPath, 'GET/get_it-standard_types.sql')).toString();
res = ctrl.sendQuery(query, 'IT Standard Types', res); //removed sendQuery_cowboy reference
-};
\ No newline at end of file
+};
diff --git a/api/models/it-standards.model.ts b/api/models/it-standards.model.ts
index 3f91986f..4efe1605 100644
--- a/api/models/it-standards.model.ts
+++ b/api/models/it-standards.model.ts
@@ -6,7 +6,11 @@ export class ITStandards {
public Vendor_Standard_Organization: string = null;
public Available_through_Myview: string = null;
public Gold_Image: string = null;
+ public AttestationRequired: string = null;
+ public Fedramp: string = null;
+ public OpenSource: string = null;
public Gold_Image_Comment: string = null;
+ public AttestationLink: string = null;
public Comments: string = null;
public old_Id: string = null;
public POCorg: string = null;
@@ -26,8 +30,4 @@ export class ITStandards {
public Category: string = null;
public OldName: string = null;
public EndOfLifeDate: Date = null;
- public AttestationRequired: string = null;
- public AttestationLink: string = null;
- public Fedramp: string = null;
- public OpenSource: string = null;
}
diff --git a/api/queries/GET/get_it-standards.sql b/api/queries/GET/get_it-standards.sql
index f49bb3f1..e61f995a 100644
--- a/api/queries/GET/get_it-standards.sql
+++ b/api/queries/GET/get_it-standards.sql
@@ -7,7 +7,11 @@ SELECT
tech.Vendor_Standard_Organization,
tech.Available_through_Myview,
tech.Gold_Image,
+ tech.Attestation_Required AS AttestationRequired,
+ tech.Fedramp AS Fedramp,
+ tech.Open_Source AS OpenSource,
tech.Gold_Image_Comment,
+ tech.Attestation_Link AS AttestationLink,
tech.Comments,
tech.old_Id,
tech.Reference_Documents AS ReferenceDocument,
@@ -30,11 +34,7 @@ SELECT
GROUP_CONCAT(DISTINCT CONCAT_WS(', ', CONCAT(poc.FirstName, ' ', poc.LastName), poc.Email, org.Display_Name) SEPARATOR '; ') AS POC,
GROUP_CONCAT(DISTINCT obj_standard_category.Keyname SEPARATOR ', ') AS Category,
tech.Keyname AS OldName,
- DATE(tech.endOfLifeDate) AS EndOfLifeDate,
- tech.Attestation_Required AS AttestationRequired,
- tech.Attestation_Link AS AttestationLink,
- tech.Fedramp AS Fedramp,
- tech.Open_Source AS OpenSource
+ DATE(tech.endOfLifeDate) AS EndOfLifeDate
FROM obj_technology AS tech
LEFT JOIN obj_technology_status ON tech.obj_technology_status_Id = obj_technology_status.Id
diff --git a/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.html b/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.html
index 46a91bf9..d511f749 100644
--- a/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.html
+++ b/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.html
@@ -320,16 +320,25 @@
-
+
+
+
-
diff --git a/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.ts b/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.ts
index 42964ebb..66502a91 100644
--- a/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.ts
+++ b/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.ts
@@ -240,6 +240,10 @@ export class ItStandardManagerComponent implements OnInit {
// Adjust Gold Image for rendering
var goldImg = this.itStandard.Gold_Image === 'T'
+ var goldImg = this.itStandard.Attestation_Required === 'T'
+ var goldImg = this.itStandard.Fedramp === 'T'
+ var goldImg = this.itStandard.Open_Source === 'T'
+
// Parse and find IDs for list of Categories
var categoryIDs = [];
if (this.itStandard.Category) {
From 6719c0caa797123bbb7dcda6418f8e6d60bbe0df Mon Sep 17 00:00:00 2001
From: King Wang <152906017+kinggsagov@users.noreply.github.com>
Date: Thu, 4 Jan 2024 13:53:07 -0600
Subject: [PATCH 09/10] Update field refs
---
api/controllers/it-standards.controller.js | 16 ++++++++--------
api/models/it-standards.model.ts | 8 ++++----
api/queries/GET/get_it-standards.sql | 8 ++++----
.../it-standard-manager.component.html | 8 ++++----
.../it-standard-manager.component.ts | 16 +++++++++-------
5 files changed, 29 insertions(+), 27 deletions(-)
diff --git a/api/controllers/it-standards.controller.js b/api/controllers/it-standards.controller.js
index 7d38ab34..d6668db3 100644
--- a/api/controllers/it-standards.controller.js
+++ b/api/controllers/it-standards.controller.js
@@ -104,11 +104,11 @@ exports.update = (req, res) => {
Vendor_Standard_Organization = '${data.itStandVendorOrg}',
obj_deployment_type_Id = ${data.itStandDeployment},
Gold_Image = '${data.itStandGoldImg}',
- Attestation_Required = '${data.itStandReqAtte}',
- Fedramp = '${data.itStandFedramp}',
- Open_Source = '${data.itStandOpenSource}',
+ attestation_required = '${data.itStandReqAtte}',
+ fedramp = '${data.itStandFedramp}',
+ open_source = '${data.itStandOpenSource}',
Gold_Image_Comment = '${data.itStandGoldComment}',
- Attestation_Link = '${data.itStandAtteLink}',
+ attestation_link = '${data.itStandAtteLink}',
Approved_Status_Expiration_Date = ${data.itStandAprvExp},
Comments = '${data.itStandComments}',
Reference_documents = ${data.itStandRefDocs},
@@ -175,11 +175,11 @@ exports.create = (req, res) => {
Vendor_Standard_Organization,
Available_through_Myview,
Gold_Image,
- Attestation_Required,
- Fedramp,
- Open_Source,
+ attestation_required,
+ fedramp,
+ open_source,
Gold_Image_Comment,
- Attestation_Link,
+ attestation_link,
Comments,
obj_technology_status_Id,
obj_deployment_type_Id,
diff --git a/api/models/it-standards.model.ts b/api/models/it-standards.model.ts
index 4efe1605..0ec17307 100644
--- a/api/models/it-standards.model.ts
+++ b/api/models/it-standards.model.ts
@@ -6,11 +6,11 @@ export class ITStandards {
public Vendor_Standard_Organization: string = null;
public Available_through_Myview: string = null;
public Gold_Image: string = null;
- public AttestationRequired: string = null;
- public Fedramp: string = null;
- public OpenSource: string = null;
+ public attestation_required: string = null;
+ public fedramp: string = null;
+ public open_source: string = null;
public Gold_Image_Comment: string = null;
- public AttestationLink: string = null;
+ public attestation_link: string = null;
public Comments: string = null;
public old_Id: string = null;
public POCorg: string = null;
diff --git a/api/queries/GET/get_it-standards.sql b/api/queries/GET/get_it-standards.sql
index e61f995a..41e7d24b 100644
--- a/api/queries/GET/get_it-standards.sql
+++ b/api/queries/GET/get_it-standards.sql
@@ -7,11 +7,11 @@ SELECT
tech.Vendor_Standard_Organization,
tech.Available_through_Myview,
tech.Gold_Image,
- tech.Attestation_Required AS AttestationRequired,
- tech.Fedramp AS Fedramp,
- tech.Open_Source AS OpenSource,
+ tech.attestation_required AS AttestationRequired,
+ tech.fedramp AS Fedramp,
+ tech.open_source AS OpenSource,
tech.Gold_Image_Comment,
- tech.Attestation_Link AS AttestationLink,
+ tech.attestation_link,
tech.Comments,
tech.old_Id,
tech.Reference_Documents AS ReferenceDocument,
diff --git a/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.html b/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.html
index d511f749..d3976ea0 100644
--- a/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.html
+++ b/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.html
@@ -315,7 +315,7 @@
+ formControlName="itStandReqAtte" [checked]="itStandard.attestation_required === 'T'">
@@ -324,7 +324,7 @@
+ [value]="itStandard.attestation_link">
@@ -333,7 +333,7 @@
+ formControlName="itStandFedramp" [checked]="itStandard.fedramp === 'T'">
@@ -342,7 +342,7 @@
+ formControlName="itStandOpenSource" [checked]="itStandard.open_source === 'T'">
diff --git a/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.ts b/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.ts
index 66502a91..1ef0c2d1 100644
--- a/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.ts
+++ b/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.ts
@@ -240,9 +240,11 @@ export class ItStandardManagerComponent implements OnInit {
// Adjust Gold Image for rendering
var goldImg = this.itStandard.Gold_Image === 'T'
- var goldImg = this.itStandard.Attestation_Required === 'T'
- var goldImg = this.itStandard.Fedramp === 'T'
- var goldImg = this.itStandard.Open_Source === 'T'
+ var attestationRequired = this.itStandard.attestation_required === 'T'
+ var fedramp = this.itStandard.fedramp === 'T'
+ var openSource = this.itStandard.open_source === 'T'
+
+console.log("attestationRequired", attestationRequired, fedramp, openSource, this.itStandard.attestation_link);
// Parse and find IDs for list of Categories
var categoryIDs = [];
@@ -267,10 +269,10 @@ export class ItStandardManagerComponent implements OnInit {
itStandCategory: categoryIDs,
itStand508: this.sharedService.findInArray(this.compliance, 'Name', this.itStandard.ComplianceStatus),
itStandMyView: myView,
- itStandReqAtte: this.itStandard.AttestationRequired,
- itStandAtteLink: this.itStandard.AttestationLink,
- itStandFedramp: this.itStandard.Fedramp,
- itStandOpenSource: this.itStandard.OpenSource,
+ itStandReqAtte: attestationRequired,
+ itStandAtteLink: this.itStandard.attestation_link,
+ itStandFedramp: fedramp,
+ itStandOpenSource: openSource,
itStandVendorOrg: this.itStandard.Vendor_Standard_Organization,
itStandDeployment: this.sharedService.findInArray(this.deploymentTypes, 'Name', this.itStandard.DeploymentType),
itStandGoldImg: goldImg,
From 13db36022687139907029763e80d9634b7146cf5 Mon Sep 17 00:00:00 2001
From: King Wang <152906017+kinggsagov@users.noreply.github.com>
Date: Thu, 4 Jan 2024 15:42:29 -0600
Subject: [PATCH 10/10] Fix field names
---
api/queries/GET/get_it-standards.sql | 6 +++---
.../it-standard-manager/it-standard-manager.component.ts | 2 --
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/api/queries/GET/get_it-standards.sql b/api/queries/GET/get_it-standards.sql
index 41e7d24b..573ae373 100644
--- a/api/queries/GET/get_it-standards.sql
+++ b/api/queries/GET/get_it-standards.sql
@@ -7,9 +7,9 @@ SELECT
tech.Vendor_Standard_Organization,
tech.Available_through_Myview,
tech.Gold_Image,
- tech.attestation_required AS AttestationRequired,
- tech.fedramp AS Fedramp,
- tech.open_source AS OpenSource,
+ tech.attestation_required,
+ tech.fedramp,
+ tech.open_source,
tech.Gold_Image_Comment,
tech.attestation_link,
tech.Comments,
diff --git a/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.ts b/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.ts
index 1ef0c2d1..6482eb30 100644
--- a/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.ts
+++ b/src/app/components/manager-modals/it-standard-manager/it-standard-manager.component.ts
@@ -244,8 +244,6 @@ export class ItStandardManagerComponent implements OnInit {
var fedramp = this.itStandard.fedramp === 'T'
var openSource = this.itStandard.open_source === 'T'
-console.log("attestationRequired", attestationRequired, fedramp, openSource, this.itStandard.attestation_link);
-
// Parse and find IDs for list of Categories
var categoryIDs = [];
if (this.itStandard.Category) {
|