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

1361 Chore: refactor emissions intensity schema #1716

Closed
wants to merge 111 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
3c1b8f4
chore: change text on discard button
BCerki Jun 19, 2023
4d23aee
Merge pull request #1733 from bcgov/1582-2-preview-revision
Sepehr-Sobhani Jun 19, 2023
fcf7655
chore: fixing css for new & old revision info
gurjmatharu Apr 25, 2023
52fd67e
refactor: refactoring if statment to switch
gurjmatharu Apr 27, 2023
94c86da
test: updating tests
gurjmatharu May 16, 2023
6a29b68
chore: removing todo
gurjmatharu May 17, 2023
eb20bfa
style: making arrow smaller
gurjmatharu May 17, 2023
b986bf0
chore: renaming vars and removing unenecesarry diff
gurjmatharu May 17, 2023
c522113
chore: refactoring var names
gurjmatharu May 17, 2023
e4a0b53
refactor: renaming renderData to formatData
gurjmatharu May 17, 2023
3dddec3
refactor: making names more consistent
gurjmatharu May 18, 2023
beb8c44
refactor: reusing functions
gurjmatharu May 18, 2023
2cc1307
chore: removing unused cases
gurjmatharu May 18, 2023
f70d3cb
chore: adding not entered when there is no old data
gurjmatharu May 18, 2023
e566cb3
test: updating snapshots
gurjmatharu May 18, 2023
fe5a911
test: fixing quarterly report e2e
gurjmatharu May 18, 2023
266d2fc
chore: adding arrow
gurjmatharu May 18, 2023
f5cbf43
test: updating css
gurjmatharu May 18, 2023
b3e8563
refactor: textValue to textData
gurjmatharu May 24, 2023
8f14c23
style: cleanup and removing unused styling
gurjmatharu May 24, 2023
a796799
test: updating tests
gurjmatharu May 24, 2023
ff2c37d
chore: added 0 case
gurjmatharu May 24, 2023
7bd7173
chore: wip
gurjmatharu May 25, 2023
48bc7cc
test: fixing decimal issues
gurjmatharu May 25, 2023
e0d9929
fix: project forms
gurjmatharu May 29, 2023
566504b
fix: ordering of data when we have old, new and latest
gurjmatharu May 29, 2023
63759d8
chore: fixing primary contact
gurjmatharu May 30, 2023
52fc10e
chore: removing extra param
gurjmatharu May 30, 2023
5d03060
test: updating e2e
gurjmatharu May 30, 2023
309f1ef
chore: unicorn
BCerki Jun 2, 2023
004fe88
test: updating tests
gurjmatharu Jun 8, 2023
58357e2
chore: fixing order of rendering
gurjmatharu Jun 8, 2023
3708dd9
refactor: initial work
gurjmatharu Jun 10, 2023
55d6d88
test: updating tests with selector
gurjmatharu Jun 10, 2023
cf5149e
chore: fixing decimal rendering
gurjmatharu Jun 10, 2023
600f4e4
test: updating decimal places
gurjmatharu Jun 10, 2023
947b249
test: completed tests for 0's
gurjmatharu Jun 11, 2023
96de47a
chore: added a check before rendering arrow
gurjmatharu Jun 11, 2023
bfce60c
test: updating tests
gurjmatharu Jun 19, 2023
287dcbd
test: updating custom diff test
gurjmatharu Jun 19, 2023
6490203
chore: added suffix
gurjmatharu Jun 19, 2023
5473a67
test: checking for diff on quarterly report
gurjmatharu Jun 19, 2023
87b30bc
test: updating amendment selector
gurjmatharu Jun 19, 2023
5a6598c
chore: fixing rendering of arrows
gurjmatharu Jun 19, 2023
6c6eebe
chore: fix arrow logic
dleard Jun 19, 2023
970c0ec
test: fixing tests
gurjmatharu Jun 19, 2023
322d020
Merge pull request #1721 from bcgov/1569-2-refactor
dleard Jun 20, 2023
af4f704
chore: fix semver package vulnerability
Sepehr-Sobhani Jun 23, 2023
ef1fbfe
Merge pull request #1748 from bcgov/fix-semver-package-vulnerability
Sepehr-Sobhani Jun 23, 2023
f2c8a09
feat: remove read-only revision type radio buttons
Sepehr-Sobhani Jun 8, 2023
588d1fd
test: update tests
Sepehr-Sobhani Jun 8, 2023
bbb1035
chore: remove redundant fragment
Sepehr-Sobhani Jun 22, 2023
fd2cf06
Merge pull request #1717 from bcgov/1663-remove-read-only-revision-type
Sepehr-Sobhani Jun 23, 2023
87d0417
feat: calculated milestone values diffing
gurjmatharu May 31, 2023
615b6b6
test: showing calculated values in diffs
gurjmatharu Jun 1, 2023
339027d
test: added e2e
gurjmatharu Jun 1, 2023
5143365
chore: adding calculated values and adjusted values to diffs
gurjmatharu Jun 22, 2023
756f2ef
test: adding assert for total eligible
gurjmatharu Jun 22, 2023
909fb27
test: added more coverage to unit tests
gurjmatharu Jun 22, 2023
de8060c
chore: cleaning up tests
gurjmatharu Jun 22, 2023
8a14d61
refactor: conditionally add form properties based on newFormData avai…
gurjmatharu Jun 26, 2023
f9a7579
chore: removing console
gurjmatharu Jun 26, 2023
7397608
Merge pull request #1706 from bcgov/1616-milestone-calculated-diffs
gurjmatharu Jun 26, 2023
3487fe1
chore: exploring login redirect options
JoshLarouche Jun 12, 2023
d091205
feat: added login buttons to login redirect page
JoshLarouche Jun 14, 2023
48c36a3
chore: fixing flexDirection
JoshLarouche Jun 15, 2023
cb39fed
feat: added draft unit testing
JoshLarouche Jun 21, 2023
fc825c4
chore: fixing tests
JoshLarouche Jun 21, 2023
ca033a7
chore: fixing broken related test
JoshLarouche Jun 22, 2023
69ba386
chore: refactoring some logicbased on review
JoshLarouche Jun 26, 2023
09d0d2d
chore: adding 500 pages to logic as its not working like the other pages
JoshLarouche Jun 26, 2023
b2629ab
chore: changing navigation header logic to use hideLoginButton prop
JoshLarouche Jun 26, 2023
14c4af1
Merge pull request #1725 from bcgov/1644-login-redirect-functionality
JoshLarouche Jun 28, 2023
44973a6
Merge branch 'develop' of github.com:bcgov/cas-cif into develop
BCerki Jul 4, 2023
309cb0a
chore: update prod schema
BCerki Jun 9, 2023
b5e9208
chore: create custom commit handler for TEIMP form
BCerki Jun 8, 2023
7087091
chore: create migration to update EI report form changes
BCerki Jun 9, 2023
329cc02
chore: migration to call EI form changes function
BCerki Jun 9, 2023
2d1d2f0
chore: migration to update db EI schema
BCerki Jun 9, 2023
e297784
chore: remove front-end schema and update ui schema
BCerki Jun 9, 2023
27f6339
chore: make form validation use db schema
BCerki Jun 9, 2023
8576f52
chore: update tasklist with new table and schema name
BCerki Jun 9, 2023
9ebc50f
chore: createEmissionIntensityReportMutation
BCerki Jun 9, 2023
1bca04a
chore: create GroupedObjectFieldTemplateWrapper
BCerki Jun 13, 2023
c7d7afc
feat: add db schema to the EI form
BCerki Jun 9, 2023
cf34207
chore: delete getFilteredEmissionIntensitySchema
BCerki Jun 12, 2023
e252a1f
chore: spec work on adjustable calculated value widget
BCerki Jun 12, 2023
01299d8
Revert "chore: spec work on adjustable calculated value widget"
BCerki Jun 12, 2023
30c5edf
test: update jest test post-refactor
BCerki Jun 13, 2023
29708cb
chore: update query in quarterly report form
BCerki Jun 13, 2023
5661e2e
chore: fix schema filtering helpers
BCerki Jun 14, 2023
c895f8f
test: jest test for getSchemaAndDataIncludingCalculatedValues
BCerki Jun 14, 2023
1cbdd2e
test: pgtap test handle_emission_intensity_form_change_commit
BCerki Jun 14, 2023
9f9ce2b
test: pgtap migration
BCerki Jun 14, 2023
e481a87
chore: migration to reformat old form changes
BCerki Jun 16, 2023
b1f7cc0
chore: tweak read only adjustable calc value widget
BCerki Jun 16, 2023
049a749
test: update schema names in pgtap tests
BCerki Jun 16, 2023
6d4cbd0
chore: update schemas in create_project_revision
BCerki Jun 19, 2023
54b77d7
chore: deprecate add_emission_intensity_report_to_revision
BCerki Jun 19, 2023
ae3d1aa
chore: update form_change_as_emission_intensity_report
BCerki Jun 19, 2023
e773be2
Revert "chore: update form_change_as_emission_intensity_report"
BCerki Jun 19, 2023
2ac3993
test: update cypress tests
BCerki Jun 20, 2023
c5c828b
chore: fix duplicate id on summary page
BCerki Jun 20, 2023
ccf4b27
test: pgtap migration
BCerki Jun 20, 2023
0c71f14
chore: migration to reformat old form changes
BCerki Jun 20, 2023
5852c7e
chore: update schemas
BCerki Jun 20, 2023
1423f2f
chore: apply suggestions from code review
BCerki Jun 27, 2023
a431065
chore: apply suggestions from code review
BCerki Jun 27, 2023
150484d
chore: apply suggestions from code review
BCerki Jun 27, 2023
98385e5
test: update old pgtap tests with new schema name
BCerki Jul 4, 2023
93018d1
test: change timestamps in migration test
BCerki Jul 4, 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
2 changes: 1 addition & 1 deletion app/components/Form/ProjectAnnualReportFormSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { utils } from "@rjsf/core";
import { reportingRequirementUiSchema } from "data/jsonSchemaForm/projectReportingRequirementUiSchema";
import { JSONSchema7 } from "json-schema";
import CUSTOM_DIFF_FIELDS from "lib/theme/CustomDiffFields";
import { getFilteredSchema } from "lib/theme/getFilteredSchema";
import { getFilteredSchema } from "lib/theme/schemaFilteringHelpers";
import readOnlyTheme from "lib/theme/ReadOnlyTheme";
import { useEffect, useMemo } from "react";
import { graphql, useFragment } from "react-relay";
Expand Down
250 changes: 99 additions & 151 deletions app/components/Form/ProjectEmissionIntensityReportForm.tsx

