axelclark / ex338 Goto Github PK
View Code? Open in Web Editor NEWWeb application to manage the 338 Challenge fantasy sports league
Home Page: https://the338challenge.com
License: MIT License
Web application to manage the 338 Challenge fantasy sports league
Home Page: https://the338challenge.com
License: MIT License
League owners are emailed when new waiver is submitted.
After a trade has been negotiated, an owner can submit the trade to the league for approval.
Update the rules to better explain the waiver process.
When waivers are processed as successful or unsuccessful, the owners are emailed.
When an owner updates the roster positions, a validation is performed to ensure two players aren't on the same position.
Owners should be able to update the player to drop according to the waiver rules.
Once a Roster Position is deleted by having its status changed to "traded" or "released", it is handled that way across the site
does not display in FantasyTeam show & index
available in Draft and Waiver select options
According to the rules, a waiver must include a drop unless there is an open position on the team.
There is an error if on the new waiver form, the user submits blank for both add and drop player.
The player to add is listed in the waiver email subject so it's easier to scan
Move business logic out of the controller.
When a form field has an error, the description stands out (i.e. red or bold)
Some sports leagues have multiple championships, so the dates should be associated with a championship rather than the overall league.
Mix test --exclude integration
Migrate with rollback
If a new waiver is submitted after an event deadline (before the overall sport deadline), the rosterposition effective date is after the event.
Update highlighting to clarify the rule that waivers can't be updated is an existing rule and not made due to change to using the site.
When an owner submits a new waiver, the league is emailed.
Update the remember me configuration to expire the cookie after 30 days.
Owners can view key dates for each Sports League
When an owner submits a new waiver for a team that already has a pending waiver, the new waiver is not valid if it is submitted after the waiver wait period ends. Application should validate the process_at datetime is in the future when a new waiver is submitted.
def validate_wait_period_open(waiver_changeset) do
process_at = get_change(waiver_changeset, :process_at)
now = Ecto.DateTime.utc
validate_wait_period_open(waiver_changeset, process_at, now)
end
defp validate_wait_period_open(waiver_changeset, process_at, now), when process_at <= now, do: waiver_changeset
defp wait_period_open?(waiver_changeset, process_at, now), when process_at > now do
add_error(waiver_changeset, :add_fantasy_player_id, "Existing waiver and wait period has already ended.")
end
Limit team names to 16 characters for spacing and formatting purposes.
Feature request from gavin.johnson
https://the338challenge.slack.com/archives/general/p1474296554000002
Waiver table column headings should be more clear instead of "Effective Date".
Consider reversing the order of the pending waivers so the waivers to process first are on top.
The winnings to date during the season, the amount of winnings paid, and the dues paid is listed for each team so the commissioner doesn't have to keep a separate spreadsheet and there is transparency with the owners.
Update edit and show
Waiver: process_at
RosterPosition: status, released_at
When an admin approves a waiver claim, the roster position is created automatically
When a player is dropped after a successful waiver claim, the player no longer shows on the fantasy team, except when the owner goes to the roster position update form.
Owners can update payment preferences for the team.
When an owner submits a waiver with only a player to drop, the waiver is processed immediately with the waiver status updated and the roster_position status updated.
When an owner submits a new waiver, the new waiver is not valid if it is submitted after the waiver deadline for the sports league/championship. Application should validate the championship waiver deadline is in the future when a new waiver is submitted.
The list of pending waivers should show the date and time the waiver will be processed. Currently rules require a 3 day waiting period.
When a team's waiver is successful, the roster positions are updated for the player added and player dropped.
Users can update their settings to turn email notifications off
Add database constraint to ensure position is not null. Cause of multiple Honeybadger errors.
If there is already a waiver submitted for a player, the new waiver's process_at date should match the existing waiver.
Based on discussion with commissioner, the rules should be changed to require a player to drop when the waiver is submitted unless there is an open position.
Sports leagues should be sorted by championship date
When a waiver is either successful or unsuccessful, the admin can process the waiver using a form.
When the commissioner approves a waiver, the waiver positions across the league update automatically.
When an owner want to submit a new waiver request, they go to their team page and submit it.
Sports league index no longer necessary because of #69
Owners should not be able to update player to drop after wait period ends according to the rules. Need to remove link and perform validation.
Need to update the seeds and dev_seeds mix tasks for recent changes to tables.
Show owners a button to go to the new waiver form.
Add test coverage analysis to review where test coverage is weak.
In the admin actions column, the table row line is darker in that column.
When a player is dropped or traded, the RosterPosition is updated in a column rather than deleted from the database.
The link to pay team dues should be listed on the site.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.