[Fixes #13892] Keywords sync between geoserver and geonode#13951
[Fixes #13892] Keywords sync between geoserver and geonode#13951
Conversation
Summary of ChangesHello @sijandh35, 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 addresses an issue where keywords associated with resources in GeoServer were not being synchronized back to their corresponding GeoNode instances. The changes introduce a new helper function to manage keyword updates and integrate this function into the existing GeoServer synchronization process, ensuring that GeoNode instances accurately reflect the keywords defined in GeoServer. 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. Changelog
Activity
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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces functionality to synchronize keywords from GeoServer to GeoNode instances. The implementation adds a new helper function _sync_geoserver_keywords_to_instance that utilizes KeywordHandler to process and set the keywords. This function is then integrated into the existing sync_instance_with_geoserver flow.
My main feedback is on improving the error logging within the new helper function. Additionally, I've noticed that the checklist item for adding unit tests is unchecked. It would be beneficial to add tests for the new _sync_geoserver_keywords_to_instance function to ensure its correctness and prevent future regressions.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #13951 +/- ##
==========================================
- Coverage 74.24% 74.23% -0.02%
==========================================
Files 947 948 +1
Lines 56620 56581 -39
Branches 7675 7667 -8
==========================================
- Hits 42038 42003 -35
+ Misses 12892 12889 -3
+ Partials 1690 1689 -1 🚀 New features to boost your workflow:
|
|
HI @sijandh35 did u test it also via |
Hi @mattiagiupponi I haved tested with |
Fixes #13892
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.