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

fix: Excel API exception handling. #4627

Merged
merged 3 commits into from
Jan 23, 2025
Merged

Conversation

harmbrugge
Copy link
Member

What are the main changes you did

  • Changed the excel api code so that error messages in the excel api are properly handled.
  • Added a more explicit error message in the XlsTableStore when writing values to excel cells.

How to test

  • Go to the preview server and try to download the catalogue schema using the xls api
  • See the error message.

Checklist

  • updated docs in case of new feature
  • added/updated tests
  • added/updated testplan to include a test for this fix, including ref to bug using # notation

@harmbrugge harmbrugge self-assigned this Jan 22, 2025
@harmbrugge harmbrugge linked an issue Jan 22, 2025 that may be closed by this pull request
Copy link
Contributor

@hslh hslh left a comment

Choose a reason for hiding this comment

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

Exporting all data gets the expected error message, but exporting a single table still gets me a blank page: https://preview-emx2-pr-4627.dev.molgenis.org/catalogue-demo/api/excel/Resources

@harmbrugge harmbrugge requested a review from hslh January 22, 2025 14:43
Copy link
Contributor

@dtroelofsprins dtroelofsprins left a comment

Choose a reason for hiding this comment

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

This is really much better!

@harmbrugge harmbrugge merged commit ab7be0c into master Jan 23, 2025
7 checks passed
@harmbrugge harmbrugge deleted the fix/excel-api-error-message branch January 23, 2025 11:27
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.

Exporting data as Excel not working
3 participants