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
Integrate GitHub TukuToi Repos #4
Comments
Mentioned this to CP Plugin Review team. For now, I am stalling this development in hope we can list plugins on the CP dire without all the fuss and getting clear ownership of our code (yes, it is OSS, but it is also ours and not the CP initiative or else to decide whether it gets deleted from the directory - up and until now clearly requests from developer to delete their plugins have not been respected, instead they have only been unlisted) If we get:
|
Consider using the GH API that provides the latest zip This can used to get the latest release zip. |
Excellent hint, thank you. I have tried that URL with my own org, but did not get results. |
Never-mind, I am too dumb This is probably even better than the Dir API |
This works just as well. |
Cool I see their API doc includes a |
No auth is needed. I am using this in the plugin https://GitHub.com/bahiirwa/latest-GitHub-release |
This is implemented - currently only for TukuToi ORG plugins. This needs more testing (been a long day) and I discovered I cannot delete (my own) plugins that have strict nonce control un uninstall when attempting to delete through the Integration plugin (because it uses different nonce keys) I have to fix that in the integration, as other plugins (built on my own boilerplate) will run into the same issue. The integration itself is done. It should also allow in future to provide a setting to pull basically any plugins from Github as long they are tagged with I have to stop fro today and go at it tomorrow fresh again. It should already allow to pull in TukuToi Github plugins even if not listed on the dir. |
OK, retested, fixed a bunch of things and made it all a bit more abstract. @bahiirwa - this version will of course not show itself on the current installs that have the plugin at version 1.1.4 or lower. The Code is relatively easy to adapt for any other repo too, but that is not yet supported. It will need a settings screen, which I plan in a version 1.3 I will ask Elisabetta as well if she can help me test this new 1.2 release (because I had to change a bunch of stuff I did wrong in the first place, there's risk I broke something) |
Testing instructions: If you have ClassicPress Plugin Directory version 1.1.4 or lower installed
If you do not have ClassicPress Plugin Directory installed yet
If reporting issues, it would be best to keep it short, precise so I can fix quickly. |
This works well. Great job. Need to add a condition to redirect to the |
Probably better to just disable all "Deactivate" and "Delete" buttons on that specific plugin. After all, one also cannot deactivate or deleted CP core while inside CP Core, and this is similar: the plugin acts like a core component. Thanks for the heads up. |
This has been fixed as well in same 1.2 branch. I am just doing a JS check if the plugin is the "core" one, if the user attempts to deactivate (or delete, however he'll never be able to reach he delete button actually) then a notice is presented and an error |
Pushed another fix to throw an appropriate notice when CP Dir API locks the IP due to too many requests. |
Pushed more improvements to handle errors in a nicer way. |
This is released in #5 |
Currently this plugin allows only to get plugins from the CP Directory API.
Since the directory (or its owners) claim some sort of undocumented ownership over code, and requires too much manual work to maintain for a developer, and requires a forum account a developer might not want to partake in, at least TukuToi Plugins should be possible to be pulled directly from GitHub.
It should be relatively easy by listing to a new plugin header tag or similar.
The text was updated successfully, but these errors were encountered: