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 and status messages when uploading tables #31

Closed
chrwm opened this issue Nov 24, 2022 · 2 comments · Fixed by #38
Closed

Improve error and status messages when uploading tables #31

chrwm opened this issue Nov 24, 2022 · 2 comments · Fixed by #38
Assignees
Labels
enhancement New feature or request

Comments

@chrwm
Copy link
Member

chrwm commented Nov 24, 2022

Uploading tables with oem2orm, e.g. using the script from the tutorial section, is not user-friendly due a lack of helpful error messages.

  • Inform the user which table is processed. Currently, when the table creation fails and throws a bad/unspecific error message, it is not clear which table is the reason (in case of uploading a bulk of tables)
  • Improve the error messages when violating the postgresql naming conventions for column headers and resources-name. Relates to Column header naming convention is not checked #16 (comment)
@chrwm chrwm added the enhancement New feature or request label Nov 24, 2022
@chrwm chrwm self-assigned this Nov 24, 2022
@jh-RLI
Copy link
Collaborator

jh-RLI commented Nov 28, 2022

FYI @chrwm you want to have a look at the error massages, they are implemented in this function. There are multiple APIErrors raised that return the error string.

chrwm added a commit that referenced this issue Dec 5, 2022
chrwm added a commit that referenced this issue Dec 5, 2022
chrwm added a commit that referenced this issue Dec 13, 2022
I don't see why logging shouldn't be the default. Non-developers will appreciate it to see what is going on in the programme, and so will developers in doubt when debugging. If devs want to deactivate logging they can set the parameter to `No`. This appears more functional than inputting this information or writing a custom workaround to avoid user-input with each execution.
chrwm added a commit that referenced this issue Jan 4, 2023
@chrwm
Copy link
Member Author

chrwm commented Jan 4, 2023

APIError messages have been improved in OpenEnergyPlatform/oeplatform#1139

chrwm added a commit that referenced this issue Jan 4, 2023
chrwm added a commit that referenced this issue Jan 5, 2023
@chrwm chrwm closed this as completed in #38 Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants