edit-task
Home
Up
Delete
Task Name:
Task Description:
#### - UPDATE - PAGE - rankings - ] getting more date from external api, ] getting multiple fields of data from a single field ] sorting by ... ] ranking points
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;">prj-4800 v-004-005</h1> <h2 style="text-align: center;">PAGE /rankings</h2> <h2>[previously]</h2> <ol> <li><strong>[00:00] entrantsRace -</strong></li> <ol> <li>] teamID, []</li> <li>] avgFinishLast10 -</li> <li>] has10 - option to specify if the driver has competed in the last 10 races at the track,</li> <li>]</li> </ol> <li><strong>[00:00] NEW task IN</strong></li> <ol> <li>x] sending more data(example description contains multiple fields),</li> <li>x] ADD - sorting function - currently on TeamID, use to sort entrants</li> <li>x] modify api to include desc,</li> <li>x] description field content 'data' includes mutliple fields of data</li> <ol> <li>] == ] teamID, ] AverageFinishLast10, ] description</li> <li>] ADD ] has10 = wether driver has completed in the last 10 at this track, value = true/false || integer represent # of the last 10 they have been in</li> </ol> <li>x] ADD - code - unpack the description field into its own object,</li> <li>x] ADD - new description.object properties to current object</li> <li>i] DATA getEntrants for r15(michigan) - ] data src, ] entrants.csv</li> <li>] DATA updateDrivers, all, description = new format, data get AvgFinish, last 10 for r15</li> </ol></ol> <h2>[currently]</h2> <ol> <li><strong>[2015-06-12] NEW task IN </strong></li> <ol> <li><strong>] passing multiple values in one feild</strong></li> <li>] example - use ' decription' field to include multiple values</li> <li>] feilds - ] teamID, ] description, ] averageFinishLast10atTrack </li> </ol> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li><strong>x] options ===</strong></li> <li>x] send as string - example, team=48, averageLast10=9.5, description=yada yada yada,</li> <li>x] send as json - {"teamID":"48", "description":"Jimmie is on his ..."}</li> </ol> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li><strong>] send as string</strong></li> <li>] then "unpack" each string in code,</li> <li>] split 'fields by ',' </li> <li>] then split by '=', to get key/values</li> <li>] assign the parsed values to obj properties</li> </ol> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li><strong>> ] send as json</strong></li> <li>x] {"teamID":"24","AverageFinishLast10":"4.5", "Description":"Truex Jr has been red hot lately ..."} </li> <li>x] TEST = pass,</li> <li>] BUT i can't seem get the description field content into an object var,</li> <li>] TRY JSON.parse(),</li> <li>>] SUCCESS - USING eval() works, BUT eval is evil</li> <li>]</li> </ol> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li><strong>] sort - order by AverageFinishLast10(asc)</strong> </li> <li>] PAGE home - define and add sort function, currently using teamID(aka priority) to order entrants by teamID</li> <li>] SUCCESS using</li> <li>] NEXT = add function, sort by AverageFinishLast10</li> </ol> <li><strong>[2015-06-13] NEW task IN sospep/nations/nascar - drivers</strong></li> <ol> <li><strong>] DATA - update drivers records,</strong> - include content for Michigan race, AvgFinish, desc=blurb, teamID</li> </ol> <li><strong>[00:00] NEW task IN PAGE-home.js</strong></li> <ol> <li>x] include obj create code in loop,</li> <li>x] use for each driver record </li> <li>x] assign properties(x] AvgFinishLast10, x] Description, x] teamID ) to each 'driver' element</li> </ol> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li>] # # - ranking points - assign point values, based on array position, first gets max points=43, next get , array needs to be sorted</li> </ol> <li><strong>[00:00] NEW task IN</strong></li> <ol> <li><strong>x] SORT - sort by AverageFinish</strong> (rankings pass 1) || sort by TeamID ( entrants)</li> <li>x] move sorting into separate function(s),</li> <li>x] sort by AverageFinishLast10 (@track)</li> <li><strong>x] SORT - by TeamID</strong></li> </ol> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li>x] # # - CREATE-function - assignRankingPoints(array,maxPoints), - make a 2nd pass through array of drivers after sorting</li> <li>x] sets the top10s = "three" for top 10 drivers, should = 1, others should = null</li> </ol> <li><strong>[00:00] NEW task IN</strong></li> <ol> <li>] # # -</li> </ol> <li><strong>[00:00] NEW task IN</strong></li> <ol> <li>x] write test file</li> <li>x] CREATE-function - fileSave(fileName,fileContent) </li> <li>x] REF = prev example in page code, src = c# corner example</li> <li>x] driverRank.toString<span style="color: #1e7c70;">()</span> , gets you [object][object],..., ...</li> <li>x] use JSON stringify to get it done</li> </ol> <li><strong>[2015-06-14][00:00]</strong></li> <ol> <li>] use json file VS using api call ( performance, wont change once they are set )</li> <li>] put api call, filewrite code into its own function ( will need way ADD method to call this function)</li> </ol> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li>x] # # - PUBLISH as -v-005</li> </ol></ol> <h2>[next]</h2> <ol> <li><strong>> [00:00] NEW task IN</strong></li> <ol> <li>] # # - entrants = rankings-0</li> <li>] # # - write finished "rankings-1" to json file, load json file VS using qry </li> <li>] # # - rankings-2 - post-qualifying</li> <li>] # # - rankings-3 - post-final-practice</li> <li>] # # - driverCost = ] getData from nascar fantasy, ] each driver, ] each race</li> <li>] # # - DATA = ] ADD missing drivers(12)</li> </ol></ol>