Skip to content

Replace JSONB-based SQL functions with flat-column versions + Ranking…#202

Open
fadiismail27 wants to merge 1 commit intomainfrom
redo_sql
Open

Replace JSONB-based SQL functions with flat-column versions + Ranking…#202
fadiismail27 wants to merge 1 commit intomainfrom
redo_sql

Conversation

@fadiismail27
Copy link

… UI Fixes

Overview

This PR addresses the ticket goal of redoing SQL functions that previously depended on jsonb-structured Provinces and Counties tables. These functions are now rewritten to use the new flat-column Province_Data, County_Data, provinces_livestock, and counties_livestock tables introduced in ticket #192 (URGENT TICKET).

Additionally, this PR fixes the ranking and sort-reset behavior in the InsightsPanel UI.

image

Impact

This PR helps make the data easier to use and understand by switching from complex JSON to simpler table columns. It also makes the rankings more consistent, so users can compare regions more clearly and make better decisions about land use, which supports GreenZone’s goal of sustainable rangeland management.

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