-
Notifications
You must be signed in to change notification settings - Fork 3
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
Switch to a custom Github-Api module #34
Comments
Makes sense, glad we tried the github module, shame it isn't well supported |
Latest issue... |
The new github module will focus on tree updates, and only support the github api functions that we use on a regular basis. Considering names for a new repo. |
Any updates on this? |
@carterm - I have a couple of questions: I've handled a similar issue before, and introduced a fetch timeout (on our end). Q: can you share the lines of code you are proposing to replace (so we can all see them?) I know you were just asking about what to name the module. It's helpful to see the code. Not sure it needs to be a module yet. |
This would be a replacement for all references to |
Ah. |
This would incorporate all the features in the current |
(context: Carter is asking us in Slack about what to name a module.) https://github.com/github-tools/github - "provides a minimal higher-level wrapper around Github's API." So you are talking about parsing data from the github-api for this module for wordpress-to-github. To name it, I would look through the code you wrote, & share with us a bullet pointed list of the main features that are going to go into this new module. Then we can name it better. For example:
What else? |
|
Take a list of content -> compare content to GitHub -> make updates where needed -> list what was changed |
Great - so trying to come up with some names for the features you have described: (brainstorming)
PR's are an important part of this right? |
PRs are an option, but the main thing is synchronizing files. It could just be a commit. |
I'm assuming the source is an API. It definitely is for what we are doing & that might be okay as a specialty. Does this include the media handling, or can that be a wordpress specific add on that's part of this repo? |
API seems overused. Everything uses an API. All types of files, binaries too. |
It's also for pushing content syncs into GitHub, not for syncing a file system download like a pull would do. |
If the interface is an api, it's okay to overuse it - if it's designed to work with APIs. (Which, as you saw in my presentation, is overused but not understood - also "content APIs" is underutilized and we might use that term more if it's more clear to people we are working with - and that's one of our most important features. More questions:
|
|
We had a custom GitHub connector before using the NPM module. Here is the last version... |
Another thought question: What are the inputs/interfaces to this module - a bunch of arrays? I found this:
And this interface:
This is helpful |
More terrible options More brainstorming:
More use cases to think about:
|
One important key component is that all the updates will be performed using Git I'm not a fan of putting This is CMS agnostic. Downloading content from the CMS (custom data API or not) is outside of the scope of this module. My favorites from your list...
I'm thinking for keywords, for 3rd parties looking to use this,
|
Going to start creating the repo with |
Work has moved to new repo... |
New module deployed! |
The github-api module is causing many exceptions related to "Cannot read property 'status' of undefined" when there is a fetch issue. Now that we are using tree updates only it would be easy to switch back to a custom module that doesn't need all the other github-api features.
This would incorporate all the features in the current
gitTreeCommon
module, that is used by multiple projects.New module features
@cagov\github-sync
?For custom REST examples, use our old GitHub API connector here
The text was updated successfully, but these errors were encountered: