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 issue with using launching the add track widget on views that are not displaying any regions #1679

Merged
merged 4 commits into from
Feb 9, 2021

Conversation

teresam856
Copy link
Contributor

Alternative Proposal to pull request 1676 to fix bug 1674
Jbrowse web currently crashes when we click File -> Open Track while an import form is being rendered due to

This PR

  • Adds error handling when retrieving assemblyName from displayedRegions in the addTrackWidget model.ts. Not all views have displayedRegions @ session.views[0] (e.g synteny which has them @ session.views[0].views) which causes 'TypeError: Cannot read property 'assemblyName' of undefined'. DisplayedRegions can also be undefined when opening a view (import form) but displayedRegions are still yet to be defined which will throw the same error.

  • Small test in CircularView. Tests being able to click Open Track from circular view set up wizard without crashing Jbrowse web.

@github-actions github-actions bot added the needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) label Feb 9, 2021
@teresam856 teresam856 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 Feb 9, 2021
@teresam856 teresam856 self-assigned this Feb 9, 2021
@codecov
Copy link

codecov bot commented Feb 9, 2021

Codecov Report

Merging #1679 (196df8a) into master (0211963) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1679      +/-   ##
==========================================
+ Coverage   58.89%   58.93%   +0.03%     
==========================================
  Files         446      446              
  Lines       20424    20427       +3     
  Branches     4803     4806       +3     
==========================================
+ Hits        12029    12038       +9     
+ Misses       8098     8092       -6     
  Partials      297      297              
Impacted Files Coverage Δ
...lugins/data-management/src/AddTrackWidget/model.ts 29.03% <100.00%> (+3.60%) ⬆️
plugins/data-management/src/index.ts 80.76% <0.00%> (+23.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0211963...196df8a. Read the comment docs.

@cmdcolin cmdcolin merged commit 08d75d3 into master Feb 9, 2021
@cmdcolin cmdcolin changed the title 1674 open track bug alt Fix issue with using launching the add track widget on views that are not displaying any regions Feb 9, 2021
@cmdcolin cmdcolin deleted the 1674_open_track_bug_alt branch February 9, 2021 23:36
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.

2 participants