Changed the two controls for saving the definitions (checkbox and sav…#10247
Conversation
…e inputTextbox) to use only the ucrSave control
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 initiates a refactoring of the 'End of Rains' dialog's definition saving mechanism. The goal is to streamline the user interface by consolidating definition saving options into a single, more integrated control. While the structural changes have been implemented, a critical issue causing the application to freeze upon interaction with the new save control has been identified, and the author is requesting collaborative input to debug and resolve it. 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 aims to replace a separate checkbox for saving definitions with the integrated checkbox in the ucrSave control. However, as you've noted, this has introduced an application freeze. My review confirms that this is due to an infinite recursion in the ucrSaveObject_ControlValueChanged event handler. I've provided a critical comment with a suggested fix to resolve this issue by using a re-entrancy guard. Additionally, I've included a minor suggestion to remove some now-unused code for better maintainability. The other changes related to replacing the old checkbox control seem correct.
|
@ARMSTRONGOPONDO can you review the VB code here? |
lilyclements
left a comment
There was a problem hiding this comment.
@Emmanuel-Afrifa Works well! Only thing is that the saved definitions name doesn't update if I change it from the default.
(e.g, check to save the new definition, change the name, and then open Prepare > R Objects > View, and the object has it's default name not the name I set it to. This is the case at least for End Season - I assume for End Rains too)
|
@Emmanuel-Afrifa can you please mention the datasets you used to test the changes with |
|
@ARMSTRONGOPONDO I used the |
|
@lilyclements Please, I'll look into that right away. Thank you. |
|
I have tested the change-save-options-control-end-rains branch @lilyclements and @Emmanuel-Afrifa The infinite recursion (UI freeze) is resolved. I can now interact with the "Save Object" control without the application crashing. The re-entrancy guard in ucrSaveObject_ControlValueChanged is working correctly.
Please modify AddSaveDefinitionOptions to preserve user input and fix the R script generation logic.
can someone else confirm this maybe am the only one experiencing these errors @berylwaswa
|
|
@ARMSTRONGOPONDO great. To your R errors can you update the |
|
@lilyclements @ARMSTRONGOPONDO I've fixed the overwriting of the save name by refactoring the logic that sets the prefix into a separate sub and calling it only in the SetDefaults and when the radio button changes. Please can you confirm if it works as expected? Thank you. |
@Emmanuel-Afrifa |
|
@Emmanuel-Afrifa I can confirm that store definitions custom name now works okay from my end, I was able to change the name without it changing to the default name |
lilyclements
left a comment
There was a problem hiding this comment.
@Emmanuel-Afrifa it is working well. It takes the new name now which is a relief, but the name has reverted back to the default name when reopening. As you said, this is an issue elsewhere like on the plot dialogs. Can you put this in an issue?
In the meantime I'll approve and merge. Great work!




Fixes #10188
@lilyclements @rdstern @berylwaswa
This PR is ready for review. I was initially having an issue, but the AI's initial review gave me a fix to the problem. Thank you.
Before asking for review
Please confirm that you have:
Developer Testing Checklist