0:00:25
welcome back welcome back everyone um
0:00:28
welcome to another episode of bill break
0:00:30
um as we all know it's a weekend uh we
0:00:34
have a special announcement to make
0:00:36
regarding our weekend streams um
0:00:40
a lot of you guys have been telling and
0:00:42
we have observed as well that
0:00:44
the two hours is a bit of a stretch so
0:00:47
we have narrated down to one and a half
0:00:49
that means we will start streaming at 9
0:00:52
30 and we'll end streaming at 11 pm
0:00:54
uh melbourne time um
0:00:57
is this is this also because the fact
0:00:59
that the last 30 minutes
0:01:01
um there's no not many people watching
0:01:04
um get much work done as well so
0:01:07
that's that's uh 30 minutes gone wasted
0:01:10
which can be utilized
0:01:11
to something more resourceful but anyway
0:01:15
yesterday we were talking about the
0:01:18
for some of the functionalities which
0:01:21
relating to middleware and backend
0:01:24
um so we have already come to a
0:01:29
then would you like to explain uh what
0:01:31
are we going forward with
0:01:34
surely yeah so it's essentially what we
0:01:39
decided that we we're going to be um
0:01:46
and so getting a board
0:01:52
passing the bourne board name to
0:01:55
get the board id from the from the back
0:02:00
from then we're going to be um um
0:02:08
id and everything corresponding to that
0:02:12
to the front end so that's
0:02:15
what i would think is the best solution
0:02:19
unless you've got anything to
0:02:22
add to that karthik no i think that's
0:02:26
um let's move forward with that and
0:02:28
let's kind of try to implement it today
0:02:31
that's brilliant yeah sounds like a plan
0:02:34
um i'll just share my screen
0:02:37
now i'm good and upgrade update jira
0:02:40
yeah yeah that's brilliant if you can do
0:02:44
and in the mean file
0:02:50
we can do the journey together if you
0:02:54
and then we can come back to this one as
0:02:57
alrighty there goes my screen
0:03:01
brilliant um get a board
0:03:06
all right the finishing line keep going
0:03:13
catboard id will need that oh we won't
0:03:17
need to get bored id
0:03:24
um updating the get specific thing we
0:03:31
we won't need a nope
0:03:34
go ahead and delete this all right
0:03:38
and create a get board function in the
0:03:41
so this is assigned to send
0:03:45
and this is assigned to me
0:03:48
all right that looks good up there
0:04:02
yep why do we need to update the
0:04:05
guest specific board function in the
0:04:10
um so it's it's gonna take the uh
0:04:14
board name now from the body and return
0:04:17
the specific board
0:04:19
rather than taking the board id from the
0:04:23
ah yeah yeah correct yes
0:04:30
we can create a totally new function
0:04:32
just copy and paste and edit that
0:04:34
if that function like it's good code and
0:04:36
we already wrote it
0:04:38
it might be useful what do you think
0:04:42
say that again please i i
0:04:46
you were moving a bit too fast and now
0:04:50
catch on that's my fault yeah um
0:04:54
so we already have the um get bored
0:04:56
function right which returns
0:04:58
okay um so guess specific board function
0:05:03
yeah which returns through url so i was
0:05:07
leave that like let's not make changes
0:05:10
let's make a new function what do you
0:05:18
because what i thought you meant and i
0:05:23
miss uh understanding you here that by
0:05:26
saying update the guest specific board
0:05:28
function in the back end
0:05:30
that means that we are updating the
0:05:34
yeah so that's what i thought yesterday
0:05:36
but then i gave it a bit of a thought
0:05:38
we have already written this code and
0:05:40
it's working good we might
0:05:42
use it so let's just copy all that code
0:05:45
paste it to a new function and edit that
0:05:52
yeah we can do that initially but i
0:05:55
want uh too much duplicate
0:05:59
uh duplicate code because
0:06:03
that would just um violate
0:06:06
the dry principle as in
0:06:10
all right which stands for don't repeat
0:06:14
okay so it's just uh updated then i
0:06:27
we don't really have to up
0:06:31
there so we can just create
0:06:35
a new function in the back end
0:06:40
right yeah that's that's all okay cool
0:06:43
yeah that's fine you wanna share your
0:06:46
all right yeah um i'll just do that
0:06:50
and this is the console
0:06:55
i'll just um so what i'm gonna do get
0:06:59
from the front and i'm gonna actually
0:07:01
create a new branch
0:07:04
okay yeah in which i'm gonna put all my
0:07:12
go back um actually i
0:07:16
shouldn't have done that i should have
0:07:28
is it not there i think you must be
0:07:33
yeah it's my okay and then i wanna
0:07:41
check out branch um
0:07:45
what shall i call this um jet
0:07:48
board uh you need underscores
0:07:57
um i'm just trying to think of a really
0:08:01
descriptive name yeah yeah specific
0:08:10
okay yeah that's fine
0:08:14
a specific board perfect that's done and
0:08:17
we are in that one and now we can open
0:08:29
okay so i think how
0:08:36
work is we just have to um
0:08:40
we just need to change
0:08:46
in which we provided the board id
0:08:49
we just have to stop there with the
0:08:56
yep and then part yeah
0:08:59
so you're gonna get it from the url
0:09:04
no no from the body
0:09:11
yeah you go ahead and uh i'll try to
0:09:15
understand what you're doing
0:09:22
what i'm trying to do is so here's
0:09:25
hang on a minute i'll just bring up that
0:09:29
okay get a particular board id as any
0:09:33
typical board so what my
0:09:44
give the board name
0:09:47
from the front end to the middleware
0:09:53
and that would actually
0:10:01
and we can we can pass that board
0:10:06
name in this method and
0:10:09
instead of um instead of
0:10:13
uh telling it directly they get the
0:10:18
id we can say there
0:10:22
loo through all the boards
0:10:29
if the given board name
0:10:32
matches a particular object just
0:10:42
attach the whole object which is the
0:10:46
the board name and everything to
0:10:52
their response okay
0:10:55
yeah does that make sense
0:10:59
are you with me because i don't want you
0:11:02
just agree if you are not
0:11:06
okay cool no problem yeah
0:11:12
every step i want us to be on the same
0:11:19
all right cool so i'm just
0:11:23
gonna check how we plan to do this
0:11:31
in the body it will be coming
0:11:41
so this isn't the url
0:11:44
we can still take it from the url
0:11:49
but you'll if you want to go ahead and
0:11:50
hide the thing then in the url
0:11:54
uh i wouldn't think we
0:11:58
want to hide it oh well by
0:12:01
saying we want to hide that thing which
0:12:06
the board id the border
0:12:09
yes that's what i was thinking that we
0:12:12
would have to as in instead of choosing
0:12:17
we can use a board name
0:12:21
yeah um it's just that
0:12:24
um then by posting the board
0:12:28
they're gonna be a certain checks that
0:12:30
is the board already present or not
0:12:32
because we won't then we don't want to
0:12:34
have a duplicate board then
0:12:36
yeah yeah so yours
0:12:40
same day for that validation to occur
0:12:44
if we change this to a board name that
0:12:47
that wouldn't work um
0:12:59
is that how the middleware is like the
0:13:02
front end is working that
0:13:04
the url becomes bored and then
0:13:09
name automatically so in the
0:13:12
current app um yeah board
0:13:16
board name is appended to the euro
0:13:20
yeah they should work then okay
0:13:23
cool so you're happy with that
0:13:26
but is the term board appended as well
0:13:30
i don't think so okay so
0:13:34
this is just our terminology here
0:13:37
all right okay yeah we are not
0:13:41
we are to an extent creating
0:13:45
the replica of the existing app but
0:13:49
we are doing it in our version in which
0:13:51
is it's more descriptive
0:13:53
to the user and a bit more enhanceable
0:13:57
right okay yeah let's do that
0:14:00
okay so what i'm gonna do is
0:14:04
once i gotta wash my hands and come back
0:14:08
okay that's the board name and
0:14:16
board name is the parameter
0:14:32
okay so what i'm gonna do is
0:14:37
yep i've just kind of started
0:14:41
um a bit of a code
0:14:53
if you don't think anything is making
0:14:56
sense just stop me there all right
0:15:00
always a good idea yeah to have
0:15:04
an eyes overlooking you for sure yeah
0:15:08
uh boredom name actually
0:15:11
i don't want this underscore so i'll
0:15:13
just create this that board name
0:15:16
okay i think the fire alarm went off in
0:16:12
all right guys um so what we plan to do
0:16:16
is we plan to get the board
0:16:19
by a board name no id anymore
0:16:23
and the reason for that is because
0:16:28
from the front end the user will
0:16:32
type in the board name instead of the
0:16:40
so i'm just doing some amendments to the
0:16:44
get particular board function in the
0:16:48
all right so let's get
0:16:52
doing with that one yeah
0:17:01
already looks like a fake alarm but
0:17:05
my flatmate says that if it goes on for
0:17:08
like 10 more minutes then we should go
0:17:10
okay cool right so
0:17:14
i'm just changing everywhere we use
0:17:17
board id to board name
0:17:21
at the moment right here yeah
0:17:24
just to uh make sure that board id is
0:17:28
uh what you call a primary key
0:17:32
yeah yeah so of course you might want to
0:17:36
in the way yeah yeah
0:17:39
um actually what i'm gonna do
0:17:42
that i need to be really mindful of
0:17:46
variables because i think we have learnt
0:17:54
so this is the board hang on a minute
0:17:58
this is our board name this is the one
0:18:02
coming from there board name
0:18:06
actually i'll do this as board name
0:18:10
yep can you hear the smoke alarms
0:18:14
no i can't oh i can hear the fire bring
0:18:20
one sec let me see
0:18:24
i can hear them as well sorry but not
0:18:28
uh i could have the fire brigade um
0:18:33
from my balcony but um don't hear the
0:18:39
yeah they're downstairs in my building
0:18:42
all right interesting i'll show everyone
0:18:46
yeah yeah dude they're honest i wanna
0:19:00
glad this thought yeah yeah
0:19:03
thank god how many are there though
0:19:08
sorry one just one i was expecting two
0:19:12
right right jen normally
0:19:16
there are i think from what i've seen
0:19:20
now they are say two
0:19:23
at least apparently apparently
0:19:28
not anymore or i'm really bad at maths
0:19:32
if that's not the case yeah it's it's
0:19:36
people are um like
0:19:39
a lot of people are staying inside right
0:19:41
so that that also means that
0:19:44
a lot of people are fake burning like um
0:19:47
so they're mostly false alarms
0:19:52
i think someone might be smoking and um
0:19:56
this the smoke alarm is really
0:20:00
sensitive so again it got turned on
0:20:04
yeah that certain someone is going to
0:20:12
think they charge you around at least
0:20:15
per year isn't it yeah that's it
0:20:18
well that's massive man it's a lot
0:20:22
yeah okay so um so far what i've done in
0:20:26
this part is uh i've just made clear for
0:20:30
ourself which board name as in as a
0:20:34
variable is being passed in a
0:20:37
body and the one we are using
0:20:40
so that has to change as well all right
0:20:43
does that make sense so far
0:20:46
yeah yeah that makes sense okay so
0:20:49
this is the assume we have got the board
0:20:54
which is fine and then we come down to
0:20:58
we are getting all the all the table
0:21:03
rose with the board
0:21:07
um this has to change
0:21:19
the voice is gonna increase now it's
0:21:22
really high you'll hear it in a bit
0:21:34
i'm just asking my friend are they going
0:21:37
you continue this will make a this will
0:21:41
um what do you call that like a good
0:21:45
yeah yeah okay i'll caption the stream
0:21:49
smoke alarm went off while streaming
0:21:53
do that maybe have you got
0:21:56
internet on your phone as well as get a
0:22:00
maybe put on your um hospital and
0:22:04
can connect your laptop
0:22:08
to your phone and just we can't even
0:22:12
vlog this yeah do you want to i don't
0:22:17
i don't mind either i'll be happy i can
0:22:19
i can join the stream with my phone
0:22:22
yeah do that then but unless if you want
0:22:25
to call it like really bad
0:22:27
then i don't want to disturb you either
0:22:32
no no no i think it will be a powerful
0:22:35
fun is fun as well yeah yeah
0:22:39
you can do something as a
0:22:42
surprise as in an unexpected
0:22:45
stream we started to code but this
0:23:05
um right so we have got the table
0:23:08
name so this is the table i don't really
0:23:12
all the rows in there but i just want
0:23:16
table rows ah we're getting all the
0:23:20
tables but yeah that should be fine
0:23:34
okay we have three fire brigades now
0:23:40
over a thousand already
0:23:44
thousand dollars if someone did a false
0:23:51
in financial trouble that's the most
0:23:54
expensive smoke they're gonna do
0:24:00
all right okay so what i'm gonna do
0:24:03
is just get this working and we can um
0:24:06
get uh we can actually um
0:24:10
uh refactor the code right afterwards
0:24:14
all right yeah uh so
0:24:18
here we've got the board name here is
0:24:22
tables and then here's the board
0:24:26
id which we don't want so we can use
0:24:40
ah no this one if that's equal to
0:24:48
and we want everything
0:24:55
oh no no no no no this is
0:25:02
um okay can you put on can you possibly
0:25:07
phone's notifications on silence please
0:25:10
yeah because i'm trying to
0:25:14
actually really think here how to do
0:25:25
what i'm thinking at the moment is
0:25:28
i'm thinking that if we can't i need to
0:25:32
so first we already have the board board
0:25:37
i think we should what once i've
0:25:41
got the entire table rows i should
0:25:44
go and get the board id first isn't it
0:25:49
yes and then you compare it with yeah
0:26:00
um okay so this is there for each
0:26:08
i need all the tables so we can add that
0:26:19
each row i need another for loop here
0:26:34
i can just use this method here
0:26:37
to get the board id why am i doing
0:26:44
so i'm just saying um
0:26:48
so you did both name not in params right
0:26:52
okay so you got the good name params are
0:26:55
table and table right
0:26:57
and then table rows um there is scan
0:27:01
with okay you just got the whole table
0:27:06
then you went in the table rows inside
0:27:21
i think the board name b is capital
0:27:24
how we assigned it
0:27:30
uh in the table in the table that's what
0:27:34
well you must be right we can do this
0:27:38
what you wanna check can we check yeah
0:27:40
it'll be in the post method just check
0:27:44
you must be bored name because um i
0:27:47
i don't doubt your your memory but we
0:27:51
can still check though
0:27:53
so we can just check in the post method
0:27:55
inside the code if you do a
0:28:06
inside the board post method this is
0:28:10
yeah this is the get method
0:28:24
it's it's a mac just normal windows all
0:28:30
um right just search board
0:28:33
oh yeah post is fine yeah create a new
0:28:38
they're just doing the board id
0:28:42
wait a minute hang on no no no no no no
0:28:45
that's not supposed to be right
0:28:47
you did it in another branch but you
0:28:50
only copied the master changes
0:29:01
yes probably all right that's the
0:29:05
yeah that's fine um
0:29:08
let's actually one no
0:29:12
i will switch to the that branch
0:29:18
yeah let's get born name from the front
0:29:24
okay it's a checkout
0:29:29
location okay cool fine yeah
0:29:38
oh uh create one name get bored now
0:29:41
because i don't really wanna
0:29:45
do this method again and then write all
0:29:49
code i'll just copy it yeah yeah that's
0:30:08
let's do a new document
0:30:14
no i don't even want to do that hang on
0:30:18
give me two sex yeah that's fine
0:30:32
okay cool so we can get rid of the
0:30:40
and now it should allow us to change
0:30:43
to the branch and audio
0:30:56
did i commit it i must have because
0:30:59
they're not pending changes here
0:31:03
okay you can do it if you want
0:31:06
you must have committed you must have
0:31:10
yeah yeah i must have i'm just thinking
0:31:18
um merge it first so i'll just check if
0:31:21
i've got the dev branch
0:31:23
created yeah i've got that created
0:31:27
so what i will do is i wanna
0:31:32
um i want to merge this change
0:31:36
wherever we have in the dev branch but
0:31:38
knowing the master one
0:31:40
all right yeah um i'm just thinking how
0:31:44
to do that oh you can just write get
0:31:47
merged under two branches i'm pretty
0:31:48
sure but you should google that
0:31:54
let's try that then so you said get
0:31:58
merged i'm not actually not arguing
0:32:00
what's that okay cool so it's branch a
0:32:03
b oh wait or is it branch b to branch
0:32:05
here that's all i need to check
0:32:08
okay uh if you can check let me know
0:32:37
to dev all right so you need to check
0:32:42
um check out branch two and
0:32:48
what's branch one and what's branch j
0:32:51
in this context i'll send you the link
0:32:55
this will make a lot more sense
0:32:58
okay i'll just open that up
0:33:03
um i need to uh where did you send me
0:33:07
in the private chat cool let's do that
0:33:11
yeah oh no no yeah that's fine
0:33:16
i thought i'm gonna i've done that close
0:33:19
in a stream yard and then do that okay
0:33:24
so okay here we go the branch one the
0:33:27
new the new development no yet completed
0:33:31
to the hot fix more problems still on
0:33:34
and branch freeze and mess around branch
0:33:37
with a lot but not
0:33:38
restore so we essentially want
0:33:44
branch one is our new branch
0:33:48
and branch two is is the dev branch
0:33:52
okay cool yes i would say
0:33:55
so first check how your branch
0:33:59
then most the branch one okay so first
0:34:01
we need to check out
0:34:04
the oh this is confusing
0:34:10
first check out branch three then merge
0:34:17
i don't know why he said branch tree
0:34:24
mess around branch
0:34:28
okay so essentially what i think he
0:34:31
is we need to check out our brand new
0:34:36
and then do a git merge
0:34:43
that we want to merge to
0:34:47
no am i thinking right
0:34:52
yeah i think so this is a big let me
0:34:58
oh okay hang on this is a bit more
0:35:04
clearer one he says
0:35:07
get checkout branch you want to receive
0:35:12
which will be depth
0:35:16
we need to check the dev one out yeah
0:35:20
yeah yeah and then get merge
0:35:23
the branch you want to merge into branch
0:35:29
the branch is there much
0:35:32
then it's time to use youtube desktop
0:35:40
fastass i don't i don't like clicking
0:35:44
too much man i just wanna do
0:35:47
one come on and then boom
0:35:51
it's done well you're clicking and going
0:35:54
over stacker flow so
0:36:04
once you have it then it's there for
0:36:08
so you check out the branch you want to
0:36:13
branch okay this will be
0:36:17
you want to receive the new which
0:36:24
check are you sure is the new branch
0:36:28
yeah you want to receive the new branch
0:36:30
into a dev branch right
0:36:33
what's going on wait i think it's the
0:36:36
way around yeah sorry my bad
0:36:40
branch you want to receive which
0:36:43
would be i will get bored name blah blah
0:36:52
the branch we want to receive do the new
0:36:58
to receive branch you want okay
0:37:01
right yeah yeah as in
0:37:05
we want to receive a branch into
0:37:08
their body on it yeah
0:37:13
which is the dev one
0:37:17
so what i'm actually trying to do here
0:37:21
you know all the changes that we have
0:37:24
done to get the board name working
0:37:30
this branch okay yeah this is the new
0:37:35
this is the old branch
0:37:38
oh right okay that's in there so we we
0:37:44
merge this one to our new branch
0:37:47
this is which is the dev branch
0:37:52
which is already like
0:37:59
so old and that's how
0:38:03
new branch all right yeah
0:38:09
so if we do get check out the branch you
0:38:18
which is the old branch then get most
0:38:22
you want to merge into ah okay cool i
0:38:33
saying that check this one um
0:38:37
merge check this one out
0:38:48
okay and then do a get merged
0:38:57
one second i'll be back
0:39:08
all right guys um i'm just figuring out
0:39:27
cool it was a false alarm just got a
0:39:31
ouch it was someone hurting another
0:39:36
yeah yeah it must have been and it was
0:39:39
the most expensive meal of their life
0:39:45
hey we got a new follower
0:39:48
on twitch nice thank you
0:39:52
yeah just to bring your branches ahead
0:39:58
so if i did check out
0:40:01
this branch you commit
0:40:06
i i think you check our debian
0:40:09
name your branches okay and then get
0:40:20
yeah already up to date
0:40:27
does he already have our changes
0:40:32
you know what we can do we can just copy
0:40:36
function from one branch to another yeah
0:40:40
a hacky way to do it i don't really want
0:40:45
shortcuts at the moment yes
0:40:49
especially when we are
0:40:52
learning along the way as well yeah
0:40:55
okay merge branch you want to merge
0:40:58
into this first that's exactly what i've
0:41:03
you want to you want hang on
0:41:07
you have two options you check out
0:41:11
branch you want something trust this one
0:41:14
because it has eight uploads
0:41:17
now we should actually trust this one
0:41:20
yeah yeah you check our grant
0:41:23
freebase this will update your branch
0:41:27
latest updates of branch one
0:41:30
ah okay so we can probably do this
0:41:34
um we want to update our
0:41:38
dev with the or the latest update
0:41:42
in the in this branch isn't it
0:41:45
so yeah yeah this is already
0:41:49
checked out so we can just do git
0:41:58
or this one they have rebased
0:42:02
arm branch is up to date
0:42:13
this will update your branch 2 with the
0:42:16
update so branch 1
0:42:25
this will update your branch 2 with the
0:42:27
okay so i think i did it
0:42:56
right right so now
0:42:59
what i want to do is i want to create
0:43:07
a new branch from this branch now
0:43:11
actually what i'm going to do is um
0:43:15
that original one so
0:43:19
and delete a branch
0:43:22
there was check on branch delete i think
0:43:26
was the shortcut to
0:43:30
deleting a branch was it yes
0:43:33
or there was a yeah yeah i think you can
0:43:37
i need to check which branch is first
0:43:41
yeah specific board i don't need that at
0:43:45
so we can get rid of that
0:43:52
that is now most written most with my
0:43:57
yeah that's right head is now
0:44:00
at the most with my circle so now what
0:44:04
is we create check out dev
0:44:21
check out a new branch
0:44:27
really hopefully he's done everything
0:44:30
wanted to to be honest because
0:44:34
um did you check out get
0:44:48
cool finally back on track i would say
0:44:53
yeah that's good and
0:44:56
that one was there so we can do the
0:45:04
i'll just bring all the old code
0:45:08
back in there which we made the changes
0:45:11
yeah you can just copy and paste that
0:45:18
there we go cool all right
0:45:23
to be honest i really hope that i've
0:45:25
done the right thing
0:45:28
or we have lost huh
0:45:32
or we might have lost some code but i i
0:45:34
think you know no no no
0:45:36
no no and once your code is in
0:45:41
get yeah i mean i mean like right now we
0:45:44
might have to go back and like
0:45:46
yeah of course all right
0:45:49
um so we are getting it
0:45:53
by born name here and then we are
0:45:56
going into that one if born
0:46:00
name is which is in the body
0:46:07
the board name which is already in the
0:46:10
table equals the born name we have
0:46:15
so we were kind of checking what these
0:46:18
is the b capital or not in the board
0:46:21
that's where it all started
0:46:22
okay right right that's good for
0:46:25
reminding me to be honest
0:46:28
uh where's just the post function
0:46:32
i really hope i find it right yeah oh
0:46:37
that did not go down well
0:46:41
um you know what i'm gonna do
0:46:44
it didn't work probably not probably not
0:46:48
i'm gonna actually
0:46:52
go in there and check it from the
0:46:56
github itself and see if it
0:47:00
actually did the did the
0:47:03
right thing and if our code is still
0:47:07
yeah yeah you should
0:47:10
all right so same api
0:47:20
i guess this is 19 days ago
0:47:24
this must be it yeah not change the
0:47:28
change the branch branch to death
0:47:35
so let's see if the change is actually
0:47:40
yeah i mean it's eight days ago so i'm
0:47:42
pretty sure it's there
0:47:46
okay particular board
0:47:53
but it's in dev it's not it should be in
0:47:57
okay how about if we just create a new
0:48:06
but we also need to want to learn how to
0:48:10
the branches i guess
0:48:13
yes and that's exactly what i meant
0:48:16
there we can first merge the code
0:48:23
no hang on what did i say just now
0:48:33
so what are we merging
0:48:36
hang on a minute we just want to update
0:48:39
the code in the dev to the new branch we
0:48:44
or you know then we can kind of work on
0:48:46
the dev branch only
0:48:48
this is just a update function we are
0:48:50
not actually creating something new
0:48:54
all right so if you want we can work on
0:49:02
hang on a minute okay
0:49:09
i'm actually becoming a bit stubborn
0:49:12
now forgive me for that
0:49:15
yeah we kind of spent 15 minutes just
0:49:18
coughing we could so let's just work on
0:49:25
it's not a like it's not going to make
0:49:28
any difference i guess
0:49:29
all right forget it
0:49:38
all right finally we can check that
0:49:41
as well and you want to copy the code
0:49:43
i've got a minute i need to first
0:49:45
confirm okay board
0:49:47
name is here that's fine you
0:49:50
can copy the code as well
0:50:00
uh yeah particular board
0:50:03
it's the old code so if you want to copy
0:50:06
the code you can do it from github
0:50:09
see this is why i want to merge the
0:50:12
branches in properly
0:50:19
oh you can just copy the code right can
0:50:27
but that's really normal
0:50:30
real world how you should do it in but
0:50:35
i mean we can do that as well um if you
0:50:37
don't go ahead and do that
0:50:44
in their ways but in i
0:50:48
i'll probably put in a bit of time
0:50:51
on my own to actually learn how to
0:50:54
merge them and then come back and
0:50:58
use that in the future yeah we can do
0:51:02
do that tomorrow i guess yeah for sure
0:51:05
so i'll just do one thing copy
0:51:08
all of this no don't copy all of it just
0:51:13
the code we changed i guess
0:51:15
yeah that's the part i'm telling you
0:51:19
remember the power we changed oh it's to
0:51:23
yeah this one no not this one
0:51:27
this is the gets get bored yeah
0:51:31
wait this is not the one no this is not
0:51:33
the current branch
0:51:44
go all view all branches
0:51:50
yeah oh wait you haven't committed that
0:51:55
so go to veer school
0:51:59
i think i deleted that branch oh
0:52:06
yeah we don't have anything i deleted
0:52:13
now you didn't push you didn't push the
0:52:15
branch would wouldn't be ever on github
0:52:23
right right right that would actually
0:52:27
get up online so um active no only way
0:52:31
you can get it is in
0:52:37
oh it's fine we can just write it again
0:52:39
i guess it wasn't like a lot of
0:52:44
pop hang on a minute
0:52:54
there we go uh so i've got that
0:52:58
because i copied and pasted that code in
0:53:01
my word document so that's still there
0:53:07
oh that's cool there we go
0:53:17
okay born name is that one
0:53:22
i want my code to look really sexy
0:53:35
you know what i love about you i think
0:53:43
things where i get really muddled up and
0:53:46
i kind of get myself confused because
0:53:50
two things at the moment as in
0:53:54
coding and keeping track of everything
0:53:57
ah i'm happy yeah i've got you coughing
0:54:04
right um so back on track
0:54:07
no this is born name which is equivalent
0:54:11
so this one has to change as well
0:54:14
then this one has to change okay so this
0:54:17
is already changed which is fine
0:54:21
board name board name yeah table so
0:54:25
what i'm saying is that if this is
0:54:29
the board name matches
0:54:32
then i want if the board id is this
0:54:36
no no you're not getting a board id
0:54:40
exactly not even declared yeah so
0:54:44
so we don't need this one here
0:55:05
okay right this is
0:55:13
so if that's the board name so first of
0:55:17
we need to get a board id from the board
0:55:21
because that's what the primary key
0:55:24
using to to get the object
0:55:28
to get the board so i feel like
0:55:31
instead of um you know how in the for
0:55:36
which goes like board name double equal
0:55:39
yeah rather than that above the for loop
0:55:42
you go in the database match the board
0:55:46
and then inside the for loop check with
0:55:51
okay that was too fast sorry i'll say
0:55:56
no no no no obviously understood you
0:55:59
well i'm actually trying to so i just
0:56:06
and get the board id from the board
0:56:10
name here or here yeah
0:56:13
up before the for loop so if that
0:56:16
would be the case then we would have two
0:56:21
okay yeah we can do that but
0:56:24
um so how do you plan to do it
0:56:31
i'm just thinking that if we do it in
0:56:34
your way which is we get the board
0:56:39
id then we don't really need to do
0:56:43
for loop we can just use their id to
0:56:47
get the board name just do one for loop
0:56:50
getting the board id and then match it
0:56:54
uh because it's the primary key you can
0:56:57
exactly so we can do
0:57:01
this one uh if border
0:57:08
i'm gonna create a bit of space here
0:57:13
um so this would be
0:57:17
we need the board id from the board
0:57:24
if you can copy that board thingy yeah
0:57:27
you can copy that if
0:57:31
that's right and if that's true
0:57:36
um do let board id equal
0:57:40
to the board id of the current
0:57:49
it's declared objects
0:57:53
yes that is an object right i
0:57:56
think board id has been declared
0:57:58
globally i have a feeling
0:58:00
we declared yeah globally can you check
0:58:06
you must be yeah here we go cool yeah
0:58:09
cool so i can just use this board id
0:58:14
uh to get the board
0:58:18
board id from the name
0:58:26
yep is equal to or id is
0:58:42
oh yeah sorry yeah that's fine that's
0:58:46
board id okay so now that
0:58:49
we have the board id we can come back to
0:58:53
yeah yeah and change
0:58:56
that one now it's just like getting
0:59:00
just getting on board normally
0:59:06
so if that's the case then we
0:59:11
coming get the board id
0:59:15
and then from there we just
0:59:19
get the entire object i would say
0:59:22
all right i think this is the only
0:59:30
am i right yeah yeah yeah
0:59:33
i think we can test it you wanna
0:59:37
test it locally or are you confident
0:59:44
let's test it on the remote server
0:59:49
um yeah why am i saying come on on
0:59:52
end of this online yeah let's test it if
0:59:55
it doesn't work in the first co
0:59:56
then we'll start testing it locally
1:00:00
all right cool i'm gonna do the do the
1:00:02
builder on the sam
1:00:12
uh this will work okay
1:00:15
yeah i was just a bit confused that am i
1:00:18
in the right folder
1:00:24
all right cool um so this is on i need a
1:00:34
have you got your voice as well decay
1:00:37
i drank it as well there it is
1:00:51
uh a little bit yeah all right okay
1:00:59
i think um to the basic
1:01:05
as in a really really basic
1:01:09
with the persistence storage
1:01:12
i think we are on track to finish the
1:01:17
on time oh that's pretty good
1:01:28
no no no i've done the right thing it's
1:01:32
yeah because um the reason why i said
1:01:36
uh we are way behind is because
1:01:39
i've got all this infrastructure in
1:01:43
in mind there we can be implementing
1:01:46
uh to enhance the performance enhance
1:01:49
the security of it
1:01:54
effectiveness as in
1:01:58
disaster recovery a whole lot a bunch of
1:02:01
can be done and that won't be completed
1:02:05
just i think four months
1:02:09
left now yeah so when you kind of
1:02:12
release software you want to do it in
1:02:15
you want to release the most basic
1:02:18
yeah you can always keep these changings
1:02:21
and like keep updating yourself
1:02:24
like i kind of read this quote that if
1:02:28
uh ashamed of your first product then
1:02:31
you haven't made any progress
1:02:33
so yeah that's just that's absolutely
1:02:37
worst version first and then we'll get
1:02:40
progress true true all right
1:02:43
cool so do you want to go back to
1:02:47
the api uh um to front-end
1:02:50
and do the do the test yeah
1:02:55
i i'll i'll alert the postman first so
1:02:58
that we can make sure
1:02:59
ah it's working yeah that's actually a
1:03:03
to be honest um okay
1:03:20
removed your screen by accident
1:03:23
that's all good alrighty
1:03:30
our mighty postman
1:03:35
this is a get function okay i need to
1:03:40
let's see what's inside the boards
1:03:45
okay i'll use this one
1:03:50
yeah do that one and see how that
1:03:56
works out for us no okay
1:04:02
good thing because it's actually hitting
1:04:06
so let's go to the lambda oh yeah
1:04:10
okay now got it gotta go here you're
1:04:17
cloud watch and see
1:04:20
where do we where did we mess up
1:04:34
when's the green screen coming
1:04:40
next week hopefully oh
1:04:43
boy yeah this said in the email that
1:04:48
um would be there by at least
1:04:51
11th of august so that's good
1:04:56
yeah to be honest i really can't wait
1:05:01
because if you see at the moment uh
1:05:04
in the in the camera i don't even look
1:05:12
yeah the camera is here
1:05:16
i'm here yeah all right
1:05:20
is it coming from china to be honest i
1:05:25
where is it coming from and i need to
1:05:29
i think it must be coming from
1:05:32
china because the deal there of course
1:05:37
right and like it won't take that much
1:05:41
from like sydney or something it's
1:05:42
coming from overseas for sure
1:05:44
yeah yeah for sure um
1:05:48
where was this there was the lambda
1:05:54
okay i need to go and have a look at the
1:05:56
cloud formation first to actually
1:06:00
check which lambda function it was
1:06:17
what are your plans for saturday night
1:06:22
saturday night i'm gonna do my
1:06:26
journaling then i'm gonna
1:06:30
read a bit more of the book maybe you
1:06:33
watch a movie with the missus
1:06:37
and that's already actually
1:06:42
how about yourself really nothing i have
1:06:45
a quiz tomorrow so
1:06:47
oh okay so what do you expect
1:06:51
just a prepay true
1:07:03
um it starts with an n
1:07:06
right so we need to see where the n
1:07:23
come on dude don't have all night here
1:07:27
let's go there we go
1:07:31
okay let's see where did we mess up
1:07:39
it doesn't it didn't show us anything
1:07:42
what i mean it was a good get function
1:07:54
am i sure it didn't show us anything
1:07:57
no error no nothing
1:08:01
um yeah seems like he didn't show us
1:08:12
maybe once more and see what happens all
1:08:25
um okay also check the console
1:08:32
it's giving a flavor to that gateway
1:08:42
um do you want to check in the browser
1:08:46
instead yeah because what i'm hunting
1:08:49
for at the moment is
1:08:50
some kind of a descriptive error
1:08:54
i don't think so we'll get it on the
1:08:56
browser yeah the browser gives the same
1:08:58
stuff i'll show the console yeah
1:09:02
right yep five or two that's all you get
1:09:12
how about if you do something
1:09:16
how about if i do um i'll do
1:09:21
i'll do something really interesting
1:09:27
let's try getting it with the board id
1:09:40
uh if i were to jason i would fall free
1:09:44
ah right so something to do with
1:09:55
yeah it was oh god
1:09:58
dusting here yes that's fine
1:10:02
um go back it says coffee
1:10:05
testing it but you have cottage is
1:10:08
testing it yeah that's mine that's still
1:10:10
not working anymore okay
1:10:30
um so that's gonna require a lot of
1:10:34
this in environment set up now
1:10:38
yeah all right let's do this we can do
1:10:43
yeah actually uh dynamo
1:10:58
i'm not sure actually me neither
1:11:02
do a star oh wait star won't work
1:11:06
try doing dynamodb local and the star
1:11:10
yeah ah it's not that one
1:11:23
guess what need my blog
1:11:33
and this is one of the reasons why
1:11:35
personal blogs are really helpful
1:11:39
so you can always go back as a reference
1:11:43
how did you make it work yeah
1:11:48
so this is the one we needed there we go
1:11:52
ah no not that one
1:11:59
create table that one
1:12:09
there we go that should start the
1:12:19
carry this on we need to
1:12:23
create right there's mr
1:12:27
quinty who says is it just one endpoint
1:12:30
that is broken or all
1:12:31
um so right now we are working with one
1:12:33
end point so the end point isn't broken
1:12:37
the particular controller we are
1:12:41
is throwing an error at this point so
1:12:44
let's just go ahead and see what's up
1:12:50
so the table is still there
1:12:53
um i'll just do the
1:12:56
post to this table
1:12:59
choosing postman all right
1:13:03
yeah that makes sense come on mr postman
1:13:07
i need my person you want me to oh yeah
1:13:11
i can do it if you share the terminal
1:13:14
it'll take more time now don't do it
1:13:19
in the mid well i thought it was loading
1:13:37
come on mr postman
1:13:44
this postman is really hard working
1:13:47
it actually works on the weekend as well
1:13:54
um wherever we okay
1:13:58
we need to do a post come on
1:14:05
uh so we yeah that's
1:14:08
all actually no we need to do it
1:14:13
ah no i would have to get the middleware
1:14:17
running on my end as well because i need
1:14:22
yeah so you need to fill it up
1:14:26
all right let's do that we got this
1:14:37
this is the part where i love full sec
1:14:40
development you're in control of
1:14:49
so which one do you think until
1:14:52
now as in is probably a bit too early
1:14:55
for you to decide but
1:14:58
from what you have done so far which one
1:15:02
uh is it the front-end backhand or
1:15:05
full stack uh do you like the most
1:15:10
oh boy i'm just in second year of uni
1:15:13
that's too much pressure but i know but
1:15:17
that's what doesn't
1:15:21
so far yeah i mean i
1:15:24
can design as well um like um
1:15:28
i've taken some design classes of course
1:15:32
i can design so and css html and
1:15:36
doing it with js isn't that bad so
1:15:39
yeah i could i could see myself being a
1:15:41
t-shaped developer with
1:15:44
more on the back-end side but i can do
1:15:47
right right right let's say full stack
1:15:49
but more inclined on the back end
1:15:52
right right yeah that makes sense
1:15:57
um so which was i was
1:16:00
post board isn't it
1:16:03
they had the latest code i think
1:16:10
okay no idea at this point which branch
1:16:15
yeah is that one um
1:16:28
but at the moment the post
1:16:35
take the board name
1:16:39
yeah it does it yeah it does
1:16:43
just put it in the body and create it
1:16:45
show you some magic
1:16:48
oh yeah yeah are you okay
1:16:54
you know the problem is you can't run
1:16:56
the middleware and the
1:16:58
back end together because it'll run on
1:17:01
so what you were doing it would never ah
1:17:05
that was the thing which you're right
1:17:08
absolutely i agree with you because
1:17:12
they both use the same police
1:17:20
8 000 in my case okay cool
1:17:27
do it here board name
1:17:32
and then jane tests
1:17:38
all right that one should be fine
1:17:45
okay and then get that board
1:17:53
yeah yeah and check all the boats
1:18:02
okay so this is their zane tests
1:18:06
this one is there um then
1:18:11
you're testing it on the end point not
1:18:19
i'm just as in being managed to think
1:18:23
as in talking to you focusing on the
1:18:28
code and testing as well so i will
1:18:31
need you man to as you keep me on track
1:18:35
because yeah it's becoming a bit hard
1:18:40
both we'll get this teamwork all right
1:18:44
so do that for pointing that out
1:18:48
um yeah i'm pretty sure
1:18:51
mr splinter you're new on our channel so
1:18:56
working on a project which is based on
1:18:59
um we are adding our own announcements
1:19:02
which is adding a persistent database
1:19:04
to the current open source project
1:19:08
and we are streaming every night from
1:19:11
9 30 melbourne time as we both live in
1:19:13
melbourne where are you from
1:19:18
raw body test there we go
1:19:37
did i do anything wrong here
1:19:40
missing missing authentication token
1:19:47
i think this is not supposed to be
1:19:53
using the local db and there must have
1:19:56
needs some maximum key in there
1:20:02
must have been expired um
1:20:07
ah right is it the cause error
1:20:11
i don't think it's a cause error he says
1:20:15
missing authentication token request
1:20:19
must either contain must either a valid
1:20:23
registered aws key or
1:20:31
am i doing even right board
1:20:34
but did you comment all the other stuff
1:20:37
port and did you change the board name
1:20:52
wow interesting this is getting ready
1:20:56
well all right we have nine minutes left
1:21:00
okay that's all right that's okay oh
1:21:03
so mr squinty it turns out he's from
1:21:07
that's pretty cool oh nice that's
1:21:10
yeah that's a pretty good meetup though
1:21:14
i really like it yeah how long have you
1:21:17
been attending defcon mr squinty
1:21:22
uh this one is there and i need to
1:21:27
do the port as well there we go
1:21:32
oh my goodness exam come on
1:21:36
how did we run this
1:21:40
um you have the command there
1:21:44
if you go press on your arrow key
1:21:52
it was some command that i
1:21:56
used to run in locally
1:21:59
wow it's been a while that i've been
1:22:04
check your blog check your blog
1:22:10
must be there because that was actually
1:22:14
set up to be tested locally
1:22:24
url well so it turns out um
1:22:31
three four months he's been falling but
1:22:35
he hasn't been attending last month so
1:22:39
but he'll be joining us again and here
1:22:43
def corp meetup from michael oh he works
1:22:47
that's pretty cool nice oh phenomenal
1:22:51
yeah yeah michael is amazing i
1:22:54
really have a lot of respect for him
1:22:58
i've actually followed a lot of his uh
1:23:00
linkedin stuff and
1:23:02
i've seen how he's kind of really
1:23:06
lean towards the idea of human centric
1:23:12
that's pretty good exactly
1:23:15
all right so now i can't find that
1:23:17
command interesting
1:23:21
hang on i'll probably have to look in
1:23:25
way what was it stream blog
1:23:31
yeah no it wasn't something to do with
1:23:41
oh oh okay yeah got it
1:24:00
memory thing ah okay wrong
1:24:06
i think i'm definitely in scrum there's
1:24:10
there's a yeah api
1:24:13
yeah exactly okay there we go
1:24:21
so now we go to postman and do
1:24:28
send it and hopefully it would show us
1:24:32
channel post board prod
1:24:38
can you get all these things body none
1:24:50
okay this is a bit interesting now
1:24:55
http localhost 3000
1:24:59
prod board is that
1:25:02
really the one delete create no
1:25:09
create a note no oh yeah
1:25:22
this is what you have to rename it board
1:25:27
the controller yeah yeah yeah
1:25:32
there we go and we pick up oh yeah that
1:25:35
that doesn't matter here yeah be careful
1:25:44
i feel this is a variable so it doesn't
1:25:47
match up or i'll still have you through
1:25:52
hey all right have you used it in the
1:26:06
when you do board name in request of
1:26:09
where the b is capital as well so ah
1:26:13
you're saying that this one has to match
1:26:17
this one i'm asking you guys
1:26:21
actually i didn't really realize until
1:26:25
now but yeah it seems you must be
1:26:29
right about that yes but let's have a
1:26:32
as well yeah if that is the case
1:26:35
yeah so turns out um mr squinty um
1:26:39
no zen is in the unison he's working
1:26:44
um i'm a unister i study computer
1:26:47
science at rmit right now and i'm in my
1:26:54
did you work as well or are you oh yeah
1:26:57
you work with michael right so
1:26:59
what do you work as cannot
1:27:05
right um this is not doing it
1:27:08
proud can you ah do a little now
1:27:13
that's my fault sorry guys
1:27:31
i didn't include the body
1:27:34
that that must be the reason why cannot
1:27:38
broad board um there's a command right
1:27:41
in dynamodb in which you can list
1:27:43
all the tables can you do that to see if
1:27:48
like dynamodb is configured properly
1:27:52
right can do that but i already did that
1:27:56
um but i just do again to confirm it
1:28:05
there you go ah okay that's
1:28:08
you didn't change the dim lim that's me
1:28:11
i didn't change it
1:28:19
alrighty now this will work
1:28:28
oh yeah oh wait you don't have a
1:28:37
all right it should
1:28:48
no yeah low cost 3000
1:28:52
yeah can you show me the code code again
1:29:05
all right uncommented that
1:29:12
can you comment router.use course
1:29:19
yeah and was a problem but
1:29:28
and can you go down like full down
1:29:36
yeah all right yeah
1:29:40
that's fine let's try now
1:29:49
all right if this doesn't work we'll
1:29:53
call out there and say it's going to be
1:29:56
continued yeah but hopefully it does
1:30:02
that's pretty cool um so turns out mr
1:30:06
a boot camp uh in scotland that's so
1:30:10
brilliant stay here um
1:30:14
so i'm guessing mr squinny is from
1:30:18
scotland yeah i guess there's law
1:30:22
and to answer your question uh we're not
1:30:24
using pair programming right now because
1:30:26
we were uh we used to but um
1:30:30
zen is handling different part of the uh
1:30:33
he's handling the back end and i'm
1:30:34
handling the middle there
1:30:36
so we have kind of divided the work but
1:30:39
we do repair program if this won't work
1:30:41
we'll start better programming
1:30:43
tomorrow maybe cannot pose for nipple
1:30:46
why is he not doing it
1:30:52
okay hang on um minute i'm gonna
1:30:56
do some console.logs all right to check
1:31:00
where my ex exactly going wrong
1:31:05
create a new board yeah this is the one
1:31:09
board name actually board
1:31:12
name is that is they even spelled
1:31:21
great so what texture do you work on
1:31:37
there we go all right cool brilliant so
1:31:40
if i don't mean huh
1:31:44
oh never mind yeah because it was the
1:31:48
other end point and i forgot to take
1:31:50
that part of the endpoint off
1:31:53
that's why so we get all the boards
1:32:04
there we go that's the one so if we
1:32:07
do that what do we get back
1:32:15
what do we get back
1:32:18
the number of conditions on the keys is
1:32:22
ah right oh look at this number
1:32:29
so i think you want to give more
1:32:32
the params as well
1:32:37
if you go to your other
1:32:42
um go down and go to the last
1:32:46
go to the last controller in this whole
1:32:56
you see how the parents are having a key
1:32:59
condition expression do we want to do
1:33:03
we can alrighty but we don't have
1:33:11
now the thing is that here we are using
1:33:15
query and over there
1:33:33
the key conditions
1:33:36
that's pretty cool um yeah
1:33:39
so turns out then they react and type
1:33:43
with symphony and php
1:33:48
right right right interesting
1:33:51
so is this is mrs quinney
1:33:54
of full staff front-end or backhand dev
1:34:00
brilliant brilliant and
1:34:03
how long is mr squinty
1:34:06
being working with michael
1:34:11
no idea let's see okay cool
1:34:22
is the key condition expression is that
1:34:29
oh hang on a minute i might know
1:34:37
is happening so that's board id
1:34:41
ah this is why it's happening what up
1:34:51
oh no no no no i think it's
1:34:55
one of the reasons might be is because
1:34:58
only this object has
1:35:00
the board board name yeah
1:35:04
it could be you can go ahead and delete
1:35:07
all the other boards or we can call it
1:35:11
at night it's up to you
1:35:12
i i don't really mind staying as well
1:35:15
um actually i'm really i
1:35:19
really would like to get this function
1:35:22
working uh within half an hour
1:35:26
um you okay with that
1:35:29
yeah or whatever mr squinty says okay
1:35:38
decide yeah so what is this
1:35:42
we we generally stream two hours on the
1:35:44
weekends but from today we decided
1:35:46
that we'll stream to 11 because it gets
1:35:51
yeah and i still have to my
1:35:57
okay cool perfect so let's
1:36:01
all right continue doing that
1:36:05
um so i'll just go in
1:36:08
actually one might do is delete the
1:36:16
create the table again
1:36:21
delete table endpoint
1:36:36
or not i'm not entirely sure if this is
1:36:43
no is it this one delete tables
1:36:47
okay cool i'm just playing flux here
1:37:14
let's see if this one works if not then
1:37:32
squinty says if you have written the
1:37:34
command before you could try
1:37:36
running um you might want to see the
1:37:43
put it on the stream
1:37:46
um okay yep i'm gonna run out on this
1:37:51
um if you've written the command
1:37:55
before you you try before you try
1:37:59
running just regret delete
1:38:02
ah okay yeah that's
1:38:05
really useful mrs squinny thanks a lot
1:38:10
i'll keep that in mind so speed grab
1:38:20
so i don't want that one actually i'll
1:38:24
mr squinty's way history
1:38:32
wrap oh wait people can't see
1:38:36
and then it would be list
1:38:47
already thank you yeah
1:38:50
this makes it a lot easier
1:38:55
or i could try a different one or i want
1:38:58
play with this commands now to be honest
1:39:14
wow wow wow stop stop stop
1:39:20
okay do this do that
1:39:27
this will create no it didn't
1:39:32
okay i would probably have to
1:39:35
remove all this end so what i'm gonna do
1:39:38
take a bit of a shortcut and take it
1:39:43
which is really easy here we go
1:39:58
and i think what we need to do
1:40:02
here is do about both iterations because
1:40:05
i think i might have
1:40:07
no no this is not the one
1:40:15
actually is this the one i attribute
1:40:19
name okay i'll just use
1:40:27
hash g scheme and then attribute
1:40:31
name again is board
1:40:35
id and then i've got
1:40:40
table name would be def cop
1:40:45
of course isn't it already there um
1:40:49
it's just put the c small i guess
1:40:54
was but i deleted it but i'll
1:40:57
just do that then all right
1:41:03
okay so here's our board id which is our
1:41:07
and all all of that is there cool
1:41:11
and this is our razer board name
1:41:16
board name is def corp so i'll have to
1:41:18
remove that one from there
1:41:21
as an update this one
1:41:24
okay cool so let's try
1:41:28
running the list come on
1:41:33
yep and see if it's there
1:41:41
should be there here we go cool so
1:41:44
now we can do node app.js
1:41:49
and run this file go to postman
1:41:53
yes sir and do that
1:42:00
and then boom let's see what this gives
1:42:08
get all of that and
1:42:11
okay perfect so our board
1:42:14
name is here which is good
1:42:17
so we need to take this one and
1:42:21
do this so if we do this now
1:42:24
actually what i'm gonna do is
1:42:27
do another post request
1:42:31
to create another board
1:42:35
yeah yeah okay test
1:42:40
and in this way we can
1:42:44
compare it easily if this actually
1:42:47
because yeah we are because um
1:42:52
that there are two boards but we only
1:42:57
okay let's give you a try
1:43:03
the number of conditions on the keys
1:43:06
is invalid on the keys
1:43:10
is invalid right what
1:43:13
uh where's my vs code there are
1:43:15
literally zero conditions
1:43:16
that's probably the problem
1:43:22
but we're already giving you the
1:43:23
condition with the
1:43:25
ah right i think i might know why
1:43:34
is it that board id
1:43:37
board id that one's fine
1:43:42
let me try this and see if this works
1:43:45
what do you reckon yeah try it i think
1:43:49
i know where we're going
1:43:58
actually we should really use
1:44:01
query because we're just wanting one
1:44:05
board here hmm yeah
1:44:09
i mean you can just go ahead and do it
1:44:11
as a query i don't know
1:44:12
it doesn't really make it let's do it
1:44:16
let's do that then but if you do a query
1:44:19
key condition expression to the
1:44:25
which parameters um the
1:44:29
you know how you have a lit pattern not
1:44:36
so what i'm thinking all i can do is
1:44:40
this part here yeah here we go
1:44:45
yes that's what but we don't have a
1:44:49
keep that in mind colon board id
1:44:53
we don't have it anymore
1:45:00
we already have board id
1:45:04
board underscore id
1:45:07
so we already have board in the school
1:45:10
so we can just use this one sign in yeah
1:45:14
yeah that's what i'm saying
1:45:16
right but we do need a key condition
1:45:19
expression if we use inquiry
1:45:23
which is this but we don't have a
1:45:27
colon board id it's not in the url
1:45:38
you're right about that yeah okay
1:45:41
um always go ahead and give it board
1:45:44
name equal to boot name
1:45:47
sorry colon if you really want to want
1:45:50
and the expression attribute could be
1:45:58
actually let's uh that won't
1:46:02
work because the key can did key
1:46:04
condition expression has to always take
1:46:06
primary key and board id is the primary
1:46:11
so key we just say like board id equal
1:46:14
board underscore id will that not work
1:46:17
board id and on which
1:46:21
line are you talking 83 83
1:46:31
this is a variable that can be
1:46:34
named anything yeah
1:46:37
right but the board
1:46:41
underscore id is storing the
1:46:44
current board ids which we have to
1:46:49
yes so however we just need to go in the
1:46:53
board id with the primary key and
1:47:06
um can you say that again
1:47:09
isn't that just a normal query like
1:47:12
we have the primary key and we just want
1:47:15
to carry with the primary key
1:47:19
yeah um so that's just
1:47:22
a normal get function right get specific
1:47:26
function which we already made yes
1:47:35
right so this you think this won't work
1:47:43
this i think that this should
1:47:48
work because where will we apply here
1:47:51
right yeah that one and that one has to
1:47:55
and then all right let's
1:47:59
got it okay okay cool
1:48:03
so i'll just do board i'll
1:48:10
do this remove this and then
1:48:13
change this to query
1:48:20
all right so that one
1:48:24
that one is there cool this is there
1:48:37
all righty um okay
1:48:40
test yeah that's fine
1:48:45
expression must not be empty
1:48:50
expression attribute values must not be
1:48:53
apparently this is coming as empty now
1:49:12
and actually use a breakpoint here to
1:49:17
everything how is happening
1:49:46
undefined right support ids
1:49:51
coming undefined now
1:49:58
actually i'm gonna check what's the
1:50:02
name coming in there
1:50:14
table board name because
1:50:17
i've got feeling with this
1:50:22
yeah uh let's check it
1:50:27
i haven't seen the variable table rules
1:50:45
wait that's the first board that's right
1:50:48
wait that's the first spot that oh wait
1:50:50
nope never mind so that's fine
1:50:53
and then it's going in but it's giving
1:51:01
hang on a minute um i should get rid of
1:51:05
this part here and then
1:51:13
uh console.i don't need that
1:51:26
board id inside the table called
1:51:36
i'll have to check yeah
1:51:42
see the bees for board id
1:51:47
and you have it when you assign it
1:51:51
no no no no line 83 line 83
1:51:55
see that's what's going on at the end
1:52:00
yeah that's why it's right yeah
1:52:03
yeah yeah she must be right there 100
1:52:06
yeah even mr squinty pointed out thank
1:52:10
if you think i was cheating i wasn't i
1:52:12
was literally looking at the questions
1:52:17
right so let's check this one now
1:52:23
and i just want to check the board ideas
1:52:36
all right okay cool so
1:52:39
okay test this one
1:52:43
we should get the board ideal six five
1:52:51
six five eight ah here we go it's
1:52:58
cool so we i would
1:53:09
actually why am i doing this phone no i
1:53:12
don't need to do that
1:53:13
that should keep the same now we can
1:53:19
all right uncomment this one
1:53:23
deployment time yay
1:53:29
oh don't delete it just comment it yeah
1:53:33
um did you change the board name
1:53:38
oh yeah there you go
1:53:41
there you go there you go and
1:53:44
we need to come all the way down and
1:53:47
uncomment this as well
1:53:52
oh i'm just gonna make the
1:53:55
code look a bit more sexier
1:54:03
so that was the one get on the heart
1:54:06
table data console.logs i don't
1:54:10
need any of them now yeah sorry
1:54:14
you're right yeah yeah okay
1:54:18
some water that one and then try
1:54:22
catch boom boom boom done simple all
1:54:26
let's do this uh deploy
1:54:29
to go a folder above i need to
1:54:33
delete the sam build folder
1:54:37
that already was there from previous
1:54:41
build the sam app well that was fine a
1:54:45
very good progress
1:54:47
hmm yeah surely yeah
1:54:50
let's thanks make the middleware work
1:54:56
for this particular function yeah i was
1:54:59
gonna say hang on hang on
1:55:03
if you have got a low
1:55:06
work then if you're saying the whole
1:55:10
whole middleware please think before you
1:55:17
yeah yeah that's true it'll be fine
1:55:20
um i'm pretty sure this should work now
1:55:25
um because why i'm thinking that
1:55:37
commit i would change this whatever
1:55:42
we do even if they don't work
1:55:53
it can be a bit easier to to
1:55:56
track the progress wait so which branch
1:56:00
make these changes
1:56:03
oh wait oh also you ended up doing it on
1:56:08
yeah all right okay so
1:56:11
what you what's gonna happen there
1:56:15
dev change will have
1:56:27
do say at least i would say
1:56:31
five features or no
1:56:34
five features is a bit too much at least
1:56:39
then we we can merge that with
1:56:42
the master branch kind of aren't doing
1:56:45
this is kind of like um just the basic
1:56:48
functionality stuff
1:56:50
so yeah yeah but we can a bunch of
1:56:53
people you know what i mean right
1:56:55
yeah yeah all right um
1:56:59
do you want to have a go uh content
1:57:02
i'll share my screen
1:57:10
let's get all the boards
1:57:15
okay jason is fine
1:57:19
i'm pretty sure it'll work even though
1:57:21
all the boards don't have a name
1:57:25
yeah should work in that way as well
1:57:28
that's not just the first one
1:57:32
are you scared no remember how
1:57:36
a lot of functions used to work for the
1:57:39
yeah and yeah i just want to make sure
1:57:42
it works for every one of them
1:57:48
get within the body right
1:57:54
that's brilliant go ahead and make a
1:57:57
with no board id and see how that goes
1:58:03
should give us yeah cool i'm pretty sure
1:58:06
it will work even though
1:58:11
so i just want to see if this works for
1:58:15
you know how we are comparing board name
1:58:19
yeah but even if this doesn't have a
1:58:20
board i'm just seeing if this is giving
1:58:22
an error or not okay cool
1:58:26
no it's not it's that was expected all
1:58:30
that's cool that's brilliant so i'll
1:58:37
change if you can also um go to the
1:58:42
jira ticket and just
1:58:45
yes say that we got that to get
1:58:49
working as in don't
1:58:53
close it at them at the moment just
1:59:01
uh why don't we wanna close the door
1:59:04
after the keyboard function in the back
1:59:08
the reason why i don't wanna
1:59:14
because i'm not entirely sure
1:59:17
i'm talking at the moment so sure you
1:59:24
yeah yeah true i'll
1:59:27
understand it from you
1:59:34
the middleware stuff which is assigned
1:59:39
work tomorrow sounds
1:59:43
good that was a really
1:59:46
good progress i'm really happy um
1:59:50
yeah continued conflicts sorry
1:59:53
yeah cool um thanks mr squinty for your
1:59:57
that was pretty good and if you want to
2:00:00
join us tomorrow we'll stream again at 9
2:00:02
30 we stream every day so
2:00:05
you're welcome to join and it'll be good
2:00:08
cool he says good job guys so that's
2:00:10
pretty good thank you
2:00:12
all right cool see you guys tomorrow and
2:00:14
have a lovely night
2:00:19
and um just want to thank mrs quincy
2:00:23
again for all his help it was a real
2:00:26
pleasure having you on the chair and um
2:00:29
getting to know you as well
2:00:32
and yeah if you can join us
2:00:35
tomorrow same time same place but
2:00:41
there you go all right guys have a good
2:00:46
good morning good aft to wherever you
2:00:49
are in the world but in
2:00:51
melbourne it's a have a relaxing night
2:00:55
go and have a look down home party if