-
Notifications
You must be signed in to change notification settings - Fork 203
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 #3295 - Fetch and render existing issue comments as HTML #3308
Conversation
cf63e11
to
e9533e3
Compare
So I decided to just do away with the CommentsView and Collection and Model, etc. Instead we'll go old-school, and after doing an XHR post for new comments, we just append the HTML the server sends back to us. The cool thing about this is it means we no longer need the Markdown client stuff, so we can delete a ton of code here. |
c482f91
to
ced813d
Compare
9b7f9dc
to
55535e2
Compare
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.
yoohoo. Wunderbar. Thanks @miketaylr for working on this. we are approaching a better system.
Or at least, the first 100. Future work will make sure we get all of it.
We can get rid of the clientside handling of all of this now.
This file will be returned when POSTing a new comment in test mode, so our existing functional tests can pass. When doing a GET, it will serve /tests/fixtures/api/issues/100/comments.38e6a9ddcea3ef150105b48bcd1c18f3.json because it has a ?per_page=100 param.
Now we rely on everything coming back from GitHub before rendering, so there's no more need for this.
f4fccb0
to
c9c81eb
Compare
Co-authored-by: Karl Dubost <[email protected]>
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.
thanks @miketaylr 🦞 Let's 🎈
yay! @ksy36 ok, you can rebase your form-v2 branch, promise i won't touch build configs for a while ^__^ |
sounds good, thanks! |
TODO:
get_response_headers