📺 Develpreneur YouTube Episode

Video + transcript

Learn Python And Django Day 50

2021-04-20 •Youtube

Detailed Notes

Part III of our walk-through/UAT testing. We will be testing the application for usability and features to make our experience a productive one.

You can view source for today and all prior days by reviewing the tag Day 50 at this GitHub: https://github.com/robbroadhead/develpreneur-pythontutorial

Transcript Text
[Music]
well hello and welcome back
we are into the remediation phase of our
issues we had a nice little list
of items that our tasks were going to
have to these are bugs and features
and last time we left off we were
actually working into those so
i'm going to dive right into it this
episode we are going to be making code
changes it will be safe so we'll be back
to
being able to check the latest in github
so what we ran into is our in our
immediate time frame things were not
showing up and part of that is here
which is a good little example of
something we can learn is we had where
query was not
equal to status equal to complete
and what we also want to do now is we're
going to do where a query
where time frame is equal to current
because we were able to print that out
so we're going to get rid of our little
print statement there
and now what's going to happen we should
see in our report
if we do control ours we're going to see
everything is in
immediate that is our current time frame
now what we want to do here is we
probably want to be able to set
the time frame and i think we will
leave that for now but let's see if we
from active task create it
i do want to yeah immediately parent is
let's say
active tasks
filter by time frame
and we may already have that actually
let's go back and look to that
uh filter by time frame okay
and that looks pretty good
and so we also want to do to the general
so we're going to actually add this in a
couple of places so that'll be good
now what we're going to do here is since
we're remediating
since we're working through tasks
although we're going to be testing our
application
and again we're using this application a
little differently from the way we
normally would
i do want to talk about the idea of
working through
issues and things like that and i think
typically the best way to do it
is going to be essentially a page at a
time or a
chunk of functionality at a time as
we've somewhat seen as we work through
this
similar to the implementation debugging
or
fixing you know feature improvement
stuff like that
does work the same way so we're going to
be able to hopefully chunk a couple of
these at the same time
now let's start in our case because
we are our core is tasks
let's start with creating a task
one of the things we have here is create
task we need a save message
so we want to do a message when we do an
update on editing
tasks and if we look at those
we have basically creating tasks listing
tasks
and edit tasks we've got three task
related things
so we're going to be looking at create
task and edit task
and when we do those we're going to see
that those all come down to the task
edit page
so we want to do here is we do have a
message we already had a message that is
potentially going to be displayed and
we're just not
actually setting it so what we want to
do
is when we do we've got two of these so
we've got edit task
and see now here this is interesting
enough
is we have message saved but we're doing
this redirect
to task and we don't have a message
you know we display to tasks from edit
tasks we're doing a redirect so we're
just rebuilding the list
and we're not actually storing the
message
and we're probably going to run into
that here as well as we say if it's an
invalid record
now there it does come through and we're
okay
so we can probably do oh because
record save is going to a redirective
task
what we probably want to do here is as
we've seen before is let's go ahead
and set message as a session
and we can do that fairly quickly so now
we're going to do on our cleanup
here and so now
my message equals none and then we're
gonna do
see where we set one
is uh let's see
well we don't use it here we go so we do
have like a good example of where we set
one
and now so for task let's see reports
page let's
do tasks so deleting a task
is going to return to the task list and
what we want to do here
is we're gonna do
uh message
and here we're gonna save the name
actually we're gonna do it this way
oh we're not gonna do that because we
just did delete tasks so this one just
deletes all tasks
so we're just going to do tasks
deleted
and then if we do edit task
we're gonna do instead of message
we're gonna do the session
so we don't really need
we're just going to do that all the way
through so instead of keeping that
variable
oh well we can do it here because we are
going to do it
we're going to use it so let's just save
it in some cases
if we can we're going to pass through
here so edit task
that should be good it's going to
basically do an update
update data for the record it comes
through this one
that message is going to get displayed
so we're okay
list tasks now is going to be
that one needs to actually set a message
so message
is going to be message
and then we're just going to do message
equals did i have that oh
i didn't have the whole thing
so let's see what happens
here
and we also had so that was edit task
and we also had what was the other one
create task
so here we need to do the same thing as
we have a message but
um let's see if it comes through
create a new record create task
record saved invalid record
oh it shot it may not be displaying
right so let's go see what happens
because if we did an
edit it should be saying message saved
and it is using task edit task edit
here
so let's take a look at that so i think
we've got it so create task we should
have a save
message so here if i do save this to
complete
let's see if it's displaying
uh that was in edit
oh edit save does not actually return so
we should be okay with edit that's all
right but now if we do
create task let's go back and look at
ours
i think we have yeah complete
let's see so we wanted to look at
oh let's just go here let's go home
whoop
we probably don't have a proper parent
so we'll have to fix that
immediate now let's go back to home and
do we have
we only have we that's right we got rid
of completed
oh so let's actually go to our report uh
no let's go back and
so we probably shouldn't have completed
that but that's okay we're gonna
fix that anyway so immediate and this
was on create it was not showing so
let's create a task
that we're going to just let's see we're
an immediate so we're going to create a
test
this is a test
let's just so we save that it's going to
say nope i need to do that
if i do new okay so it's actually
there it is so that's our message and
before
was something else so if we look here
uh that record save let's actually we're
going to shrink this down
to oh let's say
well that's a 4 already
let's make this a div
and class equals
i can't remember if we can use this or
not there we go class equals message so
we're going to change this guy
to that
so let's um take that
this is on create task and let's just
fix that real quick
we're not even going to create a task
force this time
this is going to be that it's going to
be a
message and let's get rid of that and
then what i'm going to want to do
here record saved
so now if i take that now this is a new
record
and so if i take this and try to delete
it
let's see what it does it doesn't really
display
anything on me so what i need to do on
the delete
if i go to that task list
this is a test it actually oh
interesting delete
duplicated so now if i come in and
delete
let's see oh it was showing all tasks if
i go to roadmaps
immediate
and this is a test so i did delete one
of them
and so i'm going to delete him
and so i've got deletes going to the
wrong place basically
delete returns to task list
do i already have that task
uh let's see oops
i don't want that one i want
immediate do i have
delete
yeah so i'm going to fix that too so
delete returns to the task list instead
i want that to
go to
so when i do a task and i think it's
here i think that's
actually in the delete
there's delete all tasks
oh let's make sure what that does so if
i go to task edit
delete sends a
delete oh it's just just a submit and
it's going to come in as a delete so
let's see
so that was edit task
so if it's a delete oh here we go
i need to do record
deleted
and instead of a i think i'm just going
to not do the redirect on that
i'm probably not going to do it on the
saved
either well this is on an edit so i
probably do
want to return so i need to do
essentially like a last page
and so this is going to be a little bit
more interesting because what i'm going
to do is
i'm going to save potentially where i'm
coming from i guess what i can do is
probably go to the parent
but this is going to take a little bit
of thought and so we're going to think
through
this a little bit and we will tackle
this one the next time around
so we'll save that instead let's see
so now we've done done that we've got a
record deleted it's going to redirect to
tasks
so tasks oh does get our session so now
if we delete
uh let's see did i have something here
that
okay so i'm going to create a task real
quick for that period
and this is going to just be called
delete me
if i save it oh
okay record saved and then i do want to
fix
oh there's another one is that
remove delete from
task create
if i return to immediate if i go to
delete me let's see what that does now
where
is delete me there's oops
delete me and if i delete him
and then it's just going to come back to
my list of all tasks and i want it to go
back to
where i came from so we'll think about
that one later uh the first one we'll do
is let's go to edit
i'm sorry to edit because we can fix
this one rather quickly before we wrap
this up
delete record we're going to do an if
and this is going to end if
and what i can probably do is
i'm gonna check if
probably id we're going to keep it
simple
title equals uh what is the title on
edit edit task
uh here tyco title equals
edit task then we can delete
otherwise we cannot so edit task
whoops
so let's go back and look at this one
real quick
oh this is going to be something
different right
i always forget i think it's eq oh let's
try this
now we'll fix it real quick this way
there we go so it does and now if we do
task list does not do if we go to home
we do create tasks
and it doesn't so we do have that one
fixed so that will wrap it up
sorry if we went along i'm going to try
to trim this one down again edit it to
get us down to the 15 minutes
some of my meandering but we're going to
continue next time around because we're
going to keep on
working our way through this list and
try to hammer out a couple of them
in the next episode or two that being
said go out there have yourself a great
day
a great week and we'll talk to you next
time
you
Transcript Segments
0.46

[Music]

26.24

well hello and welcome back

28

we are into the remediation phase of our

30.88

issues we had a nice little list

33.12

of items that our tasks were going to

35.12

have to these are bugs and features

37.76

and last time we left off we were

38.96

actually working into those so

41.12

i'm going to dive right into it this

42.64

episode we are going to be making code

44.32

changes it will be safe so we'll be back

46.16

to

46.96

being able to check the latest in github

50.879

so what we ran into is our in our

53.44

immediate time frame things were not

55.28

showing up and part of that is here

58.559

which is a good little example of

59.76

something we can learn is we had where

61.44

query was not

62.32

equal to status equal to complete

65.519

and what we also want to do now is we're

68.24

going to do where a query

70.32

where time frame is equal to current

73.68

because we were able to print that out

75.28

so we're going to get rid of our little

76.4

print statement there

80.159

and now what's going to happen we should

82.24

see in our report

84.08

if we do control ours we're going to see

86.24

everything is in

87.2

immediate that is our current time frame

90.479

now what we want to do here is we

92.159

probably want to be able to set

93.92

the time frame and i think we will

98.799

leave that for now but let's see if we

100.799

from active task create it

102.24

i do want to yeah immediately parent is

105.52

let's say

106.799

active tasks

109.84

filter by time frame

114.56

and we may already have that actually

116.96

let's go back and look to that

119.759

uh filter by time frame okay

123.759

and that looks pretty good

129.679

and so we also want to do to the general

131.52

so we're going to actually add this in a

132.8

couple of places so that'll be good

134.8

now what we're going to do here is since

137.599

we're remediating

138.879

since we're working through tasks

141.2

although we're going to be testing our

142.56

application

143.44

and again we're using this application a

145.599

little differently from the way we

146.8

normally would

148.239

i do want to talk about the idea of

149.84

working through

151.599

issues and things like that and i think

154.56

typically the best way to do it

156.4

is going to be essentially a page at a

158.56

time or a

160.08

chunk of functionality at a time as

163.12

we've somewhat seen as we work through

164.72

this

165.76

similar to the implementation debugging

168.84

or

170.16

fixing you know feature improvement

172.319

stuff like that

173.28

does work the same way so we're going to

174.8

be able to hopefully chunk a couple of

176.48

these at the same time

178.4

now let's start in our case because

181.84

we are our core is tasks

185.12

let's start with creating a task

188.959

one of the things we have here is create

190.319

task we need a save message

192.239

so we want to do a message when we do an

195.28

update on editing

196.64

tasks and if we look at those

200.159

we have basically creating tasks listing

203.12

tasks

204.159

and edit tasks we've got three task

206.4

related things

207.599

so we're going to be looking at create

208.72

task and edit task

212

and when we do those we're going to see

214.48

that those all come down to the task

216.799

edit page

218.48

so we want to do here is we do have a

221.519

message we already had a message that is

224.799

potentially going to be displayed and

227.36

we're just not

228.4

actually setting it so what we want to

230.48

do

232.08

is when we do we've got two of these so

234.4

we've got edit task

239.439

and see now here this is interesting

241.92

enough

244

is we have message saved but we're doing

246.48

this redirect

248.08

to task and we don't have a message

252.239

you know we display to tasks from edit

254.4

tasks we're doing a redirect so we're

256.32

just rebuilding the list

258.4

and we're not actually storing the

260.56

message

261.6

and we're probably going to run into

262.72

that here as well as we say if it's an

264.8

invalid record

266

now there it does come through and we're

268.479

okay

269.6

so we can probably do oh because

272.88

record save is going to a redirective

275.28

task

275.919

what we probably want to do here is as

277.759

we've seen before is let's go ahead

279.84

and set message as a session

285.28

and we can do that fairly quickly so now

287.04

we're going to do on our cleanup

289.12

here and so now

292.32

my message equals none and then we're

295.36

gonna do

296.32

see where we set one

302.4

is uh let's see

312.96

well we don't use it here we go so we do

314.88

have like a good example of where we set

316.56

one

320.08

and now so for task let's see reports

323.12

page let's

326.4

do tasks so deleting a task

332.639

is going to return to the task list and

335.12

what we want to do here

337.199

is we're gonna do

340.32

uh message

343.919

and here we're gonna save the name

346.4

actually we're gonna do it this way

350

oh we're not gonna do that because we

351.039

just did delete tasks so this one just

352.639

deletes all tasks

354.4

so we're just going to do tasks

357.68

deleted

361.6

and then if we do edit task

368.88

we're gonna do instead of message

373.199

we're gonna do the session

381.039

so we don't really need

386.16

we're just going to do that all the way

387.199

through so instead of keeping that

388.4

variable

392.479

oh well we can do it here because we are

394.56

going to do it

395.68

we're going to use it so let's just save

397.12

it in some cases

399.84

if we can we're going to pass through

401.44

here so edit task

403.919

that should be good it's going to

405.039

basically do an update

407.52

update data for the record it comes

410.24

through this one

411.68

that message is going to get displayed

413.68

so we're okay

415.12

list tasks now is going to be

420.4

that one needs to actually set a message

425.039

so message

430.4

is going to be message

434.8

and then we're just going to do message

436.4

equals did i have that oh

439.199

i didn't have the whole thing

442.479

so let's see what happens

448.84

here

451.199

and we also had so that was edit task

454.16

and we also had what was the other one

458

create task

466.96

so here we need to do the same thing as

468.639

we have a message but

471.199

um let's see if it comes through

476.479

create a new record create task

479.599

record saved invalid record

483.039

oh it shot it may not be displaying

485.039

right so let's go see what happens

486.4

because if we did an

487.199

edit it should be saying message saved

492.8

and it is using task edit task edit

496.72

here

501.36

so let's take a look at that so i think

503.759

we've got it so create task we should

505.36

have a save

506

message so here if i do save this to

509.36

complete

510.08

let's see if it's displaying

513.76

uh that was in edit

517.68

oh edit save does not actually return so

520.8

we should be okay with edit that's all

522.32

right but now if we do

524

create task let's go back and look at

527.279

ours

527.76

i think we have yeah complete

533.04

let's see so we wanted to look at

540.72

oh let's just go here let's go home

543.68

whoop

545.04

we probably don't have a proper parent

546.56

so we'll have to fix that

550

immediate now let's go back to home and

552.72

do we have

554.56

we only have we that's right we got rid

556.72

of completed

560.32

oh so let's actually go to our report uh

563.68

no let's go back and

566.72

so we probably shouldn't have completed

568

that but that's okay we're gonna

569.76

fix that anyway so immediate and this

572.399

was on create it was not showing so

574.56

let's create a task

576.24

that we're going to just let's see we're

579.6

an immediate so we're going to create a

580.72

test

582.48

this is a test

587.839

let's just so we save that it's going to

589.6

say nope i need to do that

591.92

if i do new okay so it's actually

595.839

there it is so that's our message and

598.88

before

600.16

was something else so if we look here

605.6

uh that record save let's actually we're

607.6

going to shrink this down

610.399

to oh let's say

613.68

well that's a 4 already

617.2

let's make this a div

621.279

and class equals

624.8

i can't remember if we can use this or

626.32

not there we go class equals message so

628.24

we're going to change this guy

630

to that

633.519

so let's um take that

637.2

this is on create task and let's just

640.48

fix that real quick

642.079

we're not even going to create a task

643.279

force this time

645.839

this is going to be that it's going to

648.24

be a

658.839

message and let's get rid of that and

661.36

then what i'm going to want to do

662.56

here record saved

666.16

so now if i take that now this is a new

668.32

record

669.6

and so if i take this and try to delete

671.6

it

672.72

let's see what it does it doesn't really

675.36

display

676

anything on me so what i need to do on

678

the delete

681.279

if i go to that task list

684.72

this is a test it actually oh

686.56

interesting delete

687.76

duplicated so now if i come in and

690.16

delete

695.839

let's see oh it was showing all tasks if

699.36

i go to roadmaps

701.76

immediate

706.079

and this is a test so i did delete one

710.079

of them

710.56

and so i'm going to delete him

713.76

and so i've got deletes going to the

715.2

wrong place basically

717.04

delete returns to task list

720.16

do i already have that task

723.6

uh let's see oops

726.959

i don't want that one i want

730

immediate do i have

733.12

delete

737.36

yeah so i'm going to fix that too so

738.88

delete returns to the task list instead

742.72

i want that to

746.32

go to

750.24

so when i do a task and i think it's

753.44

here i think that's

754.399

actually in the delete

757.68

there's delete all tasks

761.04

oh let's make sure what that does so if

762.48

i go to task edit

764.639

delete sends a

768.56

delete oh it's just just a submit and

771.04

it's going to come in as a delete so

772.56

let's see

775.36

so that was edit task

779.839

so if it's a delete oh here we go

783.6

i need to do record

786.639

deleted

793.12

and instead of a i think i'm just going

795.68

to not do the redirect on that

797.36

i'm probably not going to do it on the

798.839

saved

800.72

either well this is on an edit so i

804.8

probably do

805.6

want to return so i need to do

809.44

essentially like a last page

814

and so this is going to be a little bit

816

more interesting because what i'm going

817.12

to do is

817.839

i'm going to save potentially where i'm

820.56

coming from i guess what i can do is

822

probably go to the parent

823.92

but this is going to take a little bit

825.68

of thought and so we're going to think

827.76

through

828

this a little bit and we will tackle

829.68

this one the next time around

833.519

so we'll save that instead let's see

837.6

so now we've done done that we've got a

839.199

record deleted it's going to redirect to

841.12

tasks

842.24

so tasks oh does get our session so now

844.959

if we delete

847.44

uh let's see did i have something here

851.36

that

854.48

okay so i'm going to create a task real

856

quick for that period

861.04

and this is going to just be called

862.399

delete me

864.88

if i save it oh

869.36

okay record saved and then i do want to

872.88

fix

873.279

oh there's another one is that

878.079

remove delete from

881.76

task create

888.24

if i return to immediate if i go to

890.24

delete me let's see what that does now

892.24

where

892.639

is delete me there's oops

896

delete me and if i delete him

899.279

and then it's just going to come back to

900.72

my list of all tasks and i want it to go

903.12

back to

903.839

where i came from so we'll think about

905.519

that one later uh the first one we'll do

907.68

is let's go to edit

909.519

i'm sorry to edit because we can fix

911.04

this one rather quickly before we wrap

912.8

this up

915.12

delete record we're going to do an if

923.36

and this is going to end if

927.36

and what i can probably do is

934.8

i'm gonna check if

938.32

probably id we're going to keep it

940.639

simple

942.959

title equals uh what is the title on

947.6

edit edit task

954.16

uh here tyco title equals

958.959

edit task then we can delete

963.68

otherwise we cannot so edit task

968.079

whoops

973.44

so let's go back and look at this one

974.959

real quick

979.12

oh this is going to be something

980.56

different right

984.56

i always forget i think it's eq oh let's

987.839

try this

988.48

now we'll fix it real quick this way

991.6

there we go so it does and now if we do

997.68

task list does not do if we go to home

999.44

we do create tasks

1001.279

and it doesn't so we do have that one

1002.639

fixed so that will wrap it up

1005.759

sorry if we went along i'm going to try

1006.959

to trim this one down again edit it to

1008.8

get us down to the 15 minutes

1010.56

some of my meandering but we're going to

1012.72

continue next time around because we're

1014

going to keep on

1014.88

working our way through this list and

1016.16

try to hammer out a couple of them

1018.24

in the next episode or two that being

1020.24

said go out there have yourself a great

1022.16

day

1022.639

a great week and we'll talk to you next

1036.839

time

1041.199

you