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 error handling of feature detail formatter jexl callbacks #3642

Merged
merged 2 commits into from
Apr 13, 2023

Conversation

cmdcolin
Copy link
Collaborator

This discussion (#3640) showed me that the feature detail panel can present with a blank panel if an error occurs in a user's jexl callbacks for example. This PR adds a try/catch that now presents the user with an error if the jexl callback fails

@github-actions github-actions bot added the needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) label Apr 12, 2023
@cmdcolin cmdcolin added bug Something isn't working and removed needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) labels Apr 12, 2023
@cmdcolin cmdcolin force-pushed the error_catch_basefeaturedetail branch from 299661b to cdf350f Compare April 13, 2023 05:19
@cmdcolin cmdcolin force-pushed the error_catch_basefeaturedetail branch from cdf350f to 229d0ea Compare April 13, 2023 05:22
@codecov
Copy link

codecov bot commented Apr 13, 2023

Codecov Report

Merging #3642 (6a4157e) into main (0e8bff2) will decrease coverage by 0.01%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##             main    #3642      +/-   ##
==========================================
- Coverage   63.08%   63.08%   -0.01%     
==========================================
  Files         876      876              
  Lines       30173    30182       +9     
  Branches     7276     7278       +2     
==========================================
+ Hits        19035    19039       +4     
- Misses      10953    10958       +5     
  Partials      185      185              
Impacted Files Coverage Δ
products/jbrowse-web/src/tests/util.tsx 98.85% <ø> (ø)
...kages/core/BaseFeatureWidget/BaseFeatureDetail.tsx 73.62% <66.66%> (-0.27%) ⬇️
packages/core/BaseFeatureWidget/index.ts 80.76% <73.68%> (-6.19%) ⬇️
...aseLinearDisplay/models/serverSideRenderedBlock.ts 95.31% <100.00%> (+0.03%) ⬆️

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cmdcolin cmdcolin merged commit 0aceeb1 into main Apr 13, 2023
@cmdcolin cmdcolin deleted the error_catch_basefeaturedetail branch April 13, 2023 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant