This repository was archived by the owner on Jul 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 240
This repository was archived by the owner on Jul 28, 2024. It is now read-only.
Plugin definition discovery: local location outside of <plugin>/.versionpress #1176
Copy link
Copy link
Closed
Labels
featureNew feature. See "improvement" for updates of existing functionality.New feature. See "improvement" for updates of existing functionality.noteworthySignificant issue or PR, to be highlighted in release notesSignificant issue or PR, to be highlighted in release notesplugin supportIssues related to the main feature of 4.0, plugin support.Issues related to the main feature of 4.0, plugin support.scope: coreCore VersionPress functionality like tracking actions, creating Git commits, etc.Core VersionPress functionality like tracking actions, creating Git commits, etc.size: mEffort: a day or twoEffort: a day or two
Milestone
Description
#1036 implements a discovery method that expects plugin definition files (schema.yml, actions.yml etc.) to be located at <some-plugin>/.versionpress. There should also be an external location from where the definitions could be loaded, two initial candidates being:
wp-content/plugins/.versionpress
wp-content/vpdb/.versionpress (or some other folder name)
I like the plugins folder better because not everything in a plugin definition is tied to a DB and vpdb is very database-specific.
Inside it, it would probably just be directories for plugins so the complete example would look like:
wp-content/plugins/.versionpress
akismet/
schema.yml
actions.yml
woocommerce/
schema.yml
actions.yml
...
After this is implemented, there will be an online repo of these definitions, sort of like DefinitelyTyped for TypeScript. VersionPress will be downloading plugin definitions from that repo to this local structure. See #1243.
🏁 PR #1246
pavelevap
Metadata
Metadata
Assignees
Labels
featureNew feature. See "improvement" for updates of existing functionality.New feature. See "improvement" for updates of existing functionality.noteworthySignificant issue or PR, to be highlighted in release notesSignificant issue or PR, to be highlighted in release notesplugin supportIssues related to the main feature of 4.0, plugin support.Issues related to the main feature of 4.0, plugin support.scope: coreCore VersionPress functionality like tracking actions, creating Git commits, etc.Core VersionPress functionality like tracking actions, creating Git commits, etc.size: mEffort: a day or twoEffort: a day or two