Skip to content

Commit

Permalink
chore: update DrawBoundary upload key from `proposal.drawing.location…
Browse files Browse the repository at this point in the history
…Plan` to `locationPlan` (#2758)
  • Loading branch information
jessicamcinchak authored Feb 8, 2024
1 parent 9e47d10 commit 539b774
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import DrawBoundary from "./";
test("recovers previously submitted files when clicking the back button", async () => {
const handleSubmit = jest.fn();
const previouslySubmittedData = {
"proposal.drawing.locationPlan": [
"locationPlan": [
{
file: {
path: "placeholder.png",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const parseDrawBoundary = (
definitionImg: data?.definitionImg || defaultContent?.["definitionImg"],
});

export const PASSPORT_UPLOAD_KEY = "proposal.drawing.locationPlan" as const; // not added to editor yet
export const PASSPORT_UPLOAD_KEY = "locationPlan" as const; // not added to editor yet
export const PASSPORT_COMPONENT_ACTION_KEY = "drawBoundary.action" as const; // internal use only

// Default content as of Jan 2024 when title boundaries were introduced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const uploadedPlansBreadcrumb = {
EO6DzPso8o: {
auto: false,
data: {
"proposal.drawing.locationPlan": [
locationPlan: [
{
file: {
path: "fut.email.png",
Expand Down Expand Up @@ -113,7 +113,7 @@ export const uploadedPlansPassport = {
"property.type": ["residential.dwelling.house.terrace"],
"property.localAuthorityDistrict": ["Southwark"],
"property.region": ["London"],
"proposal.drawing.locationPlan": [
locationPlan: [
{
file: {
path: "fut.email.png",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ describe("It extracts tags for", () => {
},
"Location plan": {
key:
PASSPORT_UPLOAD_KEY === "proposal.drawing.locationPlan"
PASSPORT_UPLOAD_KEY === "locationPlan"
? PASSPORT_UPLOAD_KEY
: "key changed unexpectedly!",
tags: ["Proposed", /*"Drawing",*/ "Site", "Plan"],
tags: [/*"Proposed", "Drawing",*/ "Site", "Plan"],
},
"Existing site plan": {
key: "property.drawing.sitePlan",
Expand Down

0 comments on commit 539b774

Please sign in to comment.