CREATE-task# # -
FEATURE-4900-bio - porting to .org
[previously]
- [00:00] NEW task IN
- [] # 2793 - CREATE-task# # - FEATURE-4900-bio - porting to .org - currently the MyStuff/Bio feature is not functional
- [] TLDR - bio view should show 'all' 'task/items' that are 'Completed' and had a high priority value assigned(-1), [] these items are organized by the calendar, plan and taskgroup that they appeared in, aka bio_by_project, [*] based on view_priority (actually uses db viewPriority
- []
- [*] repurposing this task, ORIG = PROCESS misc - tasks that, ON = 2019-09-19, content moved to today
- [00:00] NEW task IN - prj-022 - ISSUE-001
- [] # # - FEATURE bio - server error on page load
- [x] ISSUE-001 - error of missing bracket
- [00:00] NEW task IN - - ISSUE-002
- [x] ISSUE-002- database construction error, the 'view' was created as a table and not as a view, REF = # 4569
- [00:00] NEW task IN - ISSUE-003
- [] # # - CREATE-task# # - ISSUE-003 - ] view is missing column used by the 'Page grouping', ]
- [x] TRY = [] modify query to order results by desired ouput, execution is VERY VERY slow(30ish seconds) in phpmyadmin, [] modify view to remove 'grouping' queries and 'display' code
- ==
- [] TRY =
- [x] rebuild the VIEW adding fields for parent_id_plan and parent_id_taskgroup
- [x] modified code for display, naming from: plan_parent_id to|: parent_id
- [x] returned the REM oved display task item code ( removed to isolate errors )
- > [] REM oved 'code' in task display block, used to calculate totals, WAS not executing, WAS displaying
- [x] TEST = view/bio
- [x] result = PASS - page loads, and displays DATA, looks like CRAP, see TOD
- [00:00] NEW task IN - ISSUE-004 - content alignment
- [x] content is left aligned -
- [x] RESOLUTION - added wrapper tag, removed errant div tag,
- [00:00] NEW task IN - ISSUE-005 - headings with no content
- [x] ISSUE = why are 'heading's that have no content items displaying -
- [x] CAUSE.suspect = the query to get the groups, is only checking priority and not status, therefore it displays groups where no records are displayed
- [*] EX before - dons - [] myCal/plan-per/today-demo, [] myCal/plan-project/ideas, [] myCal/plan-project/money-invest, [] prj-022/doc-period/this-month, [] prj-022/plan-period/this-month[] prj-022/plan-prj/toolbar-records, [] prj-026-no/document/this-year, [] prj-026-no/plan/document, [] prj-026-no/plan/this-year
- [*] the ones on the list above, should show up on the priority report with content
- [x] EDIT = ] db qry for plans, ] for taskgroups, ] added var Status to Page, ]
- [x] EDITed qrys for cal, plans and taskgroups.
- [x] TEST = display only groups where there is data items preset,
- [x] .result = PASS on dons(# items, # groups), on public(2 items, 2 groups)
- [00:00] NEW task IN - ISSUE-006 - stats bar - location and style
- [x] ISSUE = stats bar - location - currently displays at top of page, covering nav links in navHeader
- [x] NEW LOCATION = relocated it to directly below navHeader, [x] removed current style of "statsbar" (used absolute postioning),
- [x] added style = navHeader to statsbar
- [x] EDIT - navHeader - [x] removed id=navHeader -> added class = navHeader, [x] removed REMmed code
- [x] EDIT - sospep.css - changed to . css class VS # id, [x] added h4 , set to 1.0 rem, (h3 = 1.25 rem)
- >[00:00] NEW task IN - ISSUE-007 - stats bar functionality
- [] # # - [] stats bar - functionality -
- [x] moved 'statsBar' into '/Shared' as partial page, call RenderPage,
- [] ERROR re: - var doesnt exist in this context, RESOLUTION: changed varName to Page.varName
- [] even after changing to Page["var"] property
- [] PROBLEM WAS - shared page is rendered BEFORE values are caculated. Values are calculated in the display list items loop. Page is rendered at the top. This is why was previously using
- [] RESOLUTION =
- [1] return prev, render component after display loop, then re position (update from :using absolute position, to: ] reposition with script ] reposition with css)
- [] https://stackoverflow.com/questions/104953/position-an-html-element-relative-to-its-container-using-css
- [2] call js method - ] write vars to input hidden, ] call js method, updateStatsBar(), ] write js method updateStatsBar, -uses hidden input vars to update statsbar # values
- [] ERROR re: type passed into arg, when calling the calculateCompletedPercentage helper method
- [00:00] NEW task IN - CLOSE
- [] CODE renamed view_p1 AS view_priority
- [] DB
- [] ?= REM OVE - case statement for cases based on called from plan,
- will come back to update ] statsbar functionality
[currently]
- [00:00] NEW task IN - UPDATES
- [x] added isAuthenticated check on 'display' edit toolbars,
- [x] moved view/task link to taskName VS in links toolbar,
- [*] use of code inside code block, example nested if statement, 2nd if requres @{ ... } wrapper
- []
[next]
- [00:00] NEW task IN TODO
- [x] content is left aligned -
- [] heading styles -
- [x] stats bar - location
- [x] stats bar - style
- [i] stats bar - functionality
- [x] why are 'heading's that have no content displaying -
- [i] database - update VIEW on OTHER DATABAseS, - [x] dons, [] ewa, []
- [00:00] NEW task IN
- [] # # - CREATE-task# # -
- [] bio - all
- ===
- [] bio - by calendar
- [] bio - by plan/document
- [] bio - by taskgroup
- ===
- [] bio - by period - ( day, month, week, quarter, )
- [] bio - by period - custom
[reference]
- [*] sospep public - # 4900 - feature definition
query
SELECT * FROM `view_p1` WHERE priority = -5 and status = 'Completed'
create view
0 - example = CREATE VIEW view_p1 AS SELECT * FROM tasks t, taskgroups tg WHERE tasks.priority = -1 JOIN tg on tasks.parent_id = tg.id_taskgroup
1 - PASS = SELECT * FROM tasks JOIN taskgroups ON tasks.parent_id = taskgroups.id_taskgroup WHERE tasks.priority = -1 ;
1.1 - PASS = SELECT tasks.*, taskgroups.id_taskgroup, taskgroups.name_taskgroup FROM tasks JOIN taskgroups ON tasks.parent_id = taskgroups.id_taskgroup WHERE tasks.priority = -1
1.2 - PASS = SELECT tasks.*, taskgroups.id_taskgroup, taskgroups.name_taskgroup, plans.id_plan, plans.name_plan
FROM tasks JOIN taskgroups ON tasks.parent_id = taskgroups.id_taskgroup JOIN plans ON taskgroups.parent_id = plans.id_plan WHERE tasks.priority = -1
1.3 - PASS = SELECT tasks.*, taskgroups.id_taskgroup, taskgroups.name_taskgroup, plans.id_plan, plans.name_plan, calendars.id_calendar, calendars.name_calendar
FROM tasks
JOIN taskgroups ON tasks.parent_id = taskgroups.id_taskgroup
JOIN plans ON taskgroups.parent_id = plans.id_plan
JOIN calendars ON plans.parent_id = calendars.id_calendar
WHERE tasks.priority = -1
1.4 - PASS =
CREATE VIEW view_p1 SELECT tasks.*, taskgroups.id_taskgroup, taskgroups.name_taskgroup, plans.id_plan, plans.name_plan, calendars.id_calendar, calendars.name_calendar
FROM tasks
JOIN taskgroups ON tasks.parent_id = taskgroups.id_taskgroup
JOIN plans ON taskgroups.parent_id = plans.id_plan
JOIN calendars ON plans.parent_id = calendars.id_calendar
WHERE tasks.priority = -1 AND tasks.status <> "Completed";
1.5 =
CREATE VIEW view_p1 AS SELECT tasks.*, taskgroups.id_taskgroup, taskgroups.name_taskgroup, plans.id_plan, plans.name_plan, calendars.id_calendar, calendars.name_calendar
FROM tasks
JOIN taskgroups ON tasks.parent_id = taskgroups.id_taskgroup
JOIN plans ON taskgroups.parent_id = plans.id_plan
JOIN calendars ON plans.parent_id = calendars.id_calendar;
1.6 = [] ADDing fields to view -
- AS parent_id_plan,
- AS parent_id_taskgroup
CREATE VIEW view_p1 AS SELECT tasks.*, taskgroups.id_taskgroup, taskgroups.name_taskgroup, taskgroups.parent_id AS parent_id_taskgroup, plans.id_plan, plans.name_plan, plans.parent_id AS parent_id_plan, calendars.id_calendar, calendars.name_calendar
FROM tasks
JOIN taskgroups ON tasks.parent_id = taskgroups.id_taskgroup
JOIN plans ON taskgroups.parent_id = plans.id_plan
JOIN calendars ON plans.parent_id = calendars.id_calendar;
displaying groups
- EDITed code on parent_id
- TO if (plan.parent_id_plan == calendar.id_calendar){
create query
[] my groups - using order by in query to get dessired grouping, WORKS but very slow
SELECT * FROM view_p1 WHERE priority=@0 && status=@1 ORDER by name_calendar ASC, name_plan ASC, name_taskgroup ASC
SELECT * FROM view_p1 WHERE priority= -1 && status='Completed' ORDER by name_calendar ASC, name_plan ASC, name_taskgroup ASC;
[] 2019-10-30
[] FIX ISSUE - ERROR missing bracket
[] TEST appears to be in div displayList
[] removed some razor comments
[] bracket matching, i think i found and eliminated the extra
[] TEST = PASS BUT - page loads, BUT no results
[] FIX ISSUE = no results display on page
[] CAUSE - suspect = view on database wasn't created properly
[] TRY =
[] RESOLUTION - created new view ,
[]