Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Add option to change leader-board decimal precision #284

Open
Sanji515 opened this issue Feb 7, 2020 · 19 comments · May be fixed by #290 or #314
Open

Add option to change leader-board decimal precision #284

Sanji515 opened this issue Feb 7, 2020 · 19 comments · May be fixed by #290 or #314
Labels
enhancement New feature or request GSOC-2020

Comments

@Sanji515
Copy link
Member

Sanji515 commented Feb 7, 2020

Add option under settings tab in challenge page to change leader-board decimal precision by challenge host (Note: settings tab is only for the host user).

It is expected to add the front-end to be able to show the current leaderbord decimal precision value (refer field here) and to add the option to change this field by the host user.

@Sanji515 Sanji515 added enhancement New feature or request GSOC-2020 labels Feb 7, 2020
@Suryansh5545
Copy link
Member

This was a GCI task and the problem faced by the student was that they were able to find how precision value is changed or defined so. For those who will attempt this you can find the precision value here https://github.com/Cloud-CV/EvalAI-ngx/blob/master/src/app/components/challenge/challengeleaderboard/challengeleaderboard.component.html#L114 this value is currently statically applied.

@Abhi58
Copy link
Contributor

Abhi58 commented Feb 8, 2020

Hi @Sanji515 @Suryansh5545 . I would like to take up this issue. Please assign this to me. Thanks!

@Sanji515
Copy link
Member Author

Sanji515 commented Feb 8, 2020

Sure @Abhi58 You can work on it.

@Abhi58
Copy link
Contributor

Abhi58 commented Feb 8, 2020

Hi @Sanji515 . I was going through the code of EvalAI. There i found a variable called 'leaderboard_decimal_precision' which i believe is a part of callback response data on line 1437 in controller.js. I searched for the variable in the controller file, but couldn't find it.

@Abhi58
Copy link
Contributor

Abhi58 commented Feb 8, 2020

Could you tell me from where is the response coming from? Thanks!

@Sanji515
Copy link
Member Author

Sanji515 commented Feb 8, 2020

@Abhi58 I didn't get exactly of which controller.js file you are pointing line 1437. But you can take a look at this API here

@Abhi58
Copy link
Contributor

Abhi58 commented Feb 8, 2020

Sure @Sanji515 . Thanks!

@Abhi58
Copy link
Contributor

Abhi58 commented Feb 8, 2020

Hi @Sanji515 . I ran the EvalAI-ngx using ng serve because docker-compose up was giving errors. So, based on EvalAI code and the assumption that the backend is same for EvalAI and ngx i have made some changes.

@Abhi58
Copy link
Contributor

Abhi58 commented Feb 8, 2020

I am not able to test my code since the backend server is not running. I will create a work in progress PR. Please verify it and let me know if the issue has been resolved. Sorry for the trouble! Thanks!

@Suryansh5545
Copy link
Member

@Abhi58 What problem are you facing?

@Suryansh5545
Copy link
Member

@Abhi58 I think you can edit the precision value here https://github.com/Cloud-CV/EvalAI-ngx/blob/master/src/app/components/challenge/challengeleaderboard/challengeleaderboard.component.html#L114 also if your docker setup can't run angular container then you can try to keep both backend and frontend started on two terminals.

@Abhi58
Copy link
Contributor

Abhi58 commented Feb 8, 2020

Hi @Suryansh5545 . Backend was not running. That's the problem i was facing. As you suggested i will try to run on two terminals.

@Abhi58
Copy link
Contributor

Abhi58 commented Feb 8, 2020

Actually, i have made changes to the line that you have mentioned based on the original EvalAI code. Please review it and let me know. Thanks! @Suryansh5545

@Suryansh5545
Copy link
Member

@Abhi58 i have made some comments please take a look

@Kajol-Kumari
Copy link
Member

@Abhi58 May i know if you are still working on it or not as i would like to work on it.

@Abhi58
Copy link
Contributor

Abhi58 commented Feb 16, 2020

@Kajol-Kumari yes, i am still working on it. I was busy with school work this week so couldn't spend much time. I will be getting back to working on this today. Please pick another issue. Thanks!

@Kajol-Kumari
Copy link
Member

@Kajol-Kumari yes, i am still working on it. I was busy with school work this week so couldn't spend much time. I will be getting back to working on this today. Please pick another issue. Thanks!

@Abhi58 I have already done some of its part, so if you wish,i can create a draft PR which you can pull and continue to work.If you want,Please let me know.

@Abhi58
Copy link
Contributor

Abhi58 commented Feb 16, 2020

@Kajol-Kumari That's okay. I have finished working on it. I will create a pull request soon. You don't have to create a pr. Actually, if you see i already created a pull request before, but that had some problems. So, i just had to do some small changes. Sorry about that! Please feel free to pick another issue.

@Abhi58 Abhi58 linked a pull request Feb 16, 2020 that will close this issue
@Abhi58
Copy link
Contributor

Abhi58 commented Feb 16, 2020

@Sanji515 @Suryansh5545 @RishabhJain2018 I have raised a pr #290 which resolves this issue. Please review it and close this issue.

@Kajol-Kumari Kajol-Kumari linked a pull request Apr 3, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request GSOC-2020
Projects
None yet
4 participants