-
Notifications
You must be signed in to change notification settings - Fork 196
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
Fixes #3281 - Convert issue page to be server rendered (part 1) #3294
Conversation
(this makes it easier to use data coming from github as well)
This also makes sure we can handle client render updates when the milestone changes.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
b68b362
to
50a751a
Compare
TODO:
|
6c0e0d6
to
2b00a2f
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cae7700
to
f5c3efa
Compare
This comment has been minimized.
This comment has been minimized.
Right now this requires us to have fixtures backing for any issues we test via unit tests. I'm not sure if that's good or bad yet.
And add some tests
Unused since ad80ecc
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.
a couple of comments. :) hope it helps.
Super encouraging, super cool to work on that. thanks @miketaylr
The server handles the initial render, but the client needs to react accordingly when things get changed.
We just bootstrap the issue model by dumping the data we already have to JSON. (In retrospect, we could have done this at the beginning and called it a day...)
binary response content we return from api calls. https://requests.readthedocs.io/en/master/user/quickstart/#binary-response-content
The nonce was random for each request, so it broke etags / caching.
Co-Authored-By: Karl Dubost <[email protected]>
7569dcd
to
2d8b30a
Compare
Heh, managed to mess things up while rebase. |
OK, apologies for the messy merge commit. r? @karlcow |
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.
a couple more code suggestions for tests.
Co-Authored-By: Karl Dubost <[email protected]>
some edits, one rebase, let's run the tests. |
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.
all green
And this is merged. |
❤️ |
Super nice work 👍 |
Right now I'm going to leave this as a draft. I decided to not tackle existing comments here just to keep things small. I'll file a follow-up on that and tackle it once this lands.