Skip to content

fix: add user feedback message for unsupported file type - #142

Merged
stevenhsd merged 3 commits into
release_v010from
bugfix/gr-ndit-1525-raise_user_feedback_message_on_invalid_filetype
Sep 15, 2026
Merged

stevenhsd merged 3 commits into
release_v010from
bugfix/gr-ndit-1525-raise_user_feedback_message_on_invalid_filetype

Conversation

@georgeRobertson

Copy link
Copy Markdown
Contributor

TLDR of changes

Raise a user feedback message rather than error when a user submits a file with an unsupported file type.

What kind of changes does this PR introduce?

Tick all that apply

  • fix: A bug fix. Correlates with PATCH in SemVer
  • feat: A new feature. Correlates with MINOR in SemVer
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • refactor: A code change that neither fixes a bug nor adds a feature
  • perf: A code change that improves performance
  • test: Adding missing or correcting existing tests
  • build: Changes that affect the build system or external dependencies (example scopes: pip, docker, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: GitLabCI)

Please check if the PR fulfills these requirements

  • I have read and followed the Contributing guidance
  • Docs have been added / updated
  • Tests and Linting in the CI are passing
  • Changes have been reviewed and approved by a Project Maintainer

@georgeRobertson
georgeRobertson marked this pull request as ready for review August 19, 2026 17:20
@georgeRobertson
georgeRobertson changed the base branch from main to release_v091 August 19, 2026 17:21
Comment thread src/dve/pipeline/utils.py Outdated
except KeyError as exc:
if file_extension:
err_msg = (
f"The supplied file extension `{file_extension if file_extension else None}`"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

already doing if check in line 64

Comment thread src/dve/pipeline/utils.py
Comment thread src/dve/pipeline/pipeline.py
@georgeRobertson
georgeRobertson changed the base branch from release_v091 to release_v010 August 20, 2026 09:50
…idation-engine into bugfix/gr-ndit-1525-raise_user_feedback_message_on_invalid_filetype
also moved READER_CONFIG out of the try except block as it's setup error of the DVE rather than user/submitter error.
@sonarqubecloud

Copy link
Copy Markdown

@stevenhsd
stevenhsd merged commit 516e5e4 into release_v010 Sep 15, 2026
4 checks passed
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