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

Resolve plug-in assets via logical paths #1137

Merged
merged 10 commits into from
Jan 24, 2019
Merged

Conversation

nikku
Copy link
Member

@nikku nikku commented Jan 23, 2019

This PR builds upon #1136 and adds the ability to resolve plug-in assets via logical names.

Closes #1135

@nikku nikku requested a review from barmac January 23, 2019 22:38
@ghost ghost assigned nikku Jan 23, 2019
@ghost ghost added the needs review Review pending label Jan 23, 2019
@nikku
Copy link
Member Author

nikku commented Jan 23, 2019

Test case attached via 03b5607:

screely-1548283372181

@nikku nikku force-pushed the 1135-logical-plugin-paths branch 2 times, most recently from 469a124 to e889f2c Compare January 24, 2019 09:03
* ensure we don't fail if individual plug-in fails to load
* add detailed logging of what is going on
* enforce presence and uniqueness of plug-in names
* store plug-ins in map (rather than array), by name
Resolve plug-in assets requested via a logical name

  app-plugins://${name}${assetPath}

using the appropriate actual plug-in base.

Closes #1135
@ghost ghost assigned barmac Jan 24, 2019
@barmac
Copy link
Collaborator

barmac commented Jan 24, 2019

Rebased on master.

Previously, registration test would depend on the plugins
fixtures directory. This would make it break whenever a valid
plugin is added to the directory.
Parsing the asset path is moved to plugins module. The mechanism
remains the same, but it's easier to test it now.
Previously, cat image would be present even in distro builds.
@barmac
Copy link
Collaborator

barmac commented Jan 24, 2019

I moved the cat to a plugin. It should replace the loading logo as soon as client plugins implementation is ready.

Copy link
Collaborator

@barmac barmac left a comment

Choose a reason for hiding this comment

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

😹

@barmac barmac merged commit 40c97ec into master Jan 24, 2019
@delete-merged-branch delete-merged-branch bot deleted the 1135-logical-plugin-paths branch January 24, 2019 13:58
@ghost ghost removed the needs review Review pending label Jan 24, 2019
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.

Plugins stored in userData directory can't access static resources
2 participants