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

feat(excel2json): new user error (InputError) implementation in properties section (DEV-3037) #654

Merged

Conversation

Nora-Olivia-Ammann
Copy link
Collaborator

No description provided.

@Nora-Olivia-Ammann Nora-Olivia-Ammann self-assigned this Nov 27, 2023
Copy link

linear bot commented Nov 27, 2023

DEV-3024 new Error implementation

The way UserErrors are raised and communicated is inconsistent. With this new protocol the information for the user should be more pertinent and simpler to understand.

It is tried out on the excel2json part of the code.

@Nora-Olivia-Ammann Nora-Olivia-Ammann changed the title feat(excel2json): new user error (InputError) implementation (DEV-3037) feat(excel2json): new user error (InputError) implementation in properties section (DEV-3037) Nov 29, 2023
Copy link
Collaborator

@BalduinLandolt BalduinLandolt left a comment

Choose a reason for hiding this comment

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

I think this is a huge improvement. I didn't do the most thorough review, but I added some comments with thoughts on further improvements (and cosmetics). But I definitely feel we're on the right track here, with this error handling. And further refinements can always be done later on.

src/dsp_tools/commands/excel2json/properties.py Outdated Show resolved Hide resolved
src/dsp_tools/commands/excel2json/properties.py Outdated Show resolved Hide resolved
src/dsp_tools/models/exceptions.py Outdated Show resolved Hide resolved
src/dsp_tools/models/exceptions.py Outdated Show resolved Hide resolved
src/dsp_tools/models/input_error.py Outdated Show resolved Hide resolved
src/dsp_tools/models/input_error.py Outdated Show resolved Hide resolved
src/dsp_tools/models/input_error.py Outdated Show resolved Hide resolved
test/unittests/commands/excel2json/test_properties.py Outdated Show resolved Hide resolved
src/dsp_tools/commands/excel2json/properties.py Outdated Show resolved Hide resolved
src/dsp_tools/commands/excel2json/properties.py Outdated Show resolved Hide resolved
src/dsp_tools/commands/excel2json/properties.py Outdated Show resolved Hide resolved
src/dsp_tools/models/input_error.py Outdated Show resolved Hide resolved
src/dsp_tools/commands/excel2json/properties.py Outdated Show resolved Hide resolved
src/dsp_tools/commands/excel2json/properties.py Outdated Show resolved Hide resolved
src/dsp_tools/models/exceptions.py Outdated Show resolved Hide resolved
src/dsp_tools/models/exceptions.py Outdated Show resolved Hide resolved
@Nora-Olivia-Ammann Nora-Olivia-Ammann merged commit b1703e1 into main Dec 1, 2023
9 checks passed
@Nora-Olivia-Ammann Nora-Olivia-Ammann deleted the wip/dev-3024-excel2json-new-error-implementation branch December 1, 2023 08:19
@daschbot daschbot mentioned this pull request Nov 30, 2023
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.

None yet

3 participants