Fix a few oversights in new workflow switching. - #547
Conversation
…tainer open)
- Add this to the run container to ensure GDB prints clickable paths in the devcontainer
- RUN echo "set filename-display basename" > /home/cisTEMdev/.gdbinit
- Fixes state tracking by forcing refresh on TM switch
- Opted to do this by calling DirtyEverthing in MainFrame switch workflow method
- Pros: centralized and easy
- Cons: forces a refresh across the GUI, but performance not likely a problem given infrequency of swiching.
- Alternative: We could make all new panels dirty their own on construction if they have their main frame pointer
- When loading the project the DB select was still returning empty.
- Added a warning and set default.
- It would be better to figure out why this happens, but will see if there is observable behavior later
- When loading the project, the TM results are not being set because we default to SPA mode
- Move the TM results to the results panel and that fixes things.
- Remove stale methods to Set workflows in Mainframe.h
|
I never posted my comment on #546 as each time I was editing it I was getting pulled away, but DirtyEverything() was also my conclusion, with the same reasoning of infrequent switching making it an okay, if technically sub-optimal, approach. I'm glad to see we had the same idea. I should be able to complete the review relatively soon. Thank you for correcting the oversight! Also, on the topic of the devcontainer, I've still had some issues when executing Originally it was: And when I changed it to: the reopen operation works. I think this is the same functionality, because the reopen operation works and seems to stick to one of the solutions in the linked issue found in regenerate_containers. I don't know if this is exactly the same, but it seems to be similar. Also not sure if you want to change that here, or else I can open an issue and PR the changes after this. Edited the first code block; originally had copied the logic with the updated naming twice. The original logic section now actually shows the original logic. |
|
please go ahead and fix the container thing here, but i can't see the difference in those two code blocks just looking at them. I must just be missing it |
twagner9
left a comment
There was a problem hiding this comment.
I tried to checkout the PR branch and commit/push the regenerate_containers.sh changes but of course do not have permission to do so since the branch is from your fork. Not sure if there's another way I can directly incorporate or suggest those changes using the convenience features?
Spent awhile fiddling around/googling and couldn't see a nice way that doesn't involve opening a separate PR.
I edited my comment from yesterday with the original/updated naming, though, so it should be clearer what was changed.
As for the rest of the PR, it looks good to me, the changes are not major and easy to follow, and I will be sure to approve after the regenerate_containers.sh is updated.
| @@ -739,6 +741,12 @@ void MyMainFrame::OpenProject(wxString project_filename) { | |||
| } | |||
| else { | |||
| current_workflow = current_project.database.ReturnSingleStringFromSelectCommand("select CURRENT_WORKFLOW from MASTER_SETTINGS"); | |||
There was a problem hiding this comment.
Odd that this is not returning the proper string...I know I was checking with print logging at some point, but perhaps that was in a different part of the code.
…auto completed at some point)
Thanks @twagner9 I made the changes. |
General problem
See #546
Fixes
Fixes state tracking by forcing refresh on TM switch
When loading the project the DB select was still returning empty.
When loading the project, the TM results are not being set because we default to SPA mode
Remove stale methods to Set workflows in Mainframe.h
Additional small changes for devcontainer debugging
change workspace to full path (instead of code . , open with devcon…tainer open)
Add this to the run container to ensure GDB prints clickable paths in the devcontainer
I have rebased my feature branch to be current with the master branch using to minimize conflicts and headaches
Which compilers were tested
These changes are isolated to the
How has the functionality been tested?
Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.
Checklist: