GithubHelp home page GithubHelp logo

alexraubach / metawing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from haslo/lists_juggle_browser

2.0 2.0 3.0 312.88 MB

Analysis tool for X-Wing Second Edition tournament data

Home Page: https://meta.listfortress.com/

License: MIT License

Ruby 68.17% JavaScript 3.23% CoffeeScript 2.00% CSS 7.31% Elm 0.37% HTML 1.79% SCSS 1.97% Haml 15.14% Procfile 0.03%
hacktoberfest

metawing's People

Contributors

alexraubach avatar bitsai avatar dependabot[bot] avatar ediancurrinir avatar haslo avatar matt-whited avatar mwhited avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

metawing's Issues

iOs Menu problem

I am able to reach the website, but the menus are not accessible. I cant change filters, or reach the menu where I can search for pilots or ships.

I am using iphone se2 tried it on safari and firefox, and it was working before.

Tournament missing

Hello ! There's the biggest 2.5 Standard tournament missing on metawing : Star Wars: X-Wing 2022 World Open Qualifier at Adepticon - Hosted by Gold Squadron

https://listfortress.com/tournaments/2984

Most of the top list aren't here (Nathan Eide's list for exemple)

Thanks a lot ! :D

Bulk Export Option?

Right now you can export individual lists by clicking export and copy pasting the XWS or exporting as JSON. However, I know many players are interested in data such as average bid, which could be calculated from the XWS. Is it possible to develop an option to bulk export the XWS for all of the lists?

Site performance

Heroku has Metawing's average response time at 863 ms while ListFortress is at 63ms.

I suspect that there are multiple issues including the following:

  • Turbolinks doesn't seem to be set up correctly

  • Metawing is using the db as a keyvalue store instead of a faster cache

  • The image functionality needs work and might be loading them too frequently?

  • The views alone take a long time to render

Inquiry: average number of ships

I was wondering if you could assist with confirming or disproving a data point in my pace of play findings. Can you calculate the average number of ships being taken? I am wondering if it is around 4? If it is not possible it is ok, just confirming a curiosity.

Broken Links

Get this message when clicking on “more squadrons”

tried it on multiple browsers and on multiple ship types

8D444E93-781E-4F0B-8BB6-EACE0A0A0148

Bad XWS names causes orphan pilot entries and missing Pilot images

Sometimes pilots are given the wrong xws name in xwd2. Metawing's xwd autoupdater runs and generates a Pilot with the invalid xws name. Then the name is changed in xwd2 and the updater creates a second entry for that pilot because it can't update the old pilot. This leaves us with a second empty entry for that pilot.

This isn't a big problem, these empty pilots don't have games associated with them and they're only linked on the ships index page and the page for the specific ship they pilot. I only noticed the issue because MW couldn't find 4 pilot cards because card images are given the xws name of the pilot so a bad xws name means a 404 error.

I don't think there is anything to do but manually check for missing images and then confirm that the problem isn't a duplicate pilot.

You can delete them by opening a rails console in prod and running Pilot.find(id_here).destroy
One pilot had some child entries so I had to first run Pilot.find(id_here).pilot_slots.each { |x| x.destroy }

UI needs to be updated

Metawing is current stuck on a obsolete version of the bootstrap gem, '4.0.0.alpha6'. Upgrading the gem breaks the entire UI because the bootstrap class names have changed since then.

Most of the UI will have to be updated with either new bootstrap classes or a different framework and some minor changes should probably be made at the same time. I personally would like to remove the sidebar and put the five links it contains in the top bar, while dropping the intro link since you can get there by clicking on the logo, the data_browser link and the changelog link.

At the same time, the filter currently isn't visible on mobile which leaves you stuck with the default view.

Tournaments not showing up in metawing

Hi, some tournaments were showing up 2-3 days ago aren't showing up anymore on metawing. (I've found the Lima Open 2021 so far)
Sometime it occurs because Fury of the first order pilot aren't entered correctly, but i don't seem to be the case here

Tournament imports should gracefully handle invalid xws

If a tournament contains a squad with invalid xws, the tournament will throw a error like ERROR => Pilot not found for kickback-sigeofcoruscant <= and then stop processing any additional users.

While there is no fix for bad xws (aside from fixing the data manually in listfortress), the tournament importer could gracefully handle the error. I believe that if this line was in a try catch block, a bad squad could be skipped while allowing the rest of the tournament to be imported.

Preset dates update

Hi there. I've seen the preset dates have not been updated in a while, so I would like to request if it can be done. It's missing dates like wave 5 realease (2020-09-13), points update (2020-01-20) and wave 6 (2020-01-31).

Best regards,
Leo.

Improving xwingdata2 importing

Currently, xwingdata2 is a git submodule and is manually imported by updating the submodule, uploading the entire repo to heroku via cli to include the submodule and then running the rake task xwing-data2 which calls this function..

If xwingdata2 could be imported directly from github then the entire process could be automated and run weekly. This is important because tournaments with new cards aren't imported at all which means reimporting old tournaments after the xwingdata2 is finally run etc.

Implement Pagination?

There are currently 479+ pilots, 88+ ships, 356+ upgrades (not including epic?) and 120 list archetypes (seems to be a hardcoded cap rather than the actual number) if you sort from launch to 10/21. Most people are only going to look at the top 10-20 items in each list so including the entire group in each page load means a lot of extra client side image loading and content processing that probably could be avoided.

Sadly, pagination isn't just a drop in solution because metawing uses Rankers classes rather than a customized model to build the sql query and return objects. I believe that you could add offset and limit to the query inside the ranker,

@ships = Ship.fetch_query(ships_relation, attributes) > @ships = Ship.fetch_query(ships_relation, attributes).limit(25).offset(0)

Might not be necessary for ships and it might be easier to just implement manually rather than something like pagy. Probably worth starting with hard coded testing on pilots or upgrades to make sure that the work is going to result in real decreases in page load times.

Add 2.0 Legacy formats to filter

Since the end of X-Wing development many players turned back to 2.0 Legacy and more tournaments are coming. Appropriate Legacy filter will be a huge contribution for the X-Wing community.

Filter by faction

Please add the ability to filter by faction, or include faction info in the exported .csv files if it is possible.

last tournament not showing in metawing

Hi, a 50-person tournament is supposed to be live on metawing since the beginning of the week and it has not showed up. It might be because the winning list have vader defender in it, and the new ships / pilotes have problems

Thank you ! :D

Some tournaments are not appearing

Hey ! I've already talked about that with Matthew Whited, but some tournament are either not appearing at all in metawing while being fine and present in listfortress, or appearing like 1 month later (in the example, you have a list that won lima open 2020 in the first picture, and it doesn't appear in metawing then on the second picture)
image
here the result
image

2.5 Standard filter ?

In archetypes, I can't filter by 2.5 Standard formats. Is it planned to be added?

Not an issue but a request: Player Ranking

MetaWing already has pilot, ship, and archetype rankings but it would be neat to have a player ranking and sort the other rankings with this data factored into account. You don't need to do this, just an idea to add even more functionality to the site!

Removing depreciated URI.escape

app/helper/application_helper.rb uses URI.escape as part of a method that takes a path and the current query string to it. This allows filter params to persist without relying on cookies/sessions.

Date selection improvements

Typing in a date is fiddly. A clicky calendar type thing when selecting a date would be handy (like on hotel booking websites)

Also, piggybacking on this issue: there are no shortcut date selection options for the point changes between "wave 7.1 nantex nerf" and "today"

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.