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

chore: retire custom ESRI GIS integrations #3977

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

jessicamcinchak
Copy link
Member

@jessicamcinchak jessicamcinchak commented Nov 19, 2024

In the past before Planning Data, we integrated directly with local ESRI GIS servers - notably for Braintree council and a demo for the Scottish government. Waiting for OK here: https://opensystemslab.slack.com/archives/C5Q59R3HB/p1731954174803899

We no longer anticipate supporting this integration approach, so I'm fully removing these files as they add a fair amount of complexity to how we handle planning constraints. If we ever need to spin up demos again, the ESRI helpers especially should be find-able & easy to re-implement/revert 🙂

Copy link

github-actions bot commented Nov 19, 2024

Removed vultr server and associated DNS entries

Copy link
Contributor

@DafyddLlyr DafyddLlyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two small comments / questions, totally non-blocking.

Some satisfying deletions here - thanks!

Appreciate we're still waiting to hear back re:contracts here but happy to approve from a code POV 👍


// Fetch planning constraints data for a given local authority
const root = `${import.meta.env.VITE_APP_API_URL}/gis/${teamSlug}?`;
const teamGisEndpoint: string =
root +
new URLSearchParams(
hasPlanningData ? digitalLandParams : customGisParams,
hasPlanningData ? planningDataParams : undefined,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we relying on this failing because geom will be undefined when the request is made?

If !hasPlanningData should be guard against making the request full stop?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already need to revisit these request conditions in #3968 (eg only make "roads" request if the editor has specified they want to check roads and they have a USRN) - so going to take these comments forward into that PR is ok!

api.planx.uk/modules/gis/service/index.js Outdated Show resolved Hide resolved
@@ -22,8 +20,7 @@ const localAuthorities = { digitalLand, braintree, scotland };
* description: Well-Known Text (WKT) formatted polygon or point
*/
export async function locationSearch(req, res, next) {
// 'geom' param signals this localAuthority has data available via DigitalLand, "ready" teams are configured in PlanningConstraints component in editor
// swagger doc intentionally doesn't cover legacy custom GIS hookups for Braintree and Scotland demo
// 'geom' param signals this localAuthority has data available via Planning Data
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha this answers my previous question - maybe a check against hasPlanningData in both places is a bit more robust / expected.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the bonus .js.ts here as well ✨

@DafyddLlyr
Copy link
Contributor

A small follow up task here is to remove legacy custom GIS endpoints from UptimeRobot also.

@jessicamcinchak jessicamcinchak marked this pull request as ready for review November 19, 2024 09:56
@jessicamcinchak jessicamcinchak merged commit 181b245 into main Nov 19, 2024
12 checks passed
@jessicamcinchak jessicamcinchak deleted the jess/retire-custom-gis branch November 19, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants