Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

[$60] - Complete Appeals button should turn into Resume Appeals when the appeals are completed #1013

Open
birdofpreyru opened this issue Feb 16, 2017 · 5 comments

Comments

@birdofpreyru
Copy link
Collaborator

The Complete Appeals button (recently added to the Dashboard #958) should turn into Resume Appeals once the user has completed has appeals (but the appeals phase is not over, because other competitors have not completed their appeals yet).

@gets0ul
Copy link
Contributor

gets0ul commented Feb 16, 2017

How to test it? Any idea?

@birdofpreyru
Copy link
Collaborator Author

Sorry, no good idea, beside waiting for a challenge of you to go into the describe situation.

Also, you may check this https://github.com/appirio-tech/tc-common-tutorials I believe, it there are instructions how to deploy Direct locally and then test everything related to the challenge flow locally, but I have not tried myself recently.

Most probably, some days later I'll be able to setup a test challenge with this situation in dev version of TC, but at the moment I am having problems with starting challenges there.

@gets0ul
Copy link
Contributor

gets0ul commented Feb 16, 2017

Seems more work on setup rather than fixing the actual problem.

@birdofpreyru
Copy link
Collaborator Author

Yeap, but once you manage to set it up you'll be able effectively work on other issues which demand manipulations with challenge phases for testing.

@birdofpreyru
Copy link
Collaborator Author

Update

  1. Here is the test challenge (at dev site): https://www.topcoder-dev.com/challenge-details/30050691/?type=develop&noncache=true. Test user dan_developer has submitted to that challenge, and the challenge is currently in Appeals phase.
  2. It seems, there is no API to test whether a user has completed his appeals or not (if you find one, it will be great!). We still need a service method to find it out. My suggestion is to implement such method like:
    1. It loads the page from the Complete Appeals confirmation screen (which is something like https://software.topcoder-dev.com/review/actions/EarlyAppeals?pid=30050691). Depending on whether user has completed his appeals or not, this page will ask for confirmation to re-open or to complete appeals.
    2. Match the content of that confirmation page against some regular expression to find out appeals status for the user.
    3. Return the result.
  3. Such service method should be added both into the code in topcoder-app (into challenge service), and in the tc-site repo (challenge details service).
  4. State of the Appeals for this user should be loaded into controllers of the Dashboard (topcoder-app repo) and challenge details page (in tc-site repo).
  5. In both cases this data should be used to properly render either Complete Appeals or Resume Appeals buttons.

@birdofpreyru birdofpreyru changed the title [$10] - Complete Appeals button should turn into Resume Appeals when the appeals are completed [$60] - Complete Appeals button should turn into Resume Appeals when the appeals are completed Mar 12, 2017
@Savvas-cl Savvas-cl self-assigned this Mar 14, 2017
@Savvas-cl Savvas-cl removed their assignment Mar 15, 2017
@Colinh84 Colinh84 self-assigned this Mar 17, 2017
@Colinh84 Colinh84 removed their assignment Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants