The SIO2 project
  1. The SIO2 project
  2. SIO-2396

API: Allow finding a problem by contest_id and short_name

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Current Version
    • Fix Version/s: None
    • Component/s: OIOIOI
    • Labels:
      None

      Description

      Contest id and problem short name already uniquely identify a problem instance, so they could be used to find it, and the problem.

      It would be nice to have an API that allows obtaining problem_id (and possibly problem_instance_id) by providing contest id and problem short name.
      The problem_id would be very useful for reuploading a package from a CI, which does not necessarily know it beforehend, but does have access the contest id and short name in the package source.

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          New New Open Open
          160d 4h 16m 1 Szymon Czyżmański 2021-05-25 14:38
          Open Open In Progress In Progress
          7s 1 Szymon Czyżmański 2021-05-25 14:38
          In Progress In Progress Resolved Resolved
          29d 21h 6m 1 Szymon Czyżmański 2021-06-24 11:45
          Szymon Czyżmański made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Gerrit Gerrit added a comment -
          Change oioioi~master~Icd4beca8f3668e6a69ee29b1a2e5036293328221, patchset 2
          https://gerrit.sio2project.mimuw.edu.pl/3749

          (SIO-2396) API: Allow finding a problem by contest_id and short_name

          Contest id and problem short name already uniquely identify a problem
          instance, so they could be used to find it, and the problem.
          It would be nice to have an API that allows obtaining problem_id
          (and possibly problem_instance_id) by providing contest id and problem
          short name. The problem_id would be very useful for reuploading a package
          from a CI, which does not necessarily know it beforehend, but does have
          access the contest id and short name in the package source.

          *Add an API endpoint for finding problem_id and problem_instance_id
           based on contest_id and problem_short_name.
          *Refactor old code.
          *Add tests.

          Change-Id: Icd4beca8f3668e6a69ee29b1a2e5036293328221
          Show
          Gerrit Gerrit added a comment - Change oioioi~master~Icd4beca8f3668e6a69ee29b1a2e5036293328221, patchset 2 https://gerrit.sio2project.mimuw.edu.pl/3749 ( SIO-2396 ) API: Allow finding a problem by contest_id and short_name Contest id and problem short name already uniquely identify a problem instance, so they could be used to find it, and the problem. It would be nice to have an API that allows obtaining problem_id (and possibly problem_instance_id) by providing contest id and problem short name. The problem_id would be very useful for reuploading a package from a CI, which does not necessarily know it beforehend, but does have access the contest id and short name in the package source. *Add an API endpoint for finding problem_id and problem_instance_id  based on contest_id and problem_short_name. *Refactor old code. *Add tests. Change-Id: Icd4beca8f3668e6a69ee29b1a2e5036293328221
          Hide
          Gerrit Gerrit added a comment -
          Change oioioi~master~Icd4beca8f3668e6a69ee29b1a2e5036293328221, patchset 1
          https://gerrit.sio2project.mimuw.edu.pl/3749

          (SIO-2396) API: Allow finding a problem by contest_id and short_name

          Contest id and problem short name already uniquely identify a problem
          instance, so they could be used to find it, and the problem.
          It would be nice to have an API that allows obtaining problem_id
          (and possibly problem_instance_id) by providing contest id and problem
          short name. The problem_id would be very useful for reuploading a package
          from a CI, which does not necessarily know it beforehend, but does have
          access the contest id and short name in the package source.

          *Add an API endpoint for finding problem_id and problem_instance_id
           based on contest_id and problem_short_name.
          *Refactor old code.
          *Add tests.

          Change-Id: Icd4beca8f3668e6a69ee29b1a2e5036293328221
          Show
          Gerrit Gerrit added a comment - Change oioioi~master~Icd4beca8f3668e6a69ee29b1a2e5036293328221, patchset 1 https://gerrit.sio2project.mimuw.edu.pl/3749 ( SIO-2396 ) API: Allow finding a problem by contest_id and short_name Contest id and problem short name already uniquely identify a problem instance, so they could be used to find it, and the problem. It would be nice to have an API that allows obtaining problem_id (and possibly problem_instance_id) by providing contest id and problem short name. The problem_id would be very useful for reuploading a package from a CI, which does not necessarily know it beforehend, but does have access the contest id and short name in the package source. *Add an API endpoint for finding problem_id and problem_instance_id  based on contest_id and problem_short_name. *Refactor old code. *Add tests. Change-Id: Icd4beca8f3668e6a69ee29b1a2e5036293328221
          Szymon Czyżmański made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Szymon Czyżmański made changes -
          Status New [ 10000 ] Open [ 1 ]
          Szymon Czyżmański made changes -
          Assignee Szymon Czyżmański [ czyzmanski ]
          Wojciech Dubiel made changes -
          Field Original Value New Value
          Link This issue relates to SIO-2394 [ SIO-2394 ]

            People

            • Assignee:
              Wojciech Dubiel
              Reporter:
              Wojciech Dubiel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: