task

PASS new version -v-008

LIST-UPDATES-prj-4800

2015-10-04, 2015-10-05

[previously]

  1. PROJECT-PASS-plan
    1. ] # 4800 - overview && status 
  2. PROJECT-PASS-document
    1. ] # # -

[currently]

  1. [2015-06-25] NEW task IN -v-008
    1. x] # 5325 -v-007-001 - ] selections ( add costThisRace field, selected array, function makeSelections2 ) ] divide createRankings into -entrants, -qualified, -practiceF / final
  2. [00:00] NEW task IN
    1. ] add date property to Races
  3. [2015-07-19]  NEW task
    1. x] routes.js - UPDATE "selections" array with data for RACE-19, RACE-18
  4. [00:00] NEW task
    1. x] routes.js - ADD method - lookup selections index value ( by id = user+race)
    2. x] routes.js/selections - CALL new method to get the index value of the selection that you want to display on the selections page ( )
    3. x] routes.js/selections - PASS selectionsIndex into .jade view  
  5. [00:00] NEW task IN
    1. x] selections.jade - x] REPLACED hardcoded index value for selection with var
  6. [2015-mm-dd][00:00] NEW
    1. ] remove Teams DATA array - was used prev by PG selelctions, (? lookup driver based on car# ), dont have content data, look in prev ver of home.js 
  7. [review] [2015-mm-dd] v-006 forward [00:00] NEW task IN
    1. ] # # - entrants =  rankings-0
    2. x] # # - write finished "rankings-1" to json file, load json file VS using qry 
    3. x] # # - DATA = ] ADD missing drivers(12)
    4. ?] # # - rankingsD - review
  8. [00:00] NEW task IN doc/prj-4800
    1. i] # 5297  -v-006-001 i] init logic ( use {race}-rankings-{status), where status = entrants, qualified, ) i] getRaceStatus, i] setRaceStatus
  9. [2015-mm-dd] NEW task IN  OUTLINE v-007 (cc-v-006-001)
    1. ] race# - CREATE-complete drivers set - redo rankings1.json (*] current example data set) ] rewrite current rankings file with complete drivers,
    2. i] # # - race# -  rankings 2 - post qualify
    3. ] # # - race# - rankings 3 - post final practice
    4. ] entrants(actual)-race -> ] entrants w/AvgFinish -> ] qualified:##, ->] 
  10. [2015-mm-dd] 4800-v-008-PLAN 
    1. ] # # - ] outline
    2. ] # # - selections - (rankings, driverCostThisRace) - need get driverCostThisRace
    3. ] # # - driverCostThisRace = ] getData from nascar fantasy, ] for each driver, ] for each race 

  1. [2015-10-04] PAGE index.js - 
    1. *] COPIED 'Selections' array data from 'index/home.js' to Selections2.js FILE
    2. ] remove orig. selections array from home.js 
    3. ] looks like it is being used in /results:race 
  2. [00:00] PAGE selections 
    1. x] deprecated original version AS -v-001
    2. x] UPDATE - display array of items, returned from calling new method, this is all selection entries for a single race
  3. [00:00] NEW PAGE selections2.js 
    1. *] USE races.js as example
    2. x] CHANGE from: "module.exports(app) { " ...
    3. x] CHANGE to: plain old object file 
    4. *] REF 1 - module.exports VS exports
    5. ] ADD NEW METHOD - getSelectionsByRaceUserID() - added method to return a single array element(selection), with user supplied value (id)
    6. ] ADD NEW METHOD - getSelectionsByRaceID() - added method to return an array of selection elments, with user supplied value(race-nn), 
  4. [00:00] PAGE - Register 
    1. ] PRB - missing menu
    2. ] TRY - moved PG to same directory, moved PG about to account/ dir, this works fine, had to change path to layout file 
  5. [2015-10-05][00:00] NEW task IN 
    1. ] # # - results, uses in page selections, change over to using module selections
  6. [00:00] NEW task IN 
    1. ]  add method to selections.js, findbyIndex
    2. ] TEST = works for 2015-12 ... 2015-15 
  7. [00:00] NEW task IN PAGES
    1. x] # # - PAGE results - new file, take results out of home, base=Selections, port methods
  8. [00:00] NEW task IN PAGE-VERSIONS
    1. ] # # - home.js -v-011 - 
    2. x] remove selections data array, now using 
    3. x] remove greenspace 
  9. [00:00] NEW task IN PAGES-deprecated
    1. x] deprecated races-v00# 
  10. [00:00] NEW task IN PAGE view/rankings
    1. ] UPDATE PAGE view/rankings - replace menu variables with race info(id, name) with race var
  11. [00:00] NEW task IN PAGE routes/home
    1. x] display results - by race
    2. x] call lookup Race by ID
  12. > [00:00] NEW task IN PAGE view/results
    1. x] pass in race object
    2. *] had 2(race objects) in data passed to view, first 1 was being overwritten by 2nd one
    3. x] removed mystery var x.toString()
  13. [00:00] NEW task IN PG home
    1. x] removed Teams array 
  14. [00:00] NEW task in PG view/results
    1. x] removed passed in Teams and Drivers data - used for lookup of #'s to display names, details
  15. [00:00] NEW task IN PAGE routes/selections2
    1. x] ADD method exports.addSelection - for adding a new selection entry
    2. x] ADD var obj 'selection' 
    3. x] TEST=PASS with call to method, code adds to in memory, ** persistance **

[next]

  1. ]

[reference]

 
Details Photos Edit more

Details

ID: 5691

NAME: 4800-LIST-UPDATES-2015-10-04

DESCRIPTION: ] PG selections2.js ] FIX-PRB-nnnn PG register - no menu

START DATE TIME: 2015-10-04 09:08:22

EST DURATION: 01:00:00

END DATE TIME: 2015-10-04 10:08:22

STATUS: To-Do

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities