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

Add list of loaded plugins to the "About widget" #1728

Merged
merged 9 commits into from
Feb 23, 2021

Conversation

rbuels
Copy link
Contributor

@rbuels rbuels commented Feb 23, 2021

Slightly tweaked approach to #1715. Instead of making the plugin manager know that some plugins are "core" and others are not, adds a more general plugin metadata area (optional) that can hold anything, and has the about widget and the jbrowse-web loader set an isCore boolean in that.

cmdcolin and others added 4 commits February 18, 2021 11:09
added pluginManager.pluginMetaData that can be used to hold
metadata about plugins and why and from where they were loaded.
currently just holds `isCore: boolean`.
@rbuels rbuels added the enhancement New feature or request label Feb 23, 2021
@rbuels rbuels requested a review from cmdcolin February 23, 2021 00:47
@cmdcolin cmdcolin force-pushed the about_dialog_plugin_list_rmb branch from f6fbfe0 to 3621e0c Compare February 23, 2021 01:55
@cmdcolin
Copy link
Collaborator

This is fine with me, my approach was pretty silly and I like the more generic thing here. It's a little bit unclear what other kinds of metadata can be used but just having it like this feels a bit more sane

To think of an analogy in executables, this is kind of like listing dynamically loaded libraries vs statically loaded ones...kind of a useful analogy when referring to runtime plugins in general probably

@cmdcolin
Copy link
Collaborator

I added ability to link to an external link automatically if the plugin supplies it via a Plugin class attribute "url" (version from the plugin class can also be obtained this way)

@codecov
Copy link

codecov bot commented Feb 23, 2021

Codecov Report

Merging #1728 (29b1f22) into master (73bdb44) will increase coverage by 0.05%.
The diff coverage is 97.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1728      +/-   ##
==========================================
+ Coverage   58.84%   58.90%   +0.05%     
==========================================
  Files         449      449              
  Lines       20777    20804      +27     
  Branches     4923     4930       +7     
==========================================
+ Hits        12227    12255      +28     
+ Misses       8243     8242       -1     
  Partials      307      307              
Impacted Files Coverage Δ
products/jbrowse-web/src/Loader.tsx 64.22% <85.71%> (+0.03%) ⬆️
packages/core/PluginManager.ts 94.20% <100.00%> (+0.08%) ⬆️
...s/menus/src/AboutWidget/components/AboutWidget.tsx 100.00% <100.00%> (ø)
packages/core/util/index.ts 82.20% <0.00%> (-0.33%) ⬇️
...ins/wiggle/src/LinearWiggleDisplay/models/model.ts 72.63% <0.00%> (+0.52%) ⬆️
...inearGenomeView/components/RefNameAutocomplete.tsx 93.61% <0.00%> (+4.25%) ⬆️

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 73bdb44...3621e0c. Read the comment docs.

@cmdcolin cmdcolin merged commit f2ad147 into master Feb 23, 2021
@cmdcolin cmdcolin deleted the about_dialog_plugin_list_rmb branch February 23, 2021 03:36
@rbuels
Copy link
Contributor Author

rbuels commented Feb 23, 2021

i figure down the road we might possibly use this mechanism to track "why" we have a plugin loaded, if we do inter-plugin dependencies, or if the plugin was loaded from a session

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 this pull request may close these issues.

2 participants