Detailed Notes
We continue using the application as a way to track the tasks we have chosen for bug fixing and improving the user experience. This session is aimed at changing requirements and displaying more information in our interface.
You can view source for today and all prior days by reviewing the tag Day 55 at this GitHub: https://github.com/robbroadhead/develpreneur-pythontutorial
Transcript Text
[Music] well hello and welcome back we are continuing working through our lists and we've actually made a couple things that we're going to update this little bit one of the things we fixed along the way i think because of our default time frame is that we had create tasks from task list broken and i think now if we go to our task list and we can pick you know whatever it is we create a task boom so we're able to and i think it was because of our time frame setup so now that we've got that we can go back here we can go to immediate and so that's actually fixed uh create tasks from tesla's broken let's do the edit on the time frame list that's another that's a fix so let's get that out of the way so if we go to the time frame list and we do an edit and so we don't actually have a time frame list i don't think we get to so let's just check that real quick so if i go to uh let's go to this one and so we had one that we had let's see so let's just do create tasks that works great time frame that works i think we had something on it let's go back so if we go back to what was that for edit that may be something that's now fixed as well uh edit on a time frame list so let's look here and that seems to be working okay so professional goals uh let's just change that and save it and make sure that works okay it does oh now here's what it does is it does come back to this all time frames which we really don't want to do so probably what we want to do is on all time on a edit which that alone is a little bit of a problem here is we want to actually change this tfs which we don't really have it's a good question since we don't use this anywhere we probably don't need to change this but what we did do is we want to do here on a save for a time frame is when we save it we want to return to either the parent or probably we'll just stay on that so we'll probably just go to that time frame so this is on tf so we're going to come here to our view oh sorry for our urls and tf it is create time frame and there's probably yeah or edit time frame so there's actually two of those now create let's see what those do so if we go to create time frame it does not take a post so it looks like when we do yeah so it's gonna come to time frame edit so they both come from time frame edit so edit time frame when it gets a post this redirect here if it's saved see this is where we've got this this is we don't want to actually redirect to tfs we want to actually either redirect to itself or it's parent so we're going to do i'm just going to call this target id we're just going to call it tid and so tid equals let's see it will be this guy's id so it's either going to be that and we're going to do if let's see let's go ahead and grab it so here so current equals that but we're not going to delete and then we're going to say if current dot parent not equal to none then tid equals parent dot id whoops so it either stays here or goes to the parent let's see tid tid and let's see how that works out so now if i go to a road map let's see so here doesn't have a parent so if i do save it saves here uh let's see let's go down here first quarter now it should go up to annual personal goals and there's a problem there let's see reference before assignment okay whoops so i probably didn't set it right oh equals current dot parent my mistake so now there we go so if i go first quarter it's going to return me to annual personal goals bam okay so if i go back here immediate so edit on the time frame list uh let's see so that's a fix we're gonna wait on our background that's going to be a little episode we'll do by itself a little bit uh child time frame on tile frame time frame edit no child count so let's look at that so if we go to a time frame so this says he has eight children uh maybe okay let's see uh we need any personal goals here we go so this one is not showing lists uh showing counts so we want to take in our roadmap where we do our lists we're going to do the same thing in our child time frames so let's go to our roadmap list and it says here for item in items and we're gonna essentially do the same thing i bet we're gonna be able to do that in our uh time frame edit so if we look here child time frames let's take a look at that so instead this one's going to be time frame and time frame except for here so we're going to need to change this a little bit so timeframe and children so it's going to be instead it's going to call a time frame uh let's see class is going to be time frame whoop no that's not what i want to do so let's take a look at this real quick uh child time frames oh it just has a name so let's change this a little bit so it's going to be a name and it's going to have i'm just going to add this so i don't need that except for it's going to be let's do children and now let's look here if we look at edit time frame that's gonna be a little tricky because it has it's gonna get its children so i'm gonna have to actually change tweak my count uh tweak my query a little bit uh so this is in edit time frame children here we go so children equals that let's see filter parent equals data so i need to do this will be a little bit different that's a good question do i care this gets really detailed into that do i have to do i care about the children i may not i may actually bail on this one because if i go here i get to see it so i think i'm going to leave it i'm actually going to bail on that one because i don't think i need to know the number so if i go back to see this where we can say sometimes we can change our scope it's not task list that was time frame edit so i'm going to go back to where i started i think that's what i want right oh no i do want my slim that was still in there so let's get that there okay i don't think i need any more information on that one so let's go back oh wait i gotta fix the views maybe actually i think i'm good let's see there we go so i'm just gonna leave that one that way because i don't really care enough about it to do the child count there shall count off for road map let's take a look at that he has eight children so he has three oh i think he's good because we fixed that one we looked at that we found that our numbers were actually correct so we can go back here oops sorry to do and we did fix that one uh let's see show time frame parent in the task list this is on the report so time frame parent and task list for probably that one oh that's what it was uh so if we do by timeline let's see roadmap just shows our roadmaps timeline just shows our timelines but it doesn't show apparent so let's go for this little when we build this guy uh let's see that was in reports pay let's report generate here we go uh task by time frame so we're probably actually pretty good with this so we build the selector here we go report parameters so timeline here we're just using the name for the time frame but let's actually change this a little bit so we're gonna do i think we just up dot parent and let's look at that so now if we do by timeline oh it's breaking so we're going to look here it's probably dying here can currently concatenate string so let's take a look at that that may not be the right uh if we go to let's go to reviews time frame does it have a parent let's go look at our model actually let's close a few of these things out if we look at our models uh where to go where to go where to go models for time frame time frame is let's see oh that's task by mistake time frame does have a parent so if we look here so he should have a parent oh i wonder if so if we go back to our models it should be the name so let's see what string it may be showing an id i think it's not showing so it should be a parent i think we call it display that may be what we need oh well let's call here because i think it's not actually passing it all the way through so let's just do opt.parent.name is that right opt id that that that let's try that let's go back to our timeline so we are getting an error here and so it is it doesn't like that oh it doesn't have an apparent doesn't have an option of name so let's go look uh models time frame uh it should oh because it's sometimes none so we do need to do this so we need to do uh if uh dot parent equals none else that's our that's our mistake so if equals none then we don't do anything otherwise uh we do opt out parent.name okay so let's try that nope doesn't like that oh because we lost a plus there so let's go back to that and now if we do my roadmap by timeline there we go so annual personal goals or here we can see that those the first quarters by that and immediate there and then what we can do is we can actually go by road map if we want to do that so here it's going to be let's see let's play with this a little bit so opt dot road map and let's um we'll just wrap him so we're going to do that uh let's see i've got room app and then we get a name or ah let's do that let's see how that looks so now if we do by uh roadmap because i said if go by timeline up it's breaking so we probably missed something oh we want roadmap.name i bet uh because it did not like yeah so it doesn't convert it to a string there so if we do this or we could do i'm sorry where let's go back to our views i'll show you the other way to do it because that's the other thing it's complaining about if we force this to a string then it's going to do what we want i think otherwise it's going to think that it's trying to convert the it's going to try to use the class itself so if i do that roadmap timeline boom now this is using that string so i don't really want to use that i've got that complicated string so let's actually go back in this case and i'm just going to use the name because normally with that string we added the time frame in it i don't have to duplicate the code quite the way i did so now here we go we can see what the roadmap is we can see what the time frame is in within it so that is done and so the next time we're going to come back we're going to play around with our uh background colors and time frame does not show child count when deleted i think we're just gonna s oh it does need to show i bet we're gonna have to do something there and we'll think about that so we'll come back to that one next time around we're getting close to the end and uh the big one here will be cleaning some stuff up a little bit in the display and we'll wrap this thing up so as always go out there and have yourself a great day and we will talk to you next you
Transcript Segments
[Music]
well hello and welcome back
we are continuing working through our
lists and we've actually
made a couple things that we're going to
update this little bit
one of the things we fixed along the way
i think because of our
default time frame is that we had
create tasks from task list broken and i
think now
if we go to our task list and we can
pick
you know whatever it is we create a task
boom so we're able to and i think it was
because
of our time frame setup so now that
we've got that
we can go back here we can go to
immediate and so that's actually
fixed uh create tasks from tesla's
broken
let's do the edit on the time frame list
that's another that's a
fix so let's get that out of the way so
if we go to the time frame
list and we do an edit
and so we don't actually have a time
frame list i don't think we get to so
let's just check that real quick so if i
go to
uh let's go to this one
and so we had one that we had let's see
so let's just do create tasks that works
great time frame that works
i think we had something on it let's go
back so if we go back to what was that
for
edit that may be something that's now
fixed as well
uh edit on a time frame list
so let's look here
and that seems to be working okay so
professional goals
uh let's just change that and save it
and make sure that works okay
it does oh now here's what it does is it
does come back to this all
time frames which we really don't want
to do
so probably what we want to do is on all
time on a
edit which that alone is a little bit of
a problem here
is we want to actually change this tfs
which we don't really have
it's a good question since we don't use
this anywhere
we probably don't need to change this
but what we did do is we want to do
here on a save for a time frame
is when we save it we want to return to
either the parent
or probably we'll just stay on that so
we'll probably just go to that time
frame
so this is on tf so we're going to come
here to our view
oh sorry for our urls and tf
it is create time frame and there's
probably yeah or
edit time frame so there's actually two
of those
now create let's see what those do
so if we go to create time frame
it does not take a post so it looks like
when we do
yeah so it's gonna come to time frame
edit so they both come from time frame
edit
so edit time frame when it gets a post
this redirect here
if it's saved
see this is where we've got this this is
we don't want to actually redirect to
tfs we want to actually either redirect
to
itself or it's parent
so we're going to do
i'm just going to call this target id
we're just going to call it tid and so
tid equals
let's see it will be this guy's id
so it's either going to be that and
we're going to do if
let's see let's go ahead and grab it
so here
so current equals that but we're not
going to delete
and then we're going to say if current
dot
parent
not equal to none then
tid equals
parent dot id whoops
so it either stays here or goes to the
parent
let's see tid tid and let's see how that
works out
so now if i go to a road map
let's see so here doesn't have a parent
so if i do save
it saves here uh let's see let's go down
here first quarter
now it should go up to annual personal
goals and there's a problem there
let's see reference before assignment
okay whoops so i probably didn't set it
right
oh equals current dot parent my mistake
so now there we go so if i go first
quarter it's going to return me to
annual personal goals
bam okay so
if i go back here immediate
so edit on the time frame list
uh let's see so that's a fix
we're gonna wait on our background
that's going to be a little episode
we'll do
by itself a little bit uh child time
frame on tile frame
time frame edit no child count so
let's look at that so if we go to a time
frame so this says he has eight
children uh maybe okay let's see
uh we need any personal goals here we go
so this one
is not showing lists uh showing counts
so we want to take in our roadmap where
we do our lists
we're going to do the same thing in our
child time frames so let's go to our
roadmap
list and it says here for item in items
and we're gonna essentially do the same
thing
i bet we're gonna be able to do that in
our uh time frame
edit
so if we look here child time frames
let's take a look at that
so instead this one's going to be time
frame
and time frame except for here
so we're going to need to change this a
little bit so timeframe and children so
it's going to be
instead it's going to call a time frame
uh let's see class is going to be time
frame
whoop no that's not what i want to do so
let's take a look at this real quick
uh child time frames oh it just has a
name
so let's change this a little bit so
it's going to be a name and it's going
to have
i'm just going to add this
so i don't need that except for it's
going to be
let's do children
and now let's look here if we look at
edit time frame
that's gonna be a little tricky because
it has
it's gonna get its children
so i'm gonna have to actually change
tweak my count uh tweak my
query a little bit
uh so this is in edit time frame
children here we go so children equals
that
let's see filter parent equals data
so i need to do
this will be a little bit different
that's a good question do i care this
gets really detailed into that do i have
to
do i care about the children i may not i
may actually bail on this one because
if i go here i get to see it so
i think i'm going to leave it i'm
actually going to bail on that one
because i don't think i need to know the
number
so if i go back to see this where we can
say sometimes we can change our scope
it's not task list that was time frame
edit
so i'm going to go back to where i
started
i think that's what i want right
oh no i do want my slim that was still
in there
so let's get that
there okay
i don't think i need any more
information on that one so let's go back
oh wait i gotta fix the views maybe
actually i think i'm good let's see
there we go so i'm just gonna leave that
one that way
because i don't really care enough about
it to do the
child count there shall count off for
road map
let's take a look at that he has eight
children
so he has three oh i think he's good
because we fixed that one we looked at
that we found that our numbers were
actually correct
so we can go back here oops sorry to do
and we did fix that one uh let's see
show time frame parent
in the task list this is on the report
so time frame parent and task list for
probably that one
oh that's what it was uh so if we do by
timeline
let's see roadmap just shows our
roadmaps timeline
just shows our timelines but it doesn't
show apparent so let's go for this
little when we build this guy
uh let's see that was in reports pay
let's report generate here we go
uh task by time frame
so we're probably actually pretty good
with this so we build the selector
here we go report parameters so timeline
here
we're just using the name for the time
frame
but let's actually change this a little
bit so we're gonna do
i think we just up dot parent
and let's look at that
so now if we do by
timeline oh it's breaking
so we're going to look here
it's probably dying here
can currently concatenate string
so let's take a look at that that may
not be the right uh
if we go to let's go to reviews
time frame does it have a parent let's
go look at our model
actually let's close a few of these
things out
if we look at our models
uh where to go where to go where to go
models for time frame time frame
is
let's see oh that's task by mistake time
frame does have a parent
so if we look here
so he should have a parent
oh i wonder if so if we go back to our
models
it should be the name
so let's see what string it may be
showing an id i think it's not showing
so it should be a parent
i think we call it display
that may be what we need oh
well let's call here because i think
it's not actually passing it all the way
through so let's just do opt.parent.name
is that right opt id that
that that let's try that
let's go back to our timeline
so we are getting an error here
and so it is it doesn't like that
oh it doesn't have an apparent doesn't
have an option of name so let's go look
uh models time frame uh
it should
oh because it's sometimes none
so we do need to do this so we need to
do uh
if uh
dot parent
equals none
else
that's our that's our mistake
so if equals none then we don't do
anything
otherwise uh we do opt out parent.name
okay so let's try that
nope doesn't like that oh
because we lost a plus there
so let's go back to that and now if we
do
my roadmap by timeline there we go
so annual personal goals or here we can
see that those the first quarters by
that and immediate
there and then what we can do is we can
actually go by road map
if we want to do that so here it's going
to be
let's see let's play with this a little
bit
so opt dot road map
and let's um
we'll just wrap him
so we're going to do that uh let's see
i've got room app and then we get
a name or
ah let's do that let's see how that
looks
so now if we do by uh roadmap because i
said if go by timeline
up it's breaking so we probably missed
something oh we want roadmap.name
i bet
uh because it did not like
yeah so it doesn't convert it to a
string there so if we do this
or we could do i'm sorry
where let's go back to our views i'll
show you the other way to do it because
that's the other thing it's complaining
about if we force this to a string
then it's going to do
what we want i think
otherwise it's going to think that it's
trying to convert
the it's going to try to use the class
itself so if i do that
roadmap timeline boom
now this is using that string so i don't
really want to use that i've got that
complicated string so let's actually go
back in this case
and i'm just going to use the name
because normally with that string we
added
the time frame in it
i don't have to duplicate the code quite
the way i did so now here we go
we can see what the roadmap is we can
see what the time frame is in
within it so that is
done and so the next time we're going to
come back we're going to play around
with
our uh background colors and time frame
does not show
child count when deleted i think we're
just gonna
s oh it does need to show i bet we're
gonna have to do something there
and we'll think about that so we'll come
back to that one next time around we're
getting close to the end
and uh the big one here will be cleaning
some stuff up a little bit in the
display
and we'll wrap this thing up so as
always go out there and have yourself
a great day and we will talk to you next
you