Multi draft leagues#90
Open
SteveF92 wants to merge 263 commits into
Open
Conversation
…rk, the timestamp on publisher games was being read in wrong, leading to date based logic not working.
… 1 of multidraft.
# Conflicts: # src/FantasyCritic.Lib/BusinessLogicFunctions/ActionProcessor.cs
Co-authored-by: Cursor <cursoragent@cursor.com>
…, snake-draft double-skip UI note. Co-authored-by: Cursor <cursoragent@cursor.com>
…s, publisher ordering, one-shot conversion, projected-points clarification. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…ntroller actions.
Replace the blanket 'current draft subquery' approach with three distinct primitives (AnyDraftStarted bool, most-recent-year league type, and IsAnyDraftInProgress), since the DraftNumber=1 filter serves semantically different jobs across the read-path stored procedures and repo queries. Co-authored-by: Cursor <cursoragent@cursor.com>
Replace the DraftNumber=1 filter across read-path stored procedures and inline repo queries with three primitives: AnyDraftStarted (per-league-year EXISTS bool feeding MinimalLeagueYearInfo and public listings), a 3-way most-recent-year league type (MultiDraft/OneShot/Standard) in sp_getleaguesforuser, and an all-drafts COUNT for DraftIsActiveOrPaused. Updates domain/entity/viewmodel shapes, all read/construction sites, and the frontend (3-way league icon, dropped raw Play Status column in favor of a 'no draft started' flag). Co-authored-by: Cursor <cursoragent@cursor.com>
…ide the text that says "optional"
Leave at least one open standard slot when pre-filling roster state so StartDraft succeeds under the new readiness rule. Co-authored-by: Cursor <cursoragent@cursor.com>
Cover GetNewSlotAssignments unit cases and end-to-end CreateLeagueDraft re-slotting for special slots. Co-authored-by: Cursor <cursoragent@cursor.com>
Also fixing GUID bug that actually didn't amount to the much because of the way the MySQL layer is written. But still, it's good to fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Major new feature, will take some time to deploy.