task

4800-v-006-001

[previously]

  1. [REFERENCE] prj4800
    1. ] # # - plan - overview
    2. ] # # - document -
  2. [2015-06-17] DATA updates
    1. ] # # - mostly complete list of drivers for 2015
  3. [00:00] NEW task IN DATA - michigan
    1. x] GET fantasyPoints per driver
    2. x] CALCULATE totalPoints for each team (NASCAR, PASS)
    3. ] CREATE SM-post-c results-michigan
  4. [00:00] NEW task IN  OUTLINE v-007
    1. ] race# - CREATE-complete drivers set - redo rankings1.json (*] current example data set) ] rewrite current rankings file with complete drivers,
    2. x] race# -  rankings 2 - post qualify
    3. x] race# - rankings 3 - last practice
    4. x] race# - rankings-final
    5.  ****
    6. ] selections (rankings, driverCostThisRace)
    7. ****
    8. ] entrants(actual)-race -> ] entrants w/AvgFinish
  5. >> [00:00] NEW task IN learn node
    1. ] # 5304 - DEPLOY - heroku  
    2. ] heroku ( WILL DEPLOY this.app TO heroku TO test app speed VS windows hosted )
  6. [00:00] NEW task IN filename for each race
    1. x] ADD - "current-race" prefix to file write, filename, example "{2015-15}-rankings-1.json",
    2. x] added var currentRace, x] appended currentRace to filename, x] change var rankings = require(filename),
    3. x]  added var currentRaceRankingsFileName, SET requires to var, TEST = PASS, use same VAR to write
    4. ] TRY = move menuInit() below var rankings assignment, ] get value of currentRace from menu object, ] if (currentFile == currentRace){load file}else{createFileRankings1} ]
  7. [00:00] NEW task IN DATA
    1. x] SET avg-finish-At-Trackmichigan for 15 new drivers
    2. x] for first timers SET to 44.0, total = 4, WILL be disadvantage for some due to sorting order
    3. *] CURRENTLY - NEED to STOP, then reststart the server, to load the latest data file, after it is written
    4. ] TRY = assign updated array to rankings var after call process
  8. [00:00] NEW task IN DATA
    1. x] # # - GET michigan - fantasy points - looks like we lost again
  9. [00:00] NEW task IN
    1. ] GETTING qualifying data
    2. x] USE description feild,
    3. x] ADD property "qualified":22 - where # is the position they qualified in
    4. x] SORT by qualified - ] add function sortByQualifiedPosition
    5. x] ASSIGN qualified ranking points - ]
    6. x] ADD totalRankingPoints = avgFinishPts + qualifyPts
    7. x] SORT by totalRankingPoints
  10. [00:00] NEW task IN
    1. *] SORTING
    2. x] sort(AvgFinish),
    3. x] Assign(AvgFinish),
    4. x] new function x] Sort(Quailfy),
    5. x] new function x] Assign(Qualify)
    6. > ?] points - persistance between IN current in file race-rankings-1 OR ???
    7. +] sort(rankingPoints-Total)
    8. x] PRB - adds points as strings 4343 instead of 86 
    9. x] FIX parseInt(val)
    10. x] PRB sorted ascending 0-99 ,
    11. x] FIX - USE .reverse() method
    12. x] write rankings-2
  11. [2015-06-18] NEW task IN
    1. x] # # - assign +icons for topTens, - in second sort, add additional if statement, test for (top10s===one), if so then
    2. x] # # - TEST appears to work
  12. [00:00] NEW task IN [FINAL PRACTICE, FINAL RANKINGS]
    1. x] # # - DATA drivers - add "practiceF":"p#" property to multi property description field, michigan result final practice
    2. ] get finalPractice data - currently manually assigned
  13. [00:00] NEW task IN
    1. x] # #  - ADD function "assignRankingPointsPracticeFinal", x] changeD logic on "top10s" code
  14. [00:00] NEW task IN
    1. x] # # - ADD function "sortByPracticeFinal"
  15. [00:00] NEW task IN
    1. x] # # - CALL   ] sortPracticeF, ] assignPracticeF, ] sortByTotalPoints
    2. x] write file 'rankings-3.json'
    3. x] write file 'rankings-final.json'
    4. *] sort on practiceF position, NOT reversed, sort on qualifed reversed, ???
  16. [00:00] NEW task IN
    1. x] # # - PRB top10s - doesnt seem to get assigned, properly, threes are 1s, 1s are 1s, 2s are FIX logic in assignPoints, no else, only if
  17. [00:00] NEW task IN
    1. +] # # - init/use/load logic - IF (status==qualified) rankings-1 exists use rankings1
    2. *] currently = 'manually assigned' currentRaceIndex in code,
    3. x] ADD var raceStatus, status options = entrants, qualified, practice, final 
    4. > ] SET manually var raceStatus, TO entrants
    5. x] ADD logic block , set "Rankings" file to load based on race-Rankings-Status,  exampel if entrants then rankings-1, if qualified then rankings-2, ...
    6. ] set var Rankings = requires('{race}-rankings-{status}.json), ( a dynamically built string, path+filename )
    7. x] ADD method  to Races- getRaceStatus(id)  = gets the status of the given race, where the array index value of the race is passed (grrrr)
  18. [2015-06-19] NEW task
    1. x] # # - ADD method - setRaceStatus(id,status)  =

[currently]

  1. [00:00] NEW task IN
    1. ] DATA - entrantsList-Michigan, -> ] rankings qualified -> ] ...  
    2. x] DATA - practiceF field, data(michigan 2015-15),
    3. i] CREATE init logic ( use {race}-rankings-{status), where status = 'entrants', 'qualified', )
    4. i] setRaceStatus - method to change currentRace status given (idx, statusValue)
    5. i] getRaceStatus - method to return currentRace status given (idx ) ] CHANGE arg from 'idx' value of curRace to ___, ] ADD lookup function
    6. x]

[next]

  1. ] [00:00] NEW task IN -v-006-001 '{race}-entrants', {race}-entrants-ranking-1
    1. ] race# - CREATE-complete drivers set - redo rankings1.json (*] current example data set)
    2. x] rewrite current rankings example file with complete drivers,
    3. ] GET averageFinish for drivers NOT
    4. ] ? what about ranking points IF > 43 drivers, should be -points
  2. [00:00] NEW task IN -v-006-002 - qualifying
    1. x] ADD value(position || time || speed ) for qualifying at each race FOR each driver FOR each race
      1. x] DEC leaning towards position - ex qualified:4 ( indicates driver qualified in 4th postion for this race), time and speed are better, but would require additional sorting, entry work
    2. >] SAVE previous 'ranking points' and 'plus' status from race-entrants-ranking-1
      1. ] write new param into .json data/then file = ] rankingPointsTotal, top10sStatus:'one'
    3. ] CREATE new file  {race}-entrants-ranking-2
      1. >>> ] GET {race}-qualifying-results { car#, qualified: } ?? put qualified position into driver desc data set ??
    4. ] SET app to use this file as value for 'Rankings-race'
Details Photos Edit more

Details

ID: 5297

NAME: 4800-v-006-001

DESCRIPTION: ] practice final - ADD assign values for final practice performance, re rank drivers based on total points to create rankings-final file, ADD init/load logic to determine race status and which 'rankings-{status}' file to use

START DATE TIME: 2015-06-17 21:00:00

EST DURATION: 01:00:00

END DATE TIME: 2015-06-17 22:00:00

STATUS: Completed

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities