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

feat: add hasPlanningData property to teams.settings #2457

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

jessicamcinchak
Copy link
Member

@jessicamcinchak jessicamcinchak commented Nov 19, 2023

As more councils are coming onboard, this change will let us skip PRs for Trello tickets like this one and instead just add the property "hasPlanningData": true to teams.settings in the prod Hasura console for this council. No changes to permissions or the staging data sync are necessary for this to work as expected.

We will still open PRs to add API GIS metadata when a council's granular Article 4 variables become available.

Also updated council onboarding step in README here: https://github.com/theopensystemslab/planx-team-onboarding/tree/main#after-running-this-script

Future scope: expose this property via the Team Settings page in the Editor or via admin endpoint in the short term (probably not worth it?)

"newcastle",
"southwark",
"st-albans",
];
Copy link
Member Author

@jessicamcinchak jessicamcinchak Nov 19, 2023

Choose a reason for hiding this comment

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

I'll update teams.settings.hasPlanningData for these councils on merge ✔️

For testing on this pizza:

  • You can successfully fetch constraints for teams setup in Hasura
    • Doncaster has hasPlanningData: true
  • You see the "{Council} is not a supported local authority" error for teams that have not been setup or are set to false
    • Lambeth has hasPlanningData :false
    • All other teams currently have undefined hasPlanningData

Copy link
Contributor

@DafyddLlyr DafyddLlyr Nov 20, 2023

Choose a reason for hiding this comment

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

Getting the expected results for true, undefined and false values 👍

@jessicamcinchak
Copy link
Member Author

Copy link

github-actions bot commented Nov 19, 2023

Removed vultr server and associated DNS entries

@jessicamcinchak jessicamcinchak requested a review from a team November 20, 2023 07:53
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.

Thanks for picking this up!

@jessicamcinchak jessicamcinchak merged commit 052210f into main Nov 20, 2023
12 checks passed
@jessicamcinchak jessicamcinchak deleted the jess/planning-data-team-settings branch November 20, 2023 09:30
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