Skip to content

Handle bad project names#527

Merged
JoeZiminski merged 6 commits into
mainfrom
handle_bad_project_names
Jun 23, 2025
Merged

Handle bad project names#527
JoeZiminski merged 6 commits into
mainfrom
handle_bad_project_names

Conversation

@JoeZiminski

Copy link
Copy Markdown
Member

This PR handles two types of project names that were causing problems:

  1. empty project names [Fix #438] Disallow empty project names #472
  2. project names with numbers in number-only project names fail to load in TUI #512

This raises an error if the project name is empty, and for the TUI adds a prefix to the id created from the project name to ensure numbers don't crash (as ids cannot start with a number).

Tests are added for these cases, no documentation is required.

@JoeZiminski JoeZiminski requested a review from cs7-shrey June 21, 2025 18:29
@JoeZiminski JoeZiminski linked an issue Jun 21, 2025 that may be closed by this pull request

@cs7-shrey cs7-shrey left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good @JoeZiminski. I've added some minor comments.

Comment thread tests/tests_tui/test_tui_configs.py Outdated
Comment thread datashuttle/tui/screens/project_selector.py Outdated
Comment thread datashuttle/tui/screens/project_selector.py Outdated
@JoeZiminski JoeZiminski force-pushed the handle_bad_project_names branch from 41d928e to 433c1e8 Compare June 22, 2025 23:01
@JoeZiminski JoeZiminski force-pushed the handle_bad_project_names branch from ceeffdb to 2be3f0a Compare June 22, 2025 23:05
@JoeZiminski JoeZiminski requested a review from cs7-shrey June 22, 2025 23:06

@cs7-shrey cs7-shrey left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Perfect. Looks good to me.

@JoeZiminski

Copy link
Copy Markdown
Member Author

Thanks @cs7-shrey !

@JoeZiminski JoeZiminski merged commit 094696d into main Jun 23, 2025
16 checks passed
@JoeZiminski JoeZiminski deleted the handle_bad_project_names branch June 23, 2025 11:07
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.

number-only project names fail to load in TUI

2 participants