-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Feature] Public URL/page for modders to trigger re-indexing #110
Comments
Beyond GitHub/Spacedock are there a large amount of Mods hosted elsewhere? I had envisioned a workflow that involved an OAuth flow to allow our bot to add a webhook to their repository. But I've never looked too hard at how complex that would be. |
Wow, Google found this with "ckan host pie chart" ! I can never remember which issue I posted it on: So yes, this feature idea is focused mainly on GitHub. Maybe @DasSkelett's KSP-AVC schema validation project will turn up a good way to provide this. |
I think with the status page, we could have a "login via github" similar to Jenkins. Then it could match up your mods, and you could add a "Enable webhooks". We'd need to store the shared secret somewhere and to ensure that if it leaks we're not hosed, we can have a per mod secret randomly generated and stored in dynamodb, combined with a server secret stored separately. We'd need to fix the SSL on status.ksp-ckan.space, but that's doable. |
Motivation
Some modders maintain backport releases, so users of older game versions can get the latest features. To have these indexed properly in CKAN, they have to:
Step 2 requires the modder to check manually whether the first version is indexed yet. If it isn't, all they can do is check again later. Since a bot cycle can take
3-4 hours10-20 minutes in good times and multipledayshours in bad times, this is not a good work flow.Suggestion
We have web hooks today that can trigger immediate re-indexing of a given module (mainly for SpaceDock). It would be nice if this could be made publicly accessible, so the steps could instead be:
These steps could be completed in a matter of minutes instead of unknown hours.
Front end
I imagine something like a dropdown to choose a module and a button next to it labeled "Re-index". It could be its own standalone page, it could be added to the status page, or something else.
Back end
Probably makes sense to support URLs like
Caveats
We may need some kind of throttling or security on the back end to prevent this from being used to DoS the bot, either intentionally or otherwise. For example, once it became widely known, well-meaning but clueless fans of popular mods might misuse it in the misconception that it can make their favorite mods update quicker.
The text was updated successfully, but these errors were encountered: