edit-task
Home
Up
Delete
Task Name:
Task 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
TaskGroup ID:
Start Date:
Start Time:
Duration:
Priority:
Status:
To Do
Completed
In Process
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">4800-v-006-001</h1> <h2>[previously]</h2> <ol> <li><strong>[REFERENCE] prj4800 </strong></li> <ol> <li>] # # - <a href="/view/tasks?id=434" target="_blank">plan</a> - <a href="/view/task?id=4800" target="_blank">overview</a></li> <li>] # # - <a href="/view/tasks?id=435" target="_blank">document</a> -</li> </ol> <li><strong>[2015-06-17] DATA updates</strong></li> <ol> <li>] # # - mostly complete list of drivers for 2015</li> </ol> <li><strong>[00:00] NEW task IN DATA - michigan</strong><ol> <li>x] GET fantasyPoints per driver</li> <li>x] CALCULATE totalPoints for each team (NASCAR, PASS)</li> <li>] CREATE SM-post-c results-michigan</li> </ol></li> <li><span style="background-color: #00ff00;"><strong>[00:00] NEW task IN OUTLINE v-007 </strong></span></li> <ol> <li>] race# - CREATE-complete drivers set - redo rankings1.json (*] current example data set) ] rewrite current rankings file with complete drivers,</li> <li>x] race# - rankings 2 - post qualify</li> <li>x] race# - rankings 3 - last practice</li> <li>x] race# - rankings-final</li> <li> ****</li> <li>] selections (rankings, driverCostThisRace)</li> <li>****</li> <li>] entrants(actual)-race -> ] entrants w/AvgFinish</li> </ol> <li><span style="background-color: #c0c0c0;"><strong>>> [00:00] NEW task IN learn node </strong></span></li> <ol> <li><span style="background-color: #c0c0c0;">] # <a href="/view/task?id=5304" target="_blank">5304 - DEPLOY - heroku</a> </span></li> <li><span style="background-color: #c0c0c0;"><strong>] heroku ( WILL DEPLOY this.app TO heroku TO test app speed VS windows hosted ) </strong></span></li> </ol> <li><strong>[00:00] NEW task IN filename for each race</strong></li> <ol> <li>x] ADD - "current-race" prefix to file write, filename, example "{2015-15}-rankings-1.json",</li> <li>x] added var currentRace, x] appended currentRace to filename, x] change var rankings = require(filename),</li> <li>x] added var currentRaceRankingsFileName, SET requires to var, TEST = PASS, use same VAR to write</li> <li><span style="background-color: #ffff00;">] TRY = move menuInit() below var rankings assignment, ] get value of currentRace from menu object, ] if (currentFile == currentRace){load file}else{createFileRankings1}</span> ]</li> </ol> <li><strong>[00:00] NEW task IN DATA</strong></li> <ol> <li>x] SET avg-finish-At-Trackmichigan for 15 new drivers</li> <li>x] for first timers SET to 44.0, total = 4, WILL be disadvantage for some due to sorting order</li> <li><span style="background-color: #ffff00;">*] CURRENTLY - NEED to STOP, then reststart the server, to load the latest data file, after it is written</span></li> <li><span style="background-color: #ffff00;">] TRY = assign updated array to rankings var after call process</span></li> </ol> <li><strong>[00:00] NEW task IN DATA</strong></li> <ol> <li>x] # # - GET michigan - fantasy points - looks like we lost again</li> </ol> <li><strong>[00:00] NEW task IN </strong><ol> <li><strong>] GETTING qualifying data</strong></li> <li>x] USE description feild,</li> <li>x] ADD property "qualified":22 - where # is the position they qualified in</li> <li>x] SORT by qualified - ] add function sortByQualifiedPosition</li> <li>x] ASSIGN qualified ranking points - ]</li> <li>x] ADD totalRankingPoints = avgFinishPts + qualifyPts</li> <li>x] SORT by totalRankingPoints</li> </ol></li> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li><strong>*] SORTING</strong></li> <li>x] sort(AvgFinish),</li> <li>x] Assign(AvgFinish),</li> <li>x] new function x] Sort(Quailfy),</li> <li>x] new function x] Assign(Qualify)</li> <li><span style="background-color: #ffff00;">> ?] points - persistance between IN current in file race-rankings-1 OR ???</span></li> <li>+] sort(rankingPoints-Total)</li> <li>x] PRB - adds points as strings 4343 instead of 86 </li> <li>x] FIX parseInt(val)</li> <li>x] PRB sorted ascending 0-99 ,</li> <li>x] FIX - USE .reverse() method</li> <li>x] write rankings-2</li> </ol> <li><strong>[2015-06-18] NEW task IN</strong></li> <ol> <li><strong>x] # # - assign +icons for topTens,</strong> - in second sort, add additional if statement, test for (top10s===one), if so then</li> <li>x] # # - TEST appears to work</li> </ol> <li><strong>[00:00] NEW task IN [FINAL PRACTICE, FINAL RANKINGS]</strong><ol> <li>x] # # - DATA drivers - add "practiceF":"p#" property to multi property description field, michigan result final practice</li> <li><span style="background-color: #ffff00;">] get finalPractice data - currently manually assigned</span></li> </ol></li> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li>x] # # - ADD function "assignRankingPointsPracticeFinal", x] changeD logic on "top10s" code</li> </ol> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li>x] # # - ADD function "sortByPracticeFinal"</li> </ol> <li><strong>[00:00] NEW task IN</strong></li> <ol> <li><strong>x] # # - CALL </strong>] sortPracticeF, ] assignPracticeF, ] sortByTotalPoints</li> <li>x] write file 'rankings-3.json'</li> <li>x] write file 'rankings-final.json'</li> <li>*] sort on practiceF position, NOT reversed, sort on qualifed reversed, ???</li> </ol> <li><strong>[00:00] NEW task IN</strong></li> <ol> <li><strong>x] # # - PRB top10s</strong> - doesnt seem to get assigned, properly, threes are 1s, 1s are 1s, 2s are FIX logic in assignPoints, no else, only if</li> </ol> <li><strong>[00:00] NEW task IN</strong></li> <ol> <li>+] <strong># # - init/use/load logic</strong> - IF (status==qualified) rankings-1 exists use rankings1</li> <li>*] currently = 'manually assigned' currentRaceIndex in code,</li> <li>x] ADD var raceStatus, status options = entrants, qualified, practice, final </li> <li>> ] SET manually var raceStatus, TO entrants</li> <li>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, ...</li> <li>] set var Rankings = requires('{race}-rankings-{status}.json), ( a dynamically built string, path+filename )</li> <li>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)</li> </ol> <li><strong>[2015-06-19] NEW task </strong></li> <ol> <li>x] # # - ADD method - setRaceStatus(id,status) =</li> </ol></ol> <h2>[currently]</h2> <ol> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li>] DATA - entrantsList-Michigan, -> ] rankings qualified -> ] ... </li> <li>x] DATA - practiceF field, data(michigan 2015-15),</li> <li>i] CREATE init logic ( use {race}-rankings-{status), where status = 'entrants', 'qualified', )</li> <li>i] setRaceStatus - method to change currentRace status given (idx, statusValue)</li> <li>i] getRaceStatus - method to return currentRace status given (idx ) ] CHANGE arg from 'idx' value of curRace to ___, ] ADD lookup function</li> <li>x]</li> </ol></ol> <h2>[next]</h2> <ol> <li>] <strong>[00:00] NEW task IN -v-006-001 '{race}-entrants', {race}-entrants-ranking-1</strong></li> <ol> <li>] race# - CREATE-complete drivers set - redo rankings1.json (*] current example data set)</li> <li>x] rewrite current rankings example file with complete drivers,</li> <li>] GET averageFinish for drivers NOT</li> <li>] ? what about ranking points IF > 43 drivers, should be -points</li> </ol> <li><strong>[00:00] NEW task IN -v-006-002 - qualifying </strong></li> <ol> <li>x] ADD value(position || time || speed ) for qualifying at each race FOR each driver FOR each race</li> <ol> <li>x] DEC leaning towards position - ex <strong>qualified:4</strong> ( indicates driver qualified in 4th postion for this race), time and speed are better, but would require additional sorting, entry work</li> </ol> <li>>] SAVE previous 'ranking points' and 'plus' status from race-entrants-ranking-1</li> <ol> <li>] write new param into .json data/then file = ] rankingPointsTotal, top10sStatus:'one'</li> </ol> <li>] CREATE new file <strong>{race}-entrants-ranking-2</strong></li> <ol> <li>>>> ] GET {race}-qualifying-results { car#, qualified: } ?? put qualified position into driver desc data set ??</li> </ol> <li>] SET app to use this file as value for 'Rankings-race'</li> </ol></ol>