Large diffs are not rendered by default.

240 changes: 84 additions & 156 deletions app/components/Form/ProjectEmissionIntensityReportFormSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ import { graphql, useFragment } from "react-relay";
import FormBase from "./FormBase";
import CUSTOM_DIFF_FIELDS from "lib/theme/CustomDiffFields";
import { utils } from "@rjsf/core";
import { getFilteredSchema } from "lib/theme/getFilteredSchema";
import {
emissionIntensityReportSchema,
emissionIntensityReportingRequirementSchema,
emissionIntensityReportingRequirementUiSchema,
} from "data/jsonSchemaForm/projectEmissionIntensitySchema";
import { getSchemaAndDataIncludingCalculatedValues } from "lib/theme/schemaFilteringHelpers";
import { ProjectEmissionIntensityReportFormSummary_projectRevision$key } from "__generated__/ProjectEmissionIntensityReportFormSummary_projectRevision.graphql";
import { createEmissionIntensityReportUiSchema } from "./ProjectEmissionIntensityReportForm";
import { SummaryFormProps } from "data/formPages/types";
Expand All @@ -18,7 +13,6 @@ import {
FormNotAddedOrUpdated,
FormRemoved,
} from "./SummaryFormCommonComponents";
import { getFilteredEmissionIntensitySchema } from "lib/theme/getFilteredEmissionIntensitySchema";
const { fields } = utils.getDefaultRegistry();

interface Props
Expand All @@ -31,10 +25,8 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC<Props> = ({
setHasDiff,
}) => {
const {
summaryEmissionIntensityReportFormChange,
summaryEmissionIntensityReportingRequirementFormChange,
isFirstRevision,
latestCommittedEmissionIntensityReportingRequirementFormChange,
latestCommittedEmissionIntensityReportFormChange,
} = useFragment(
graphql`
Expand All @@ -43,20 +35,6 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC<Props> = ({
summaryEmissionIntensityReportingRequirementFormChange: formChangesFor(
formDataTableName: "reporting_requirement"
reportType: "TEIMP"
) {
edges {
node {
newFormData
operation
isPristine
formChangeByPreviousFormChangeId {
newFormData
}
}
}
}
summaryEmissionIntensityReportFormChange: formChangesFor(
formDataTableName: "emission_intensity_report"
) {
edges {
node {
Expand All @@ -67,6 +45,9 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC<Props> = ({
newFormData
operation
isPristine
formByJsonSchemaName {
jsonSchema
}
formChangeByPreviousFormChangeId {
newFormData
calculatedEiPerformance
Expand All @@ -77,16 +58,6 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC<Props> = ({
}
}
}
latestCommittedEmissionIntensityReportingRequirementFormChange: latestCommittedFormChangesFor(
formDataTableName: "reporting_requirement"
reportType: "TEIMP"
) {
edges {
node {
newFormData
}
}
}
latestCommittedEmissionIntensityReportFormChange: latestCommittedFormChangesFor(
formDataTableName: "emission_intensity_report"
) {
Expand All @@ -111,24 +82,32 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC<Props> = ({
const summaryReportingRequirement =
summaryEmissionIntensityReportingRequirementFormChange?.edges[0]?.node;

const summaryEmissionIntensityReport =
summaryEmissionIntensityReportFormChange?.edges[0]?.node;
const newData = {
...summaryReportingRequirement?.newFormData,
//calculated values
calculatedEiPerformance:
summaryReportingRequirement?.calculatedEiPerformance,
paymentPercentage: summaryReportingRequirement?.paymentPercentage,
holdbackAmountToDate: summaryReportingRequirement?.holdbackAmountToDate,
actualPerformanceMilestoneAmount:
summaryReportingRequirement?.actualPerformanceMilestoneAmount,
};

const oldData = {
...summaryEmissionIntensityReport?.formChangeByPreviousFormChangeId
...summaryReportingRequirement?.formChangeByPreviousFormChangeId
?.newFormData,
//calculated values
calculatedEiPerformance:
summaryEmissionIntensityReport?.formChangeByPreviousFormChangeId
summaryReportingRequirement?.formChangeByPreviousFormChangeId
?.calculatedEiPerformance,
paymentPercentage:
summaryEmissionIntensityReport?.formChangeByPreviousFormChangeId
summaryReportingRequirement?.formChangeByPreviousFormChangeId
?.paymentPercentage,
holdbackAmountToDate:
summaryEmissionIntensityReport?.formChangeByPreviousFormChangeId
summaryReportingRequirement?.formChangeByPreviousFormChangeId
?.holdbackAmountToDate,
actualPerformanceMilestoneAmount:
summaryEmissionIntensityReport?.formChangeByPreviousFormChangeId
summaryReportingRequirement?.formChangeByPreviousFormChangeId
?.actualPerformanceMilestoneAmount,
};

Expand All @@ -150,90 +129,78 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC<Props> = ({
?.actualPerformanceMilestoneAmount,
};

// Set the formSchema and formData based on showing the diff or not
const reportingRequirementDiffObject = !renderDiff
? {
formSchema: emissionIntensityReportingRequirementSchema,
formData: summaryReportingRequirement?.newFormData,
}
: getFilteredSchema(
emissionIntensityReportingRequirementSchema as JSONSchema7,
summaryReportingRequirement || {}
);

const emissionIntensityReportDiffObject = !renderDiff
? {
formSchema: emissionIntensityReportSchema,
formData: summaryEmissionIntensityReport?.newFormData,
}
: getFilteredEmissionIntensitySchema(
{
...emissionIntensityReportSchema,
properties: {
...emissionIntensityReportSchema.properties,
// This is only to add the (Adjusted) to the title of the field to differentiate it from the calculated field
uponCompletion: {
...emissionIntensityReportSchema.properties.uponCompletion,
properties: {
...emissionIntensityReportSchema.properties.uponCompletion
.properties,
adjustedEmissionsIntensityPerformance: {
title: "GHG Emission Intensity Performance (Adjusted)",
type: "number",
},
},
},
// Add calculatedEiPerformance to the schema since this field is using `AdjustableCalculatedValueWidget` and is not directly in the schema
calculatedValues: {
properties: {
calculatedEiPerformance: {
type: "number",
title: "GHG Emission Intensity Performance",
},
},
},
},
} as JSONSchema7,
summaryEmissionIntensityReport || {}
);

// Set custom rjsf fields to display diffs
const customFields = { ...fields, ...CUSTOM_DIFF_FIELDS };

const allFormChangesPristine = useMemo(() => {
if (
summaryEmissionIntensityReport?.isPristine === false ||
summaryReportingRequirement?.isPristine === false ||
summaryEmissionIntensityReport?.isPristine === null ||
summaryReportingRequirement?.isPristine === null
)
return false;
return true;
}, [
summaryEmissionIntensityReport?.isPristine,
summaryReportingRequirement?.isPristine,
]);
}, [summaryReportingRequirement?.isPristine]);

// Update the hasDiff state in the CollapsibleFormWidget to define if the form has diffs to show
useEffect(
() => setHasDiff && setHasDiff(!allFormChangesPristine),
[allFormChangesPristine, setHasDiff]
);

if (isOnAmendmentsAndOtherRevisionsPage && allFormChangesPristine)
return null;

if ((allFormChangesPristine && !viewOnly) || !summaryReportingRequirement)
return (
<>
{!isOnAmendmentsAndOtherRevisionsPage && (
<h3>Emission Intensity Report</h3>
)}
<FormNotAddedOrUpdated
isFirstRevision={isFirstRevision}
formTitle="Emission Intensity Report"
/>
</>
);

// Set the formSchema and formData based on showing the diff or not
const reportingRequirementDiffObject = !renderDiff
? {
formSchema: summaryReportingRequirement.formByJsonSchemaName.jsonSchema
.schema as JSONSchema7,
formData: summaryReportingRequirement?.newFormData,
}
: getSchemaAndDataIncludingCalculatedValues(
summaryReportingRequirement.formByJsonSchemaName.jsonSchema
?.schema as JSONSchema7,
newData,
oldData,
{
// This is only to add the (Adjusted) to the title of the field to differentiate it from the calculated field
adjustedEmissionsIntensityPerformance: {
title: "GHG Emission Intensity Performance (Adjusted)",
type: "number",
},
// Add calculatedEiPerformance to the schema since this field is using `AdjustableCalculatedValueWidget` and is not directly in the schema
calculatedEiPerformance: {
type: "number",
title: "GHG Emission Intensity Performance",
},
}
);

// Set custom rjsf fields to display diffs
const customFields = { ...fields, ...CUSTOM_DIFF_FIELDS };

let modifiedEmissionIntensityReportUiSchema =
createEmissionIntensityReportUiSchema(
summaryEmissionIntensityReport?.newFormData?.emissionFunctionalUnit,
summaryEmissionIntensityReport?.newFormData?.productionFunctionalUnit,
summaryEmissionIntensityReport?.newFormData?.measurementPeriodStartDate,
summaryEmissionIntensityReport?.newFormData?.measurementPeriodEndDate,
summaryReportingRequirement?.newFormData?.emissionFunctionalUnit,
summaryReportingRequirement?.newFormData?.productionFunctionalUnit,
summaryReportingRequirement?.newFormData?.measurementPeriodStartDate,
summaryReportingRequirement?.newFormData?.measurementPeriodEndDate,
false
);

// To show the calculatedEiPerformance field in the diff view with proper formatting
if (renderDiff)
modifiedEmissionIntensityReportUiSchema = {
// this is to keep th fields in the same order as form when showing the diffs
"ui:order": ["teimpReporting", "calculatedValues", "uponCompletion"],
...modifiedEmissionIntensityReportUiSchema,
calculatedValues: {
calculatedEiPerformance: {
Expand All @@ -245,25 +212,6 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC<Props> = ({
},
};

if (isOnAmendmentsAndOtherRevisionsPage && allFormChangesPristine)
return null;

if (
(allFormChangesPristine && !viewOnly) ||
(!summaryReportingRequirement && !summaryEmissionIntensityReport)
)
return (
<>
{!isOnAmendmentsAndOtherRevisionsPage && (
<h3>Emission Intensity Report</h3>
)}
<FormNotAddedOrUpdated
isFirstRevision={isFirstRevision}
formTitle="Emission Intensity Report"
/>
</>
);

return (
<>
{!isOnAmendmentsAndOtherRevisionsPage && (
Expand All @@ -272,59 +220,39 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC<Props> = ({
{/* Show this part if none of the emission intensity report form properties have been updated */}
{allFormChangesPristine &&
!viewOnly &&
summaryEmissionIntensityReport?.operation !== "ARCHIVE" && (
summaryReportingRequirement?.operation !== "ARCHIVE" && (
<FormNotAddedOrUpdated
isFirstRevision={isFirstRevision}
formTitle="Emission Intensity Report"
/>
)}
{/* Show this part if the whole emission intensity report has been removed */}
{renderDiff &&
summaryEmissionIntensityReport?.operation === "ARCHIVE" && (
<FormRemoved
isOnAmendmentsAndOtherRevisionsPage={
isOnAmendmentsAndOtherRevisionsPage
}
formTitle="Emission Intensity Report"
/>
)}
{renderDiff && summaryReportingRequirement?.operation === "ARCHIVE" && (
<FormRemoved
isOnAmendmentsAndOtherRevisionsPage={
isOnAmendmentsAndOtherRevisionsPage
}
formTitle="Emission Intensity Report"
/>
)}

<FormBase
tagName={"dl"}
theme={readOnlyTheme}
fields={renderDiff ? customFields : fields}
schema={reportingRequirementDiffObject.formSchema as JSONSchema7}
uiSchema={emissionIntensityReportingRequirementUiSchema}
formData={reportingRequirementDiffObject.formData}
formContext={{
operation: summaryReportingRequirement?.operation,
oldData:
summaryReportingRequirement?.formChangeByPreviousFormChangeId
?.newFormData,
latestCommittedData:
latestCommittedEmissionIntensityReportingRequirementFormChange
?.edges[0]?.node?.newFormData,
isAmendmentsAndOtherRevisionsSpecific:
isOnAmendmentsAndOtherRevisionsPage,
}}
/>
<FormBase
tagName={"dl"}
theme={readOnlyTheme}
fields={renderDiff ? customFields : fields}
schema={emissionIntensityReportDiffObject.formSchema as JSONSchema7}
uiSchema={modifiedEmissionIntensityReportUiSchema}
formData={emissionIntensityReportDiffObject.formData}
formData={reportingRequirementDiffObject.formData}
formContext={{
calculatedEiPerformance:
summaryEmissionIntensityReport?.calculatedEiPerformance ?? 0,
summaryReportingRequirement?.calculatedEiPerformance ?? 0,
paymentPercentageOfPerformanceMilestoneAmount:
summaryEmissionIntensityReport?.paymentPercentage,
summaryReportingRequirement?.paymentPercentage,
holdbackAmountToDate:
summaryEmissionIntensityReport?.holdbackAmountToDate,
summaryReportingRequirement?.holdbackAmountToDate,
actualPerformanceMilestoneAmount:
summaryEmissionIntensityReport?.actualPerformanceMilestoneAmount,
operation: summaryEmissionIntensityReport?.operation,
summaryReportingRequirement?.actualPerformanceMilestoneAmount,
operation: summaryReportingRequirement?.operation,
oldData,
latestCommittedData,
isAmendmentsAndOtherRevisionsSpecific:
Expand Down
2 changes: 1 addition & 1 deletion app/components/Form/ProjectFormSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { createProjectUiSchema } from "./ProjectForm";

import CUSTOM_DIFF_FIELDS from "lib/theme/CustomDiffFields";
import { utils } from "@rjsf/core";
import { getSchemaAndDataIncludingCalculatedValues } from "lib/theme/getFilteredSchema";
import { getSchemaAndDataIncludingCalculatedValues } from "lib/theme/schemaFilteringHelpers";
import { SummaryFormProps } from "data/formPages/types";
import { useEffect, useMemo } from "react";
import { FormNotAddedOrUpdated } from "./SummaryFormCommonComponents";
Expand Down
2 changes: 1 addition & 1 deletion app/components/Form/ProjectFundingAgreementFormSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { fundingParameterEPUiSchema } from "data/jsonSchemaForm/fundingParameter
import { fundingParameterIAUiSchema } from "data/jsonSchemaForm/fundingParameterIAUiSchema";
import type { JSONSchema7 } from "json-schema";
import CUSTOM_DIFF_FIELDS from "lib/theme/CustomDiffFields";
import { getSchemaAndDataIncludingCalculatedValues } from "lib/theme/getFilteredSchema";
import { getSchemaAndDataIncludingCalculatedValues } from "lib/theme/schemaFilteringHelpers";
import readOnlyTheme from "lib/theme/ReadOnlyTheme";
import React, { useEffect, useMemo } from "react";
import { graphql, useFragment } from "react-relay";
Expand Down
3 changes: 2 additions & 1 deletion app/components/Form/ProjectQuarterlyReportForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ const ProjectQuarterlyReportForm: React.FC<Props> = (props) => {
}
emissionIntensityReportFormChanges: formChangesFor(
first: 500
formDataTableName: "emission_intensity_report"
formDataTableName: "reporting_requirement"
reportType: "TEIMP"
filter: { operation: { notEqualTo: ARCHIVE } }
) @connection(key: "connection_emissionIntensityReportFormChanges") {
edges {
Expand Down
Loading
Loading