Skip to content
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

ticketpool chart data inline -> AJAX #851

Merged
merged 3 commits into from
Dec 7, 2018

Conversation

buck54321
Copy link
Member

Removes inline data from the ticketpool page. Initial chart data is retrieved instead via AJAX.

There is a websocket call that retrieves the same data. I left the websocket source, though now that there is an API endpoint, there may be an argument against the duplication.

@buck54321 buck54321 mentioned this pull request Dec 3, 2018
9 tasks
@chappjc chappjc added this to the 4.0 milestone Dec 3, 2018
@buck54321 buck54321 force-pushed the ticketpool-chart-data branch from 9b6f40c to c563486 Compare December 4, 2018 21:17
Copy link
Member

@chappjc chappjc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you rebase when you get a chance?

mempool/mempoolcache.go Outdated Show resolved Hide resolved
@buck54321 buck54321 force-pushed the ticketpool-chart-data branch from c563486 to a3c0bc8 Compare December 6, 2018 23:26
@chappjc
Copy link
Member

chappjc commented Dec 7, 2018

Got some more conflicts. The one in explorerroutes.go is just because StatusPage got that extra input, but the call is gone so not really a conflict. :) The other conflicts are from your other PRs I think.

@buck54321 buck54321 force-pushed the ticketpool-chart-data branch from a3c0bc8 to 40b902c Compare December 7, 2018 02:31
@chappjc
Copy link
Member

chappjc commented Dec 7, 2018

Code looks good, and everything behaves as expected in testing. However, one thing I just noticed now is that it looks like the ticketpool controller's "wrapper" target is not used. If I'm just missing it, please let me know what it's for.

@buck54321
Copy link
Member Author

Oh yeah. I was planning on getting rid of some jQuery in favor of stimulus, but I guess I never finished. I've done that now.

I've also taken a queue from @gozart1 and switched to arrow functions where appropriate, though I left the more semantic controller variables in place.

@chappjc chappjc merged commit cb5d009 into decred:master Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants