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

updatePaths work without being supplied new_dir and new_path #1034

Merged
merged 4 commits into from
May 1, 2024

Conversation

petersilva
Copy link
Contributor

For @reidsunderland and @petersilva , this routine in the sarracenia.Message class does not satisfy the Princple of Least Astonishment. If you have a python method that has =None for a value... you should be able to omit it.

looking through the code, it is clear that the code will crash if either one or both of new_dir and new_file arguments are omitted. in all places in the existing code, both args are supplied.

However to make it nicer to use for plugin writers, added logic to infer the correct values from existing message fields whenever possible.

@petersilva petersilva marked this pull request as ready for review May 1, 2024 19:35
Copy link

github-actions bot commented May 1, 2024

Test Results

209 tests   200 ✅  15s ⏱️
  1 suites    8 💤
  1 files      1 ❌

For more details on these failures, see this check.

Results for commit 7e88440.

Copy link
Member

@reidsunderland reidsunderland left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

@petersilva petersilva merged commit 98983e4 into development May 1, 2024
26 of 35 checks passed
@petersilva petersilva deleted the POLA_updatePaths branch May 7, 2024 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants