Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch context file for changes saved separately #304

Merged
merged 7 commits into from
Oct 24, 2024

Conversation

takluyver
Copy link
Member

Tested interactively. This also fixes a bug where new columns would occasionally show up without a column heading, by ensuring variables always have a title.

cc @tmichela

@takluyver takluyver added the GUI For GUI-related things label Aug 1, 2024
Comment on lines +118 to +122
try:
column_index = self.damnit_model.find_column(name, by_title=True)
except KeyError:
log.error("Could not find column %r to set visibility", name)
return
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This catch probably isn't needed any more with the fix in damnit_ctx.py, but I figured it was easier to leave it in.

Copy link

codecov bot commented Aug 1, 2024

Codecov Report

Attention: Patch coverage is 77.35849% with 12 lines in your changes missing coverage. Please review.

Project coverage is 75.32%. Comparing base (f7f96a0) to head (476aecd).
Report is 75 commits behind head on master.

Files with missing lines Patch % Lines
damnit/gui/main_window.py 80.43% 9 Missing ⚠️
damnit/gui/table.py 40.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #304      +/-   ##
==========================================
+ Coverage   74.39%   75.32%   +0.93%     
==========================================
  Files          32       32              
  Lines        4858     5026     +168     
==========================================
+ Hits         3614     3786     +172     
+ Misses       1244     1240       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@takluyver takluyver changed the title Update variables in GUI after saving context file Watch context file for changes saved separately Aug 7, 2024
@hcraT hcraT self-requested a review October 18, 2024 12:29
damnit/gui/main_window.py Outdated Show resolved Hide resolved
damnit/gui/main_window.py Outdated Show resolved Hide resolved
damnit/gui/main_window.py Outdated Show resolved Hide resolved
damnit/gui/main_window.py Outdated Show resolved Hide resolved
damnit/gui/main_window.py Outdated Show resolved Hide resolved
damnit/gui/main_window.py Outdated Show resolved Hide resolved
@hcraT
Copy link
Contributor

hcraT commented Oct 24, 2024

For me LGTM! :)

@takluyver
Copy link
Member Author

Thanks! I'll give this another quick try manually, as I've made some changes since I last did, and then I'll merge it.

@takluyver takluyver merged commit 55501da into master Oct 24, 2024
6 checks passed
@takluyver takluyver deleted the feat/update-vars-on-save branch October 24, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI For GUI-related things
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants