Fetching submissions #14
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
maleszka/wbij#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We should maintain a list (cached on disk) of all user's submissions:
(submitid, ContestNode.Ref, time, score, status, isfinal).Having a complete list will allow us to:
wbij statsPlatformAPI for downloading submissions should meet the following requirements:
I would suggest the following endpoints:
I believe these endpoints can be easily implemented for all competitive programming platforms; and they allow us to meet all the requirements, so I think this is a good design for now.
Actually, I think the following endpoint would be better:
The previous definition had this flaw that many platforms split submissions list across multiple pages, so PlatformAPI needs to know, on which page to look at in order to download specific time range. The presented solution solves this problem, although we may consider adding a
std.progress.Node, cause the new definition can result in multiple queries now.One of the motives behind the previous design was that it allowed to easily implement this idea of "get me one page of latest submissions". But that's more related to the question "how to update submissions list?" And that's a question that needs a separate consideration.