[Fixes #14059] Upsert does not lowercase the field name in create mode#14060
[Fixes #14059] Upsert does not lowercase the field name in create mode#14060
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request primarily resolves an issue where field names were not correctly lowercased during upsert operations, which could lead to inconsistencies in data storage. Additionally, it improves the robustness of GeoJSON file handling by introducing more detailed error logging, making it easier to diagnose issues when processing these files. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request addresses a bug where the field name was not being lowercased in create mode during an upsert operation. The fix involves modifying the _save_feature method in geonode/upload/handlers/common/vector.py to ensure that field names are consistently lowercased using the fixup_name method. Additionally, a logger exception was added to the geojson handler to improve error handling.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #14060 +/- ##
==========================================
+ Coverage 74.07% 74.49% +0.42%
==========================================
Files 950 951 +1
Lines 56826 57367 +541
Branches 7719 7782 +63
==========================================
+ Hits 42093 42738 +645
+ Misses 13044 12918 -126
- Partials 1689 1711 +22 🚀 New features to boost your workflow:
|
Checklist
For all pull requests:
The following are required only for core and extension modules (they are welcomed, but not required, for contrib modules):
Submitting the PR does not require you to check all items, but by the time it gets merged, they should be either satisfied or inapplicable.