Codeforces / polygon-issue-tracking

polygon-issue-tracking
16 stars 2 forks source link

Polygon API, new external method #416

Closed niyaznigmatullin closed 4 years ago

niyaznigmatullin commented 4 years ago

As by the documentation, there is only one method in API that can return Problem object for any problem, it is problems.list (contest.problems returns only for the problems within the contest).

problems.list loads an information about all the problems you have an access to, and this is very slow. I think one of the reasons is that the return value for this method is very large. Please, introduce another method, some options are:

  1. get the problem by it's numeric id
  2. get all problems by it's shortname
  3. get the problem by it's shortname and an owner

It could be one method that supports problem filtering by different criteria. May be problems.list can take id, name, and/or owner as arguments.

niyaznigmatullin commented 4 years ago

Seems working, closing the issue, thanks!