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

Showing leaderboard precision value dynamically #285

Closed
wants to merge 5 commits into from
Closed

Showing leaderboard precision value dynamically #285

wants to merge 5 commits into from

Conversation

Abhi58
Copy link
Contributor

@Abhi58 Abhi58 commented Feb 8, 2020

Fix #284 :Add option to change leader-board decimal precision

Fixes #284
Changes proposed in this pull request:

-removed static leaderboard score value and added code to dynamically get the value from response obtained when a phase has been selected.

This is a work in progress PR

@Abhi58 Abhi58 requested a review from Sanji515 February 8, 2020 20:40
@codecov-io
Copy link

codecov-io commented Feb 8, 2020

Codecov Report

Merging #285 into master will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #285      +/-   ##
==========================================
+ Coverage   50.62%   50.64%   +0.02%     
==========================================
  Files          66       66              
  Lines        3771     3771              
  Branches      444      444              
==========================================
+ Hits         1909     1910       +1     
+ Misses       1767     1766       -1     
  Partials       95       95
Impacted Files Coverage Δ
...bliclists/challengelist/challengelist.component.ts 47.57% <0%> (+0.97%) ⬆️
Impacted Files Coverage Δ
...bliclists/challengelist/challengelist.component.ts 47.57% <0%> (+0.97%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3d23ca...900faf7. Read the comment docs.

@@ -9,6 +9,7 @@
<!-- show after authenticate user -->
<li *ngIf="authService.isAuth && !isDash"><a class="waves-effect waves-dark main-header-link" (click) ="isDash = true" routerLink="/dashboard" routerLinkActive="active">Dashboard</a></li>
<li *ngIf="authService.isAuth && isDash"><a class="waves-effect waves-dark main-header-link" routerLink="/challenges" routerLinkActive="active">All Challenges</a></li>
<li *ngIf="authService.isAuth"><a class="waves-effect waves-dark main-header-link" href="https://evalai.readthedocs.io/en/latest/" target="_blank">Docs</a></li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was comparing the original evalai with evalai-ngx and found that the there is a link to the documentation in the navbar of original evalai code. So, i added this line to for the same functionality in evalai-ngx too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok but this isn't related to this pr so undo it please

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. I will create a different pr for this!

Copy link
Member

@Suryansh5545 Suryansh5545 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you Please add a field in settings so that the user or host can change the precision value

@Abhi58
Copy link
Contributor Author

Abhi58 commented Feb 8, 2020

Sure! Thanks for the quick review.

Abhijith added 2 commits February 8, 2020 18:57
@Sanji515
Copy link
Member

Sanji515 commented Feb 9, 2020

Hey @Abhi58 On the issue you are expected to add option under settings tab of challenge page to change leader-board decimal precision by challenge host.

@Abhi58
Copy link
Contributor Author

Abhi58 commented Feb 9, 2020

Sure @Sanji515 . I couldn't get the backend running from docker compose so, i compared with angularjs evali code for this commit. @Suryansh5545 has also mentioned the same. I will add the option under settings. Thanks for the quick review!

@Suryansh5545
Copy link
Member

Suryansh5545 commented Feb 10, 2020

@Abhi58 Did you checked this issue #249 and tried the solution?

@Abhi58
Copy link
Contributor Author

Abhi58 commented Feb 10, 2020

Hey @Suryansh5545. Yes, i checked the issue #249 and tried that. That way i was able to run the frontend but evalai-ngx only has code for front end. So, couldn't run the backend. I was trying to make it work by running original evalai and comparing the code on it with ngx.

@Abhi58
Copy link
Contributor Author

Abhi58 commented Feb 10, 2020

Yesterday, i couldn't work as i had some assignments to submit. I will get back to working on this today. Sorry for the delay!

@Suryansh5545
Copy link
Member

Suryansh5545 commented Feb 10, 2020

@Abhi58 Can you please post a log of the error you recieve when you try to run "docker-compose up" on evalai-ngx . Also if you see the evalai-ngx repo pulls the evalai backend when you try to run it so you shouldn't require to run the original evalai repo

@Abhi58
Copy link
Contributor Author

Abhi58 commented Feb 10, 2020

Hi @Suryansh5545 . I am attaching the screenshots of the logs. Please look into it. So, another thing is after i run the docker compose and then ng serve,the frontend is coming up. But, i am not able to access other functionalities like creating a new host which i feel is required to solve this issue. Could you tell me how to run the backend without using docker compose? Thanks!

Screenshot from 2020-02-06 23-48-04
Screenshot from 2020-02-06 23-48-42

@Suryansh5545
Copy link
Member

Suryansh5545 commented Feb 11, 2020

@Abhi58 This error is related to worker and angular so the django backend is not affected. So just let the docker-compose up compile and then go to 127.0.0.1:8888 if you see a Hello world then the backend is active and running

@Shekharrajak
Copy link
Member

@Abhi58 , are you following the steps given here: https://github.com/Cloud-CV/EvalAI-ngx#development-setup . You can also refer backend part here: https://github.com/Cloud-CV/EvalAI

@Suryansh5545
Copy link
Member

@Shekharrajak Sir for some reason currently unknown the community is having problem running the EvalAI-ngx repository. So we are using a temporary solution which will run the front end and backend on different terminals . But for some reason @Abhi58 is unable to make it work.

@Shekharrajak
Copy link
Member

@Shekharrajak Sir for some reason currently unknown the community is having problem running the EvalAI-ngx repository. So we are using a temporary solution which will run the front end and backend on different terminals . But for some reason @Abhi58 is unable to make it work.

Oh I see! Let me know if there is open issue regarding this or discussion happened somewhere.

@Suryansh5545
Copy link
Member

@Shekharrajak Sir this is the issue #249

@Shekharrajak
Copy link
Member

@Shekharrajak Sir this is the issue #249

Yeah! I was looking into that. Thanks!

@Abhi58
Copy link
Contributor Author

Abhi58 commented Feb 11, 2020

Hi,

Mistakenly I had created this PR using master branch. I am closing this and created another PR with the fix: #287

@Abhi58 Abhi58 closed this Feb 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to change leader-board decimal precision
5 participants