Skip to content

Commit defbf95

Browse files
committed
Revert "Add data cat for fields in Object tab #276"
This reverts commit 0c5bf05.
1 parent 0c5bf05 commit defbf95

File tree

5 files changed

+5
-17
lines changed

5 files changed

+5
-17
lines changed

build/bin/OrgCheck_SR.zip

-86 Bytes
Binary file not shown.

build/src/javascript/orgcheck/OrgCheck.Salesforce.js

+4-12
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ OrgCheck.Salesforce = {
133133
}));
134134
promises.push(new Promise((resolve, reject) => {
135135
const query = 'SELECT DurableId, Description, NamespacePrefix, ExternalSharingModel, InternalSharingModel, '+
136-
'(SELECT Id, DurableId, QualifiedApiName, Description, BusinessOwner.Name, BusinessStatus, ComplianceGroup, SecurityClassification FROM Fields), '+
136+
'(SELECT Id, DurableId, QualifiedApiName, Description FROM Fields), '+
137137
'(SELECT Id, Name FROM ApexTriggers), '+
138138
'(SELECT Id, MasterLabel, Description FROM FieldSets), '+
139139
'(SELECT Id, Name, LayoutType FROM Layouts), '+
@@ -266,22 +266,14 @@ OrgCheck.Salesforce = {
266266
const fieldIds = [];
267267
entityDef.Fields.records.forEach((r) => {
268268
const id = r.DurableId.split('.')[1];
269-
fieldsMapper[r.QualifiedApiName] = {
270-
'id': id,
271-
'description': r.Description,
272-
'dataOwner': r.BusinessOwner?.Name, // Data Owner Name
273-
'fieldUsage': r.BusinessStatus, // Field Usage
274-
'complianceCategory': r.ComplianceGroup, // Compliance Categorization
275-
'dataSensitivityLevel': r.SecurityClassification // Data Sensitivity Level
276-
};
269+
fieldsMapper[r.QualifiedApiName] = { 'id': id, 'description': r.Description };
277270
fieldIds.push(id);
278271
});
279272
object.fields.forEach((f) => {
280273
const mapper = fieldsMapper[f.name];
281274
if (mapper) {
282-
for (const property in mapper) {
283-
f[property] = mapper[property];
284-
}
275+
f.id = mapper.id;
276+
f.description = mapper.description;
285277
}
286278
});
287279
dapi(fieldIds, (deps) => {

build/tmp/js/orgcheck.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

force-app/main/default/pages/OrgCheck_Objects_VFP.page

-4
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,6 @@
379379
{ name: '{!JSENCODE($Label.OrgCheck_ExternalId_CL)}', property: 'externalId', type: 'checkbox' },
380380
{ name: '{!JSENCODE($Label.OrgCheck_Default_CL)}', property: 'defaultValue' },
381381
{ name: '{!JSENCODE($Label.OrgCheck_Formula_CL)}', property: 'calculatedFormula' },
382-
{ name: 'Data Owner Name', property: 'dataOwner' },
383-
{ name: 'Field Usage', property: 'fieldUsage' },
384-
{ name: 'Compliance Categorization', property: 'complianceCategory' },
385-
{ name: 'Data Sensitivity Level', property: 'dataSensitivityLevel' },
386382
{ name: '{!JSENCODE($Label.OrgCheck_Description_CL)}',
387383
formula: (r) => {
388384
if (r.description) return helper.html.render.escape(helper.html.render.shrinkText(r.description, 50));
Binary file not shown.

0 commit comments

Comments
 (0)