task

prj-4800 v-004-005

PAGE /rankings

[previously]

  1. [00:00] entrantsRace -
    1. ] teamID, []
    2. ] avgFinishLast10 -
    3. ] has10 - option to specify if the driver has competed in the last 10 races at the track,
    4. ]
  2. [00:00] NEW task IN
    1. x] sending more data(example description contains multiple fields),
    2. x] ADD - sorting function - currently on TeamID, use to sort entrants
    3. x] modify api to include desc,
    4. x] description field content 'data' includes mutliple fields of data
      1. ] == ] teamID, ] AverageFinishLast10, ] description
      2. ] 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
    5. x] ADD - code - unpack the description field into its own object,
    6. x] ADD - new description.object properties to current object
    7. i] DATA getEntrants for r15(michigan) - ] data src, ] entrants.csv
    8. ] DATA updateDrivers, all, description = new format, data get AvgFinish, last 10 for r15

[currently]

  1. [2015-06-12] NEW task IN 
    1. ] passing multiple values in one feild
    2. ] example - use ' decription' field to include multiple values
    3. ] feilds - ] teamID, ] description, ] averageFinishLast10atTrack 
  2. [00:00] NEW task IN 
    1. x] options ===
    2. x] send as string - example, team=48, averageLast10=9.5, description=yada yada yada,
    3. x] send as json - {"teamID":"48", "description":"Jimmie is on his ..."}
  3. [00:00] NEW task IN
    1. ] send as string
    2. ] then "unpack" each string in code,
    3. ] split 'fields by ',' 
    4. ] then split by '=', to get key/values
    5. ] assign the parsed values to obj properties
  4. [00:00] NEW task IN
    1. > ] send as json
    2. x] {"teamID":"24","AverageFinishLast10":"4.5", "Description":"Truex Jr has been red hot lately ..."}      
    3. x] TEST = pass,
    4. ] BUT i can't seem get the description field content into an object var,
    5. ] TRY JSON.parse(),
    6. >] SUCCESS - USING eval() works, BUT eval is evil
    7. ]
  5. [00:00] NEW task IN 
    1. ] sort - order by AverageFinishLast10(asc) 
    2. ] PAGE home - define and add sort function, currently using teamID(aka priority) to order entrants by teamID
    3. ] SUCCESS using
    4. ] NEXT = add function, sort by AverageFinishLast10
  6. [2015-06-13] NEW task IN sospep/nations/nascar - drivers
    1. ] DATA - update drivers records, - include content for Michigan race, AvgFinish, desc=blurb, teamID
  7. [00:00] NEW task IN PAGE-home.js
    1. x] include obj create code in loop,
    2. x] use for each driver record 
    3. x] assign properties(x] AvgFinishLast10, x] Description, x] teamID ) to each 'driver' element
  8. [00:00] NEW task IN
    1. ] # # - ranking points - assign point values, based on array position, first gets max points=43, next get , array needs to be sorted
  9. [00:00] NEW task IN
    1. x] SORT - sort by AverageFinish (rankings pass 1) || sort by TeamID ( entrants)
    2. x] move sorting into separate function(s),
    3. x] sort by AverageFinishLast10 (@track)
    4. x] SORT - by TeamID
  10. [00:00] NEW task IN
    1. x] # # - CREATE-function - assignRankingPoints(array,maxPoints), - make a 2nd pass through array of drivers after sorting
    2. x] sets the top10s = "three" for top 10 drivers, should = 1, others should = null
  11. [00:00] NEW task IN
    1. ] # # -
  12. [00:00] NEW task IN
    1. x] write test file
    2. x] CREATE-function -  fileSave(fileName,fileContent) 
    3. x] REF = prev example in page code, src = c# corner example
    4. x] driverRank.toString() , gets you [object][object],..., ...
    5. x] use JSON stringify to get it done
  13. [2015-06-14][00:00]
    1. ] use json file VS using api call ( performance, wont change once they are set  )
    2. ] put api call, filewrite code into its own function ( will need way ADD method to call this function)
  14. [00:00] NEW task IN
    1. x] # # - PUBLISH as -v-005

[next]

  1. > [00:00] NEW task IN
    1. ] # # - entrants =  rankings-0
    2. ] # # - write finished "rankings-1" to json file, load json file VS using qry 
    3. ] # # - rankings-2 - post-qualifying
    4. ] # # - rankings-3 - post-final-practice
    5. ] # # - driverCost = ] getData from nascar fantasy, ] each driver, ] each race
    6. ] # # - DATA = ] ADD missing drivers(12)
Details Photos Edit more

Details

ID: 5281

NAME: 4800-v-004-005

DESCRIPTION: #### - UPDATE - PAGE - rankings - ] getting more date from external api, ] getting multiple fields of data from a single field ] sorting by ... ] ranking points

START DATE TIME: 2015-06-12 12:25:21

EST DURATION: 01:00:00

END DATE TIME: 2015-06-12 13:25:21

STATUS: Completed

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities