-
Notifications
You must be signed in to change notification settings - Fork 26
Fix #619: Default 'subject' and 'session' to 'all' in TUI custom tran… #621
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
base: main
Are you sure you want to change the base?
Fix #619: Default 'subject' and 'session' to 'all' in TUI custom tran… #621
Conversation
…l' in TUI custom transfer if fields are left blank. (Final formatting fix)
|
Hi @NobleCoder69 could you make sure to fill out the PR template? |
|
Hi @adamltyson, Ready for review when convenient. 👍 |
|
Thanks @NobleCoder69, I'm not sure I can see any changes to the typing here although mentioned in the PR body. Nonetheless this indeed sets It is quite good that you are working on this issue because the most user friendly way to handle this is not clear, and requires some thought. If you could generate a test project and play around with the transfer, and let me know what you think is the best 'default' for leaving this boxes empty. The current default of passing through as |
|
Thanks a lot for the feedback! I see what you mean about handling this in the TUI instead. I’ll go through the code you mentioned and create a small test project to experiment with different defaults. I’ll try both throwing an error and pre-filling “all” to see what feels more intuitive, then share my thoughts here. |
|
Hi @NobleCoder69, are you still interested in working on this issue? |
|
Hi all — I’m still actively working on this. Thanks for the feedback @JoeZiminski. Plan
I’ll push a follow-up commit with tests and update the PR description accordingly. If reviewers prefer a different token (e.g., Also: I noticed a CI failure on macOS Python 3.9 — if it still fails after my update, I’ll check logs and ask for guidance if needed. It may be unrelated / flaky. Thanks! |
Fix transfer if fields are left blank. (Final formatting fix)
Before submitting a pull request (PR), please read the contributing guide.
Please fill out as much of this template as you can, but if you have any problems or questions, just leave a comment and we will help out :)
Description
This PR fixes the issue where the TUI transfer process failed when the
subjectorsessionfields were left blank.It also corrects type hints in the affected functions to use
list[str]instead of genericListtypes.Local verification of Sphinx docs was blocked due to environment-related issues, but all code changes were tested locally.
What is this PR
Why is this PR needed?
Previously, leaving the
subjectorsessionfields empty in the transfer interface would cause the operation to fail.This fix ensures that transfers proceed successfully even when these fields are blank, improving usability and robustness.
What does this PR do?
subjectandsessionwhen left blank.list[str].pre-commit.References
Fixes: #619
How has this PR been tested?
pytestand manually testing the TUI transfer workflow.subjectandsessionno longer interrupts transfer execution.pre-commitsuccessfully for code style and static checks.Is this a breaking change?
No, this change is backward-compatible.
It only modifies behavior when the
subjectorsessionfields are left blank, and does not affect existing workflows.Does this PR require an update to the documentation?
No documentation updates are required, as this change only affects default handling in the TUI transfer behavior.
Checklist: