Git Product home page Git Product logo

etterna-ratings-distribution's People

Contributors

actions-user avatar romanmaksy avatar

Stargazers

 avatar

Watchers

 avatar

etterna-ratings-distribution's Issues

Show user profile pic when highlighting player

user profile pic url is available from the existing leaderboards/leaderboards request, so to make this happen just need to extract that in similar way we extract username/flag data in python script to add to csv, and then render this on frontend when a user is highlighted.

Move CSV outside of repo

Currently GitHub actions runs python script to update CSV and commits the changes - this bloats the repo size and pollutes commit history so would be much better to have the script push the files to something like an s3 bucket and then have the frontend fetch the latest file from that.

filter by recent players

extend csv generation script, ensuring the script completes fast enough to not time-out github actions, and rate limited enough to be nice to etterna servers. Will involve following steps:

  1. set up rate limiting framework
  2. fetch userid for each user in existing csv we don't have an id for
  3. for each userid, check the last updated date we have on file, if it's within some threshold, fetch new last score submission date from score/userScores, and store this and fetch date in csv

note that for the above, will probably want to do one big scrape overnight or something to get inital data, and then be smart about not fetching stuff we already have when running on github actions.

once we have this data in csv, add date range UI to allow user to filter by how recently the user has submitted a score.

validate min/max fields

site dies when min higher than max - should improve handling for when we filter to zero results, and also subscribe to min/max change events separately to clamp the opposing control in range

Filter by country

we now have country data in the generated csv, need to add a user control + filter for this on frontend. might be cool to show flag icon next to user name when highlighting too if possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.