Closed mohitb35 closed 3 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
planet-webapp-multi-tenancy-setup | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 24, 2024 0:49am |
The pull request includes significant modifications across several API endpoints related to data retrieval for plant and species information. Key changes involve restructuring SQL queries to improve readability and robustness, particularly through the use of COALESCE
for handling null values and enhancing join conditions. Additionally, TypeScript interfaces are updated to accommodate new properties, and SCSS styles are modified to improve the layout of the PlantLocationDetails
component. Overall, these changes refine data handling and presentation without altering the core functionality.
File | Change Summary |
---|---|
pages/api/data-explorer/export.ts | Restructured SQL query with COALESCE for species handling; improved query readability. |
pages/api/data-explorer/map/distinct-species/[projectId].ts | New SQL query with additional conditions and joins; utilizes COALESCE for species names. |
pages/api/data-explorer/map/plant-location/[plantLocationId].ts | Adjusted subquery and joins; used COALESCE for tree counts; updated parameter list. |
pages/api/data-explorer/map/plant-location/index.ts | Enhanced SQL query with filtering for intervention types; improved query formatting. |
pages/api/data-explorer/map/sites/[projectId].ts | Reformatted SQL query string for readability; no functional changes. |
pages/api/data-explorer/species-planted.ts | New SQL query structure using COALESCE and adjusted joins; expanded WHERE clause conditions. |
pages/api/data-explorer/total-species-planted.ts | Updated SQL query with NULLIF and adjusted join conditions; added filtering for deleted records. |
pages/api/data-explorer/total-trees-planted.ts | Modified SQL query to filter out deleted records; improved query formatting. |
pages/api/data-explorer/trees-planted.ts | Added conditions to filter out deleted records; improved SQL query formatting. |
src/features/common/types/dataExplorer.d.ts | Added PlantLocationProperties interface; updated existing interfaces to allow null values. |
src/features/user/TreeMapper/Analytics/components/Map/components/PlantLocationDetails/index.module.scss | Added new styles for header layout; introduced nested classes. |
src/features/user/TreeMapper/Analytics/components/Map/components/PlantLocationDetails/index.tsx | Introduced PlantLocationHeader component; modified rendering logic based on plant location type. |
COALESCE
.MyForest 2.0
, PR: unreviewed
🐇 In the garden where we play,
SQL blooms in a bright array.
WithCOALESCE
to save the day,
Plant locations find their way.
Styles refreshed, our data's grand,
Hopping forth, we take a stand! 🌱
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
hid
to identify the selected plant location