Skip to content

Commit

Permalink
chore: forward application context project's isProductionProject (#3571)
Browse files Browse the repository at this point in the history
* feat: forward application context project's isProductionProject

* chore: add changeset

* test: fix test

* docs: simplify changeset

---------

Co-authored-by: Nicola Molinari <[email protected]>
  • Loading branch information
ahmehri and emmenko authored Jul 23, 2024
1 parent 8de8775 commit a3a8e85
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/dry-eagles-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@commercetools-frontend/application-shell-connectors": patch
---

Expose field `isProductionProject` to `ApplicationContext`.
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ describe('mapProjectToApplicationContextProject', () => {
ownerName: expect.any(String),
sampleDataImportDataset: expect.any(String),
isUserAdminOfCurrentProject: expect.any(Boolean),
isProductionProject: expect.any(Boolean),
});
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export const mapProjectToApplicationContextProject = (
ownerName: project.owner.name,
sampleDataImportDataset: project.sampleDataImportDataset,
isUserAdminOfCurrentProject: project.isUserAdminOfCurrentProject,
isProductionProject: project.isProductionProject,
};
};

Expand Down

0 comments on commit a3a8e85

Please sign in to comment.