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

Database: Extend job_name and project_path to 255 characters #1396

Merged
merged 4 commits into from
Mar 26, 2024

Conversation

jan-janssen
Copy link
Member

No description provided.

@jan-janssen jan-janssen linked an issue Mar 25, 2024 that may be closed by this pull request
Copy link
Member

@liamhuber liamhuber left a comment

Choose a reason for hiding this comment

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

I guess it should also be updated in _is_valid_job_name and the state update (Weirdly the projectpath column size is already 255 in state update?)

Since this appears in a few places, I suspect it's better to pull it out as a global pyiron_base.database.tables.JOB_COLUMN_WIDTH = 50 or similar and just use it directly. I quickly found the spots above by using my IDE to search for the magic number "50" in pyiron_base files...

@jan-janssen jan-janssen added the format_black reformat the code using the black standard label Mar 25, 2024
@jan-janssen
Copy link
Member Author

@liamhuber I updated the pull request. Can take another look? I would like to include these changes in the pyiron_base=0.8.0 release.

Copy link
Member

@liamhuber liamhuber left a comment

Choose a reason for hiding this comment

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

Nice, lgtm

@jan-janssen jan-janssen merged commit a3ee353 into main Mar 26, 2024
24 of 25 checks passed
@jan-janssen jan-janssen deleted the database_extension branch March 26, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format_black reformat the code using the black standard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pyiron database refuses names that are too long (50 chars?)
3 participants