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

Improve error message when using batch inventory but missing container #2056

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

jonahkagan
Copy link
Contributor

@jonahkagan jonahkagan commented Nov 12, 2024

Fixes: #2054

Follow up to #2011 to also show a similar error message when the Container column is missing, not only when it contains an invalid value.

The previous message was just Missing required column "Container", which wasn't clear enough.

Follow up to #2011 to also show
a similar error message when the Container column is missing, not only
when it contains an invalid value.
@jonahkagan jonahkagan requested a review from kshen0 November 12, 2024 18:57
CSVValueType.TEXT,
required_column=is_counting_group_required,
),
CSVColumnType(CONTAINER, CSVValueType.TEXT, required_column=False),
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be slightly confusing to readers that we indicate the column isn't required, but later on enforce it in L158. Thoughts on allowing an error message override to be specified in the CSVColumnType? I could see it being overkill, so if you agree, maybe just add a comment here on why we mark required_column=False and enforce with special logic later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I'll add a comment!

@jonahkagan jonahkagan enabled auto-merge (squash) November 12, 2024 19:11
@jonahkagan jonahkagan merged commit b353548 into main Nov 12, 2024
5 checks passed
@jonahkagan jonahkagan deleted the jonah/improve-missing-container-error-message branch November 12, 2024 19:19
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.

Update no container message here for GA to point to the tool like shown in the second message
2 participants