Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Codeforces and Atcoder Profiles #10

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sharmavasant
Copy link

@dhanrajchaurasia

Description

Added Codeforces and Atcoder profiles and stored profile data in postgresql database.

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Made profile page and added codeforces and atcoder profiles.
Stored data without redundancy in database.
Downloaded Emoji dependency for profile page.

Related Issue

Fixes # issue

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Motivation and Context

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Profiles can be seen by entering codeforces handle or atcoder handle and respective email associated with the account.
These data will be stored in database.

Screenshots (if appropriate):

CP-Grind2.mp4

Checklist:

  • I have registered myself at Contrihub website.
  • My code follows the code style of this project.
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • Any dependent changes have been merged and published in downstream modules
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Test Configuration:

  • Firmware version:
  • Hardware:
  • Toolchain:
  • SDK:

@dhanrajchaurasia
Copy link
Collaborator

Don't use api everytime once user enters the handle fetch that time and reuse that data everytime to show at profile (also allow user to rechange the handle and fetch that time)

Current Profile isn't good, it's a medium level issue show some creativity. (Refer Codeforces official Profile or other OJ profiles)

Also Profile should be same and is divided by OJs (Cf and Atcoder) maybe u can display them in a single page maybe vertically division would help!

@sharmavasant
Copy link
Author

Don't use api everytime once user enters the handle fetch that time and reuse that data everytime to show at profile (also allow user to rechange the handle and fetch that time)

Current Profile isn't good, it's a medium level issue show some creativity. (Refer Codeforces official Profile or other OJ profiles)

Also Profile should be same and is divided by OJs (Cf and Atcoder) maybe u can display them in a single page maybe vertically division would help!

sir im not able to retrieve data from database it is giving some errors.

@dhanrajchaurasia
Copy link
Collaborator

Don't use api everytime once user enters the handle fetch that time and reuse that data everytime to show at profile (also allow user to rechange the handle and fetch that time)
Current Profile isn't good, it's a medium level issue show some creativity. (Refer Codeforces official Profile or other OJ profiles)
Also Profile should be same and is divided by OJs (Cf and Atcoder) maybe u can display them in a single page maybe vertically division would help!

sir im not able to retrieve data from database it is giving some errors.

can you describe the errors? (or share some screenshots)

@sharmavasant
Copy link
Author

Don't use api everytime once user enters the handle fetch that time and reuse that data everytime to show at profile (also allow user to rechange the handle and fetch that time)
Current Profile isn't good, it's a medium level issue show some creativity. (Refer Codeforces official Profile or other OJ profiles)
Also Profile should be same and is divided by OJs (Cf and Atcoder) maybe u can display them in a single page maybe vertically division would help!

sir im not able to retrieve data from database it is giving some errors.

can you describe the errors? (or share some screenshots)

Screenshot (9)

@dhanrajchaurasia
Copy link
Collaborator

Don't use api everytime once user enters the handle fetch that time and reuse that data everytime to show at profile (also allow user to rechange the handle and fetch that time)
Current Profile isn't good, it's a medium level issue show some creativity. (Refer Codeforces official Profile or other OJ profiles)
Also Profile should be same and is divided by OJs (Cf and Atcoder) maybe u can display them in a single page maybe vertically division would help!

sir im not able to retrieve data from database it is giving some errors.

can you describe the errors? (or share some screenshots)

Screenshot (9)

don't fetch the data from cookie (that is actually a temp storage for the current session) instead fetch it from the db (postgresql)

@sharmavasant
Copy link
Author

sharmavasant commented Oct 14, 2023

Don't use api everytime once user enters the handle fetch that time and reuse that data everytime to show at profile (also allow user to rechange the handle and fetch that time)
Current Profile isn't good, it's a medium level issue show some creativity. (Refer Codeforces official Profile or other OJ profiles)
Also Profile should be same and is divided by OJs (Cf and Atcoder) maybe u can display them in a single page maybe vertically division would help!

sir im not able to retrieve data from database it is giving some errors.

can you describe the errors? (or share some screenshots)

Screenshot (9)

don't fetch the data from cookie (that is actually a temp storage for the current session) instead fetch it from the db (postgresql)

ok

@sharmavasant
Copy link
Author

Don't use api everytime once user enters the handle fetch that time and reuse that data everytime to show at profile (also allow user to rechange the handle and fetch that time)
Current Profile isn't good, it's a medium level issue show some creativity. (Refer Codeforces official Profile or other OJ profiles)
Also Profile should be same and is divided by OJs (Cf and Atcoder) maybe u can display them in a single page maybe vertically division would help!

sir im not able to retrieve data from database it is giving some errors.

can you describe the errors? (or share some screenshots)

Screenshot (9)

don't fetch the data from cookie (that is actually a temp storage for the current session) instead fetch it from the db (postgresql)

@dhanrajchaurasia sir

I have made functionality to retrieve data from database if it exists otherwise fetch from api and store in database
but unable to enhance frontend of profile page

@dhanrajchaurasia
Copy link
Collaborator

Don't use api everytime once user enters the handle fetch that time and reuse that data everytime to show at profile (also allow user to rechange the handle and fetch that time)
Current Profile isn't good, it's a medium level issue show some creativity. (Refer Codeforces official Profile or other OJ profiles)
Also Profile should be same and is divided by OJs (Cf and Atcoder) maybe u can display them in a single page maybe vertically division would help!

sir im not able to retrieve data from database it is giving some errors.

can you describe the errors? (or share some screenshots)

Screenshot (9)

don't fetch the data from cookie (that is actually a temp storage for the current session) instead fetch it from the db (postgresql)

@dhanrajchaurasia sir

I have made functionality to retrieve data from database if it exists otherwise fetch from api and store in database but unable to enhance frontend of profile page

okay will check!

@sharmavasant
Copy link
Author

Don't use api everytime once user enters the handle fetch that time and reuse that data everytime to show at profile (also allow user to rechange the handle and fetch that time)
Current Profile isn't good, it's a medium level issue show some creativity. (Refer Codeforces official Profile or other OJ profiles)
Also Profile should be same and is divided by OJs (Cf and Atcoder) maybe u can display them in a single page maybe vertically division would help!

sir im not able to retrieve data from database it is giving some errors.

can you describe the errors? (or share some screenshots)

Screenshot (9)

don't fetch the data from cookie (that is actually a temp storage for the current session) instead fetch it from the db (postgresql)

@dhanrajchaurasia sir
I have made functionality to retrieve data from database if it exists otherwise fetch from api and store in database but unable to enhance frontend of profile page

okay will check!

@dhanrajchaurasia sir you need to download emoji dependency go get github.com/enescakir/emoji

@dhanrajchaurasia
Copy link
Collaborator

@sharmavasant I have tried running it locally but data is fetching on inputting right? it shouldn't have been like that as I said earlier you should show the old stored profile until he changes the handle, haven't you done anything about that? also why I am seeing two input tags for each platform? and the details are not even in the ordered format.

Maybe something like below!
image

@sharmavasant
Copy link
Author

sharmavasant commented Oct 20, 2023

@sharmavasant I have tried running it locally but data is fetching on inputting right? it shouldn't have been like that as I said earlier you should show the old stored profile until he changes the handle, haven't you done anything about that? also why I am seeing two input tags for each platform? and the details are not even in the ordered format.

Maybe something like below! image

@dhanrajchaurasia
-> It is fetching data if profile is not stored in database but if it is stored then it is showing from database not from api.
-> Two input tags just to reduce redundancy as a user can have multiple handles but single email.

this is screenshot where it decides whether to choose data from database or api
Screenshot (10)

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.

None yet

2 participants