Skip to content

Conversation

@Nishant040305
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented Jan 7, 2025

Deploy Preview for computercodingtest ready!

Name Link
🔨 Latest commit 4ab4c48
🔍 Latest deploy log https://app.netlify.com/sites/computercodingtest/deploys/6785f5b1b400ad000882cb29
😎 Deploy Preview https://deploy-preview-50--computercodingtest.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Nishant040305
Copy link
Contributor Author

Screenshot 2025-01-08 003500

codeforces icon is a redirect to profile

@dwargosama
Copy link
Owner

I tried executing it several times on my local machine. Can't render the leaderboard. Could you please check?
Maybe If I am doing something wrong, @smt96700 can you verify it?

Screenshot 2025-01-08 at 10 19 44 PM

@smt96700
Copy link
Collaborator

smt96700 commented Jan 9, 2025

The functionality is working fine, but I would greatly appreciate your input on enhancing the styling of the text displayed at the top.

@Nishant040305
Copy link
Contributor Author

I tried executing it several times on my local machine. Can't render the leaderboard. Could you please check? Maybe If I am doing something wrong, @smt96700 can you verify it?

Screenshot 2025-01-08 at 10 19 44 PM

Is there any error occuring here as i am not getting such errors @smt96700 if u get such pls let me know
and i havent change the the design of the top most heading i can do so and add different filters and search and some more theme change or all but somebody else is already working on it

@Nishant040305
Copy link
Contributor Author

Nishant040305 commented Jan 9, 2025

I tried executing it several times on my local machine. Can't render the leaderboard. Could you please check? Maybe If I am doing something wrong, @smt96700 can you verify it?
Screenshot 2025-01-08 at 10 19 44 PM

Is there any error occuring here as i am not getting such errors @smt96700 if u get such pls let me know and i havent change the the design of the top most heading i can do so and add different filters and search and some more theme change or all but somebody else is already working on it

i just saw the Tourist at the top so that is something it will solve and also there is one more error the site is rendering user profile based on cfid not verifying if it is verified or not which would create another pull request for it as there are serveral more such errors in registration as delete operation generally takes more time to process than create operation in mongodb database

also one can add redis for otp verification instead of storing it in mongodb or in memory by creating a hash

@dwargosama
Copy link
Owner

dwargosama commented Jan 9, 2025

@Nishant040305 , Please create PR for branch 'version-1.2' and tag @smt96700 there for verification.

@smt96700 , please verify it and get it merged asap.

@dwargosama
Copy link
Owner

There is problem with this part of the code. Codeforces does not allow more than 1 rating within 2 seconds. Therefore, when there are several users, the leaderboard is not able to receive data, rather it is getting either 429 (Too Many Requests) or 503 (Service Unavailable) as response.

Screenshot 2025-01-11 at 1 55 23 AM

@Nishant040305
Copy link
Contributor Author

There is problem with this part of the code. Codeforces does not allow more than 1 rating within 2 seconds. Therefore, when there are several users, the leaderboard is not able to receive data, rather it is getting either 429 (Too Many Requests) or 503 (Service Unavailable) as response.

Screenshot 2025-01-11 at 1 55 23 AM

Ok sir will correct this code i get the idea and i will implement this sooner with all the features

@dwargosama
Copy link
Owner

Ok @Nishant040305

CFdata contains some essential information related to present status
of the CfId which will get updated as the user open its dashboard

Leaderboard schema is to store the previous boards as it also allow
developer to add feature to fetch the previous board and rating update
can be done only as per the contest updates
preprocessing total time:
Codeforces Standing fetch + O(n*(time to save user data if
participated)
as codeforces standings is already in sorted order of its ranking
also helps to get the ups and downs of the user compare to previous
contest performance
/leaderboard <POST contestId>
if a leaderboard already exist returns it

if not fetch the previous board and creates new board
with users in the previous board and also updatig the ranking

if not participated but participated in the previous board
then add them in the last with position update

/updateCfdata to update the cf data as user opens the dashboard
reducing the over head of multiple get req of fetching users data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants