-
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
add compete data to teaminfo #558
base: main
Are you sure you want to change the base?
Conversation
Rank and PerfCard wouldn't be ready, cuz backend doesn't exist yet for that :// Backend doesn't (yet) expose rank, totals wins, or total losses. We should work on that first! (You could, thought you'd have to set up first...) So in all, if you could get backend set up, then maybe work on the backend side first? Otherwise just hold off on this and find another cool frontend issue :// |
I believe we'd previously decided that total wins and total losses should be computed on frontend based on team history (similar to what's already being done, but adapted to the new endpoint) in which case backend should be already ready. But perhaps that decision has changed recently? @j-mao any input? |
idts? after some trial, we decided to just put this on backend. pagination
is annoying and sending all data is too big
…On Sun, Jan 15, 2023 at 3:19 PM Gaurav Arya ***@***.***> wrote:
I believe we'd previously decided that total wins and total losses should
be computed on frontend based on team history, in which case backend should
be already ready. @j-mao <https://github.com/j-mao> any input?
—
Reply to this email directly, view it on GitHub
<#558 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADK4FJDNKISLMZNSNCKY4U3WSSAYTANCNFSM6AAAAAAT4ACVOQ>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
1485f0d
to
6faed96
Compare
6faed96
to
48d62e2
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.
looks great; just a few small changes. but base of code is good
95cb175
to
d3c809a
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.
Why the new route in urls?
detail=False, | ||
methods=["post"], | ||
serializer_class=None, | ||
permission_classes=(IsAuthenticated, IsEpisodeAvailable), |
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.
I might suggest removing IsAuthenticated, to allow this to be viewable by the public
|
||
@action( | ||
detail=False, | ||
methods=["post"], |
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.
This should probably be get
, since it’s a non mutator.
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.
You need detail = True to get pk
draft: My staging is messed up so Ihave not tested. Because I cant test, I'm not refactoring the api file, more focused on functionality for the deadline. This pr changes teaminfo, just from comments. Should I add win-loss to the teamcard component?