-
-
Notifications
You must be signed in to change notification settings - Fork 51
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: make issues and github stuff work outside of CYF #773
Conversation
MCB need some liberty next I need to either solve pagination or hassle Daniel to make them a proxy...
and yes it works as expected
point to MCB NOTE: the site will not build until all these repos exist, see Migracode-Barcelona/Table-of-Contents#1
is it can be?
they don't know where their SVG is so I just faked it up on photopea
❌ Deploy Preview for cyf-curriculum failed. Why did it fail? →
|
❌ Deploy Preview for cyf-programming failed. Why did it fail? →
|
✅ Deploy Preview for cyf-guides canceled.
|
❌ Deploy Preview for cyf-sdc failed. Why did it fail? →
|
[params] | ||
# Don't use the paginating proxy, because it's slow. | ||
# This means some issues will be missing when fetched. | ||
issuesorgapi = "https://api.github.com/repos/Migracode-Barcelona/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can probably rm all this, though I did like just skipping pagination on local
I gott a test this a lot more, but of course am getting rate limited. Another strong argument for no crawling on dev! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM except I'm not sure the pagination check is a reliable one - I'm pretty sure I saw partial responses still have nexts (probably because e.g. GitHub treats PRs as issues and maybe filters after it paginates or something)
getJSON is deprecated and GetRemote will soon have a way of getting more headers information, allowing us to replace the functionality of Daniel's proxy
no, no idea, I just obey at this point
…ure/mcb-point-to-new-org
why did I leave that in there??
I guess we need to pass the whole api so it works for MCB
we do want it to fail but not THIS much
…)" This reverts commit 4e1ae71.
What does this change?
We had limited this to CYF's org because it felt like dangerous madness not to. But actually MCB need their own repos so I've removed the limit.
This reminded me of the problem with paginated issues when trainees start PRing to coursework repos -- the coursework gets pushed off page 1.
So I think I've paginated now? I need to test a bit more, hence draft PR
Common Theme?
This changes the way issues are pulled from github for everyone, which is why this PR is draft until I've tested a bit more.
it affects mainly
issues.html
fetch-paginated-issues.html <= new partial called recursively
The other changes are config changes to remove the old settings.
Note: this won't build! that's because MCB need to create all these repos or remove the links to them.
That's happening on this ticket Migracode-Barcelona/Table-of-Contents#1
On my local copy of MCB, I have just deleted all content except JS1, as I have created that test module to build this stuff.
Org Content?
I also made a logo just because it was bugging me a lot to look at
Checklist
Who needs to know about this?