Detailed Notes
Part IV 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 51 at this GitHub: https://github.com/robbroadhead/develpreneur-pythontutorial
Transcript Text
[Music] well hello and welcome back we're continuing working through our list here of things that we need to fix and sort of bootstrapping our application as we go so let's just sort of continue we're looking at some task related stuff so i think i want to go now to add description field to task so this is going to be the one that's actually going to be because of this pretty simple we're going to go into our model and here we're going to add a description do we have a description so we do not have a description elsewhere so all we're going to do is uh we'll make it much like name and we're going to come in and call it description and let's make it and not too big so man we'll make it 500. uh verse verbose name is description and a lot of little details about the task and that will work so we'll take that and we can actually see now we can go in and we're just going to use our [Music] manage.py we're going to make migrations oops let's take that one and we're going to do it this way and so it's going to add we see here add field description to task so we're just going to go ahead and do the migration so migrate and now it's coming and done it so now what we should be able to do is actually go right back into our application and uh we have not picked that one up yet so let's see uh we may have to restart i bet we do so let's go to our app uh i did say reloaded oh it's because our form i'm sorry we got to add it now to our forms [Music] so task form let's put it right after name and this is going to be text input and the size is going to be 500. and if we do that here there you go now what we can see here is this thing is incredibly long so we want to use a multi-text a multi-line text field and there is a way to do that based on our where'd it go based here on our widgets and this is actually pretty easy because we're going to make it a text area instead of text input and that instead has instead of a size it has a columns and so let's do uh let's do 50 times 10. so let's be sort of big but we'll do that and so we have columns and then we have rows and so we're going to do there and then so we're going to do instead of sorry 500 is going to be 10 times 50 i'm sorry whoops columns is 50. rows is going to be 10. let's see this is going to be input text and that will probably work because i think i had an input text class somewhere we're going to find out momentary let's see forms text area should be able to pick that up so let's see what happens whoop i better broke it it doesn't have text area so let's take a better closer look at that oh my mistake there we go and that was why it had us all red let's see yeah it even told me what it was so now let's see did it reset yes it did so i got a description that's probably well depending on the normal screen size and that's still pretty big and we still have some space so let's uh extend that out a little bit so instead of 10 by 50 uh let's jump to oh let's say we're gonna do let's cut down those rows a couple let's cut them probably in half so let's do five rows and let's see if we do 80 let's see how that looks that's not too bad so we'll do that it's not quite our full 500 but that's okay because now we can go in here and we can just start cranking through but that's our default size and we can open it if we need to as well so there we go so that has been done and we can do a completed date which is going to be whatever today is let's assume that's the day and we're going to make it complete and time spent i mean we spent five minutes on it and so now it's complete and this is our all task so it's going to be out of our task list oops let's set my current here and so here's my oh so let's go back to this one uh annual goals oh that's about road map ah that'll work so i had my time was automatically set so i've got that one completed oop not sorry that's not what it was oh that's a due date not a completed date so i've got a few but let's go back here immediately and let's take a look at our tasks uh these are now here's an interesting bug i don't know that we fixed this one we need to remove the complete from tasks in our time frame and if we look at time frame so child tame i'm going to edit whoops uh let's see delete time frame returns to the time frame list i don't think we did we get this one fixed let's go find out real quick so if we go in here create a time frame delete me save and now if we go back to we can just go to rtfs and that's delete me oh edit and that was one of the things we wanted to fix so if we delete him he still goes back to our list so what we want to do is go to that's a good question what do we want to do if we delete a time frame then probably what we want to do is go back to either its parent or the roadmap so let's work that task uh so we're gonna go to our views and we do oh i think it's an edit tab oh there it was delete task so delete task is just going to go back to the task list instead what we want to do is let's go to uh the time frame for that guy so instead of that we're going to go to the time frame list let's see where'd that go so that's test by time frame oh let's see uh let's see create tasks nope nope well let's just go look at it here whoop whoop there we go so if we go roadmap and then select the time frame so it's going to be tf so if we go to delete delete tasks there we go oh that's for delete all tasks this is an edit task so here the redirect is not going to be there it's going to be tf and then we're going to do a string of its parent which we don't have so we're going to have to store it real quick oh we do have parent there we go the data type time frame so parent dot id and let's see we're going to do that same thing so where did we have the other task oh that may be our only one we're actually deleting a task so now oh i'm sorry we're doing delete time frame is going to be the same thing so deleting a task will return to its parent so if i come in and delete a task let's create a task this is going to be delete me again and it's part of immediate so if i go here oh okay record save returned immediate probably at the bottom delete me again so if we come in here and now if we delete so boom we're back to what we wanted time frame for immediate and then let's go ahead and do this for also for our delete um delete i don't want tasks i want time frame and so here and so he's got one he's either gonna do um oh if we delete a time frame let's just go back to the road map so now if we come in here and we go to a road map when we have one so easy enough and let's create a time frame we're gonna call it kill this and we're gonna save and now let's go back if we go here kill this and if we delete it it's gonna should oh uh roadmap it's not oh i'm sorry it should be roadmap so this should be roadmap and so i've got to fix it here i'm just going to go back to that because and so there we go so we're back to our double map so boom we got those things done so let's go take a look at our task list real quick and let's see did we get delete task returns to the task list we got that completed now that's an interesting thing we hit complete we're actually going over to headed task which we don't really want to do but it is completing um it is completing it uh let's get rid of that one got completed and so we're going to create a task whoops this is one of those bugs that we ran into so let's go back here anal goals and immediate and we're going to create a complete task goes to edit and status is new save the record let's go back to our task list is there something else we want to complete uh error message on create new tab we did get that one done let's go back to our task list and so we want to get remember we want to get some of these probably removed so we're going to actually work off of uh do we have like a to do i think we don't so we probably want to want to change our all tasks to the to do which we actually lost somewhere oh because they have to be uh to do is based off a to-do date so let's change that real quick and then we'll be set up for the next time around so if we go to to do and our urls to do is active tasks whoops whoops whoops there we go so if we go to active tasks what we want to do here is where the oh because we did it for the current time frame so we get remember we've got to set our current time frame so that's one of the things we're going to fix which i've forgotten about so if i go into map here immediate and then home now i get it okay and so this is what we're going to be working on uh let's see fix edit in the time frame list login about page broken login report report so i think we're good complete task goes to edit we'll fix that all right so we got our list we're working our way here's something we want to add we're going to probably want to add a little count so we can see where we're at so let's just do that real quick [Music] and we'll just call it count and it's going to be count and count equals tasks dot actually i think we can do length of tasks i think it's like that we're going to find out in a minute and we need to put in our page which is to do which is our list i think it's our task list and we're just going to put that up let's see where does it want to go so create tab let's put it next create task tasks count and that's just going to be count and here we go oh length is not it's probably size one oh sorry it's not linked that's as always i forget it is actually len and there it goes so now so test counts 13. so let's see how we do next time around we're going to try to continue working through these things and see if we can knock some out until next time have yourself a great day a great week and we'll talk to you then you
Transcript Segments
[Music]
well hello and welcome back
we're continuing working through our
list here of things that we need to fix
and sort of bootstrapping our
application as we go
so let's just sort of continue we're
looking at some
task related stuff so i think i want to
go now to
add description field to task so this is
going to be the one that's actually
going to be
because of this pretty simple
we're going to go into our model
and here we're going to add a
description do we have a description so
we do not have a description elsewhere
so all we're going to do
is uh we'll make it much like name
and we're going to come in and call it
description and let's make it and not
too big so
man we'll make it 500. uh verse
verbose name is description
and a lot of little
details about the task
and that will work so we'll take that
and we can actually
see
now we can go in and we're just going to
use our
[Music]
manage.py we're going to make migrations
oops
let's take that one and we're going to
do it this way
and so it's going to add we see here add
field description to
task so we're just going to go ahead and
do the migration
so migrate
and now it's coming and done it so now
what we should be able to do is actually
go right back into our application
and uh we have not picked that one up
yet so let's see
uh we may have to restart i bet we do
so let's go to our app uh i did say
reloaded
oh it's because our form i'm sorry we
got to add it now to our forms
[Music]
so task form let's put it right after
name
and this is going to be
text input
and the size is going to be 500.
and if we do that here
there you go now what we can see here is
this thing is incredibly long so we want
to use
a multi-text a multi-line
text field and there is a way to do that
based on our where'd it go
based here on our widgets and this
is actually pretty easy because we're
going to make it a text area instead of
text input
and that instead has instead of a size
it has a columns
and so let's do
uh let's do 50 times 10. so let's be
sort of big but we'll do that
and so we have columns and then we have
rows
and so we're going to do there and then
so we're going to do instead of
sorry 500 is going to be 10
times 50 i'm sorry whoops
columns is 50. rows is going to be 10.
let's see this is going to be input text
and that will probably work because i
think i had an input text class
somewhere
we're going to find out momentary let's
see forms text area
should be able to pick that up so let's
see what happens
whoop i better broke it
it doesn't have text area so let's take
a better closer look at that
oh my mistake there we go
and that was why it had us all red let's
see yeah it even told me what it was
so now let's see did it reset yes it did
so i got a description that's probably
well depending on the normal screen size
and that's still
pretty big and we still have some space
so
let's uh extend that out a little bit
so instead of 10 by 50 uh let's
jump to
oh let's say we're gonna do let's cut
down those rows a couple
let's cut them probably in half so let's
do five rows
and let's see if we do 80 let's see how
that looks
that's not too bad so we'll do that it's
not quite our full 500 but that's okay
because now we can go in here
and we can just start cranking through
but that's our default size and we can
open it if we need to as well so there
we go
so that has been done and we can do a
completed date
which is going to be whatever today is
let's assume that's the day and we're
going to make it complete
and time spent i mean we spent five
minutes on it
and so now it's complete
and this is our all task so it's going
to be out of our
task list oops
let's set my current
here and so here's my oh
so let's go back to
this one uh annual goals oh that's about
road map
ah that'll work
so i had my time was automatically set
so i've got that one completed
oop not sorry that's not what it was oh
that's a due date not a completed date
so i've got a few but let's go back
here
immediately and let's take a look at our
tasks
uh these are now here's an interesting
bug
i don't know that we fixed this one we
need to remove the complete from tasks
in our time frame and if we look
at time frame
so child tame i'm going to edit whoops
uh let's see delete time frame returns
to the time frame list
i don't think we did we get this one
fixed let's go find out real quick so if
we go in here
create a time frame delete me
save and now if we go back to we can
just go to rtfs
and that's delete me oh edit
and that was one of the things we wanted
to fix
so if we delete him he still goes back
to
our list so what we want to do is go to
that's a good question what do we want
to do if we delete a time frame
then probably what we want to do is go
back to either its parent
or the roadmap so let's work that task
uh so we're gonna go to our views
and we do oh i think it's an edit tab oh
there it was delete task
so delete task is just going to go back
to the task list
instead what we want to do is let's go
to uh the time frame
for that guy so instead of that we're
going to go to
the time frame list
let's see where'd that go
so that's test by time frame oh let's
see
uh let's see create tasks nope nope
well let's just go look at it here whoop
whoop there we go
so if we go roadmap
and then select the time frame so it's
going to be tf
so if we go to delete
delete tasks there we go oh that's for
delete all tasks
this is an edit task so here the
redirect is not going to be there it's
going to be tf
and then we're going to do a string of
its parent
which we don't have so we're going to
have to store it real quick
oh we do have parent there we go the
data type time frame
so parent dot
id
and let's see we're going to do that
same
thing so where did we have the
other task
oh that may be our only one we're
actually deleting a task so now oh i'm
sorry we're doing delete time frame
is going to be the same thing so
deleting a task will return to
its parent so if i come in and delete a
task
let's create a task this is going to be
delete me
again
and it's part of immediate so if i go
here oh
okay record save returned immediate
probably at the bottom
delete me again so if we come in here
and now if we delete
so boom we're back to what we wanted
time frame for immediate
and then let's go ahead and do this for
also for our delete
um delete i don't want tasks
i want
time frame and so here
and so he's got one he's either gonna do
um oh if we delete a time frame let's
just go back
to the road map
so now if we come in here
and we go to a road map when we have one
so easy enough
and let's create a time frame
we're gonna call it kill this and we're
gonna save
and now let's go back if we go here
kill this and if we delete it it's gonna
should oh
uh roadmap it's not oh i'm sorry it
should be roadmap
so this should be
roadmap
and so i've got to fix it here i'm just
going to go back to that
because and so there we go so we're back
to our double map so boom we got those
things done so let's go take a look at
our task list
real quick and
let's see did we get
delete task returns to the task list we
got that completed
now that's an interesting thing we hit
complete we're actually going over to
headed task which we don't really want
to do
but it is completing um it is completing
it
uh let's get rid of that one got
completed
and so we're going to create a task
whoops
this is one of those bugs that we ran
into so let's go back here
anal goals and immediate
and we're going to create a complete
task
goes to edit
and status is new
save the record let's go back to our
task list is there something else we
want to complete
uh error message on create new tab we
did get that one done
let's go back to our task list and so we
want to get remember we want to get some
of these probably removed so we're going
to actually work off of
uh do we have like a to do i think we
don't so we probably want to
want to change our all tasks to the to
do
which we actually lost somewhere
oh because they have to be uh to do is
based off a to-do date so let's change
that real quick
and then we'll be set up for the next
time around so if we go to to do
and our urls to do is active tasks
whoops whoops whoops there we go
so if we go to active tasks what we want
to do here
is where the
oh because we did it for the current
time frame so we get remember we've got
to set our current time frame so that's
one of the things we're going to
fix which i've forgotten about so if i
go into map
here immediate
and then home now i get it okay
and so this is what we're going to be
working on uh let's see fix
edit in the time frame list login about
page broken login report report
so i think we're good complete task goes
to edit we'll fix that
all right so we got our list we're
working our way here's something we want
to add
we're going to probably want to add a
little count so we can see where we're
at so let's just
do that real quick
[Music]
and we'll just call it count and it's
going to be count
and count equals tasks dot
actually i think we can do length of
tasks i think it's like that
we're going to find out in a minute
and we need to put in our page which is
to do which is our list i think it's our
task list
and we're just going to put that up
let's see where does it want to go so
create tab let's put it next create task
tasks count
and that's just going to be count
and here we go oh length is not
it's probably size one oh sorry it's not
linked that's as always i forget it is
actually len
and there it goes so now
so test counts 13. so let's see how we
do next time around we're going to try
to continue working through these things
and see if we can knock some out
until next time have yourself a great
day a great week
and we'll talk to you then
you