Skip to content

feat: Add parameter_nodes table for folder/category labels#124

Open
SakshiKekre wants to merge 6 commits intomainfrom
feat/parameter-nodes
Open

feat: Add parameter_nodes table for folder/category labels#124
SakshiKekre wants to merge 6 commits intomainfrom
feat/parameter-nodes

Conversation

@SakshiKekre
Copy link
Contributor

Summary

  • Add ParameterNode SQLModel with name, label, description fields
  • Add Alembic migration for parameter_nodes table
  • Update seed_models.py to seed nodes from policyengine.py
  • Update /parameters/children endpoint to use node labels from DB

This provides proper labels for folder nodes in the parameter tree (e.g., "HMRC" instead of "hmrc").

Dependencies

Test plan

  • Run seed_models.py - seeds 398 parameter nodes for UK
  • Test /parameters/children?country_id=uk&parent_path=gov returns proper labels
  • Verify "HMRC" label instead of "hmrc"

SakshiKekre and others added 6 commits March 11, 2026 17:52
Add ParameterNode model and migration to store folder structure labels
for the parameter tree (e.g., "HMRC" instead of "hmrc").

Changes:
- Add ParameterNode SQLModel with name, label, description fields
- Add Alembic migration for parameter_nodes table
- Update seed_models.py to seed nodes from policyengine.py
- Update /parameters/children to use node labels from DB

Requires: PolicyEngine/policyengine.py#254
Change down_revision from 'add_modelled_policies' (only exists on
feat/modelled-policies branch) to '886921687770' (last migration on main).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant