1166 local plans dataset list deploy to production#1168
1166 local plans dataset list deploy to production#1168pooleycodes wants to merge 3 commits intomainfrom
Conversation
WalkthroughConfiguration updates across three environment files add four new dataset configurations ( Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Coverage Report
File CoverageNo changed files found. |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
config/default.yaml (1)
136-139: Consider adding local-planning-group to default configuration.The
organisationTypeslist in default.yaml does not includelocal-planning-group, which was added to bothconfig/production.yamlandconfig/staging.yaml. This creates an inconsistency where development environments (using default.yaml) won't recognise local-planning-group organisations, whilst production and staging will.Based on the middleware code in
organisations.middleware.js, the SQL query dynamically filters organisations using these types, so local-planning-group entries will be excluded in development. Consider whether development and testing environments should also support this organisation type to maintain consistency and enable proper testing before deployment.♻️ Proposed addition to align with production and staging
organisationTypes: - local-authority - national-park-authority - development-corporation + - local-planning-group🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@config/default.yaml` around lines 136 - 139, The default configuration's organisationTypes list is missing the local-planning-group entry which causes dev environments to behave differently than staging/production; update the organisationTypes YAML sequence by adding "local-planning-group" to the list so it matches the other environment configs and ensure the middleware that filters by organisationTypes (organisationTypes key used by organisations.middleware.js) will include those organisations during development and testing.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@config/default.yaml`:
- Around line 136-139: The default configuration's organisationTypes list is
missing the local-planning-group entry which causes dev environments to behave
differently than staging/production; update the organisationTypes YAML sequence
by adding "local-planning-group" to the list so it matches the other environment
configs and ensure the middleware that filters by organisationTypes
(organisationTypes key used by organisations.middleware.js) will include those
organisations during development and testing.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: e2df5b72-7594-4e03-a5f2-3d197252ac5e
📒 Files selected for processing (3)
config/default.yamlconfig/production.yamlconfig/staging.yaml
Description
Please replace this line with a brief description of the changes made.
What type of PR is this? (check all applicable)
Related Tickets & Documents
QA Instructions, Screenshots, Recordings
Before
Before screenshot here
After
After screenshot here
Added/updated tests?
We encourage you to keep the code coverage percentage at 80% and above.
QA sign off
[optional] Are there any post-deployment tasks we need to perform?
[optional] Are there any dependencies on other PRs or Work?
Summary by CodeRabbit