0:00:24
all right welcome back everyone welcome
0:00:26
back to another episode of buildbreaking
0:00:29
we're back after taking one day of rest
0:00:33
i'm pretty sure we feel really refreshed
0:00:38
because the productivity will be higher
0:00:40
but yes um if you're new here we are low
0:00:42
lorcottas which means
0:00:44
that we are team of two developers from
0:00:48
and we're working on a project which
0:00:50
adds persistent storage to the current
0:00:52
open source project called scrambler ca
0:00:55
cool so on friday we
0:00:58
finished the middleware
0:01:00
and today we are supposed to
0:01:03
get into a back end a little and see
0:01:05
what stuff is going on there um
0:01:08
cool so how are you feeling today's then
0:01:10
we're feeling pretty good okay and uh
0:01:13
thanks always for an
0:01:15
amazing introduction
0:01:17
so today i guess what we're going to be
0:01:20
doing is we will we will be adding
0:01:23
another method in the back end and in
0:01:26
the middleware called um
0:01:31
update the board right by name
0:01:38
update a board name
0:01:39
yeah update the board name that's also
0:01:42
without any further ado let's go and
0:01:45
start the fun part which is
0:01:50
which is what let's just call it coding
0:01:55
do you wanna first go ahead and update
0:01:57
the jira board before we get it
0:01:59
that's exactly what was gonna do so i'm
0:02:09
it so i'm just going to share my screen
0:02:14
share my screen i want to share screen
0:02:17
too yeah there we go
0:02:21
and i'm gonna get my
0:02:29
there you go and just
0:02:32
log in in the account
0:02:39
this one i'm pretty sure
0:02:53
let's see if it's not there i can always
0:03:01
all right cool so this is it i'm going
0:03:04
to just zoom in a bit
0:03:12
your software that one is there and
0:03:17
patch board name backhand
0:03:22
so this is the one we have to do i'll
0:03:26
assign that to myself
0:03:29
cool now let's get started make it in
0:03:32
progress you didn't make it in progress
0:03:34
so when we are doing a ticket yeah
0:03:37
you'll have to say that i'm only doing
0:03:40
yeah and i think they would be a really
0:03:42
great idea if every time we start a
0:03:46
as in right at the start we
0:03:49
visit this durable and right at the end
0:03:51
we visit as well to crack up our program
0:03:58
and i guess it's not about like um
0:04:00
starting earnings it's about starting
0:04:01
and ending a task like even if we
0:04:04
haven't ended the stream and you have
0:04:05
completed the back end
0:04:07
this function you just go ahead and do
0:04:13
that's always considered best practice
0:04:19
of course i get a particular board we
0:04:21
don't need that uh we wanna okay so the
0:04:26
method can come over here
0:04:28
and i'll just basically do a
0:04:34
and then just copy and paste this
0:04:39
no need to calm down and
0:04:43
just write a function
0:04:49
that's actually a better idea
0:05:16
and then what was the board id isn't it
0:05:21
what's in that one no why am i doing i'm
0:05:25
not in the middle of
0:05:27
it yeah my bad my bad
0:05:35
right out of the patch
0:05:37
oh yeah update yeah sorry why not update
0:05:40
yeah sorry then write port
0:05:54
what comes after this
0:05:56
oh we need to pass chords as well isn't
0:06:05
cause option was it yeah
0:06:23
and open up a function here
0:06:26
you make it make it async
0:06:28
yeah i was gonna do that
0:06:39
there's something wrong here
0:06:44
hold on i know what's happening wrong
0:07:01
if we write it without seeing in the
0:07:02
other functions then we'll know
0:07:08
um okay so now what we need to do is
0:07:26
in request or params
0:07:42
equals as an empty string
0:07:46
but if it is there
0:07:59
should come from the request or params
0:08:15
to be honest i'm slightly confused as
0:08:18
well and then which one you should be
0:08:28
all right so once we have called the
0:08:32
yeah okay then what we need to do is we
0:08:37
run a for loop or actually just do a
0:08:43
let me do we need to get the board
0:08:47
yeah so i'll do params
0:08:51
because uh we need to get
0:09:18
yep don't forget the key
0:09:24
with the key as well then
0:09:29
should be board id isn't it
0:09:39
and once we have got the board then we
0:09:55
get the document or client
0:10:02
um i don't think that this is gonna work
0:10:08
something here huh
0:10:10
how do we use the query again
0:10:15
go go up and see like we don't have to
0:10:25
you search the word query
0:10:28
actually my keyboard is still not
0:10:31
functioning properly so i i need to use
0:10:35
tools first and then to do that we'll
0:10:41
get some water in the gullet oh what's
0:10:47
yes i'll get some water as well
0:10:54
so we need to give a condition
0:10:59
expression attribute values right
0:11:03
where were we where were we
0:11:06
not there up there specific note
0:11:12
delete yeah here we go so
0:11:22
that one should be
0:11:25
key condition expression and this
0:11:30
has to be the board id
0:11:36
what i keep forgetting the syntax
0:11:42
what was that key condition expression
0:11:50
so okay i've asked where's your post
0:11:53
okay um it's on the way it still hasn't
0:11:55
arrived you know this because
0:11:57
yesterday was saturday right like
0:11:59
there's no delivery happening on
0:12:01
and the last time we thought goes friday
0:12:04
let's hope we have something good next
0:12:10
okay service equals cool
0:12:16
so basically we don't really
0:12:23
because we already have a key key
0:12:25
condition expression
0:12:28
so that one and then this would be
0:12:32
and then we need also a
0:12:35
expression attribute values
0:12:40
yep and then basically this one should
0:12:44
variable which is board id equals
0:12:59
wow syntax is becoming a bit challenging
0:13:02
for me i don't know why
0:13:04
i feel like we need to make a document
0:13:08
let's focus on coding for now yeah true
0:13:12
okay cool so here we have got the
0:13:23
write that that's quicker
0:13:31
then okay so we have got the
0:13:35
name uh the board itself now yep
0:13:40
so now what we have to do is
0:13:52
what we need to do now is
0:14:01
we just have to update the board itself
0:14:04
as in the board name
0:14:18
okay update the board it's deleting
0:14:23
how is he updating the note
0:14:25
okay i've got this i've got the board
0:14:28
and now i need to do
0:14:31
i've got the board fine
0:14:34
i don't have to do that all i
0:14:48
all i need to do is
0:14:51
set the text off the board that's yeah
0:14:54
listen like separate something else you
0:14:56
don't need to worry about anything
0:15:05
you have to do an update
0:15:19
and that's like a parent
0:15:21
now give it a table name first or yeah
0:15:24
give me a table name
0:15:27
oh no sorry give it the key
0:15:29
which i didn't have to yeah give it the
0:15:33
give it the key conditions expression
0:15:36
give it the update
0:15:38
expression as well
0:15:40
but we already have
0:15:42
everything here we've already
0:15:46
update expression that's what i mean
0:16:08
actually we can just do that here
0:16:15
you're getting the board there
0:16:21
yeah because we're guessing the board
0:16:26
know what it should take
0:16:29
yeah that's what that's what i was
0:16:30
wondering is that why are you even
0:16:34
true that shouldn't be what's the whole
0:16:36
point of doing a query at all
0:16:43
so get rid of all this
0:16:46
because we've all been
0:16:48
know the board yeah and board id yeah
0:16:52
exactly update expression
0:16:56
and then we can just set
0:17:04
i need to access the board
0:17:24
you have to get the board name as like
0:17:26
yeah request of params but yeah
0:17:42
because the body don't burn i'm sorry
0:17:55
let's see if this works actually
0:17:58
because i'm not entirely sure
0:18:04
and now what we need to do is
0:18:30
what we need to send
0:18:34
response as status
0:18:49
on before deploying
0:19:18
then if it's there then
0:19:22
table let me condition expression
0:19:26
says this one of the expression
0:19:34
and then get the value of this
0:19:41
and then all right
0:19:43
you're happy with this
0:19:49
so let's save this
0:20:01
so how do you feel with um
0:20:07
well it was just like it was
0:20:11
literally super different what would you
0:20:16
i was actually really
0:20:24
refueling day for me
0:20:30
all me energy back everything get all my
0:20:35
fuel in the tank back
0:20:40
and now obviously it's hard to travel
0:20:42
yeah yeah but like
0:20:46
like i don't feel tired after like doing
0:20:48
this session or coding
0:20:54
it's just becoming a re a good habit
0:21:00
yesterday it um more like
0:21:03
for me like more than refilling i was
0:21:05
just like i was literally missing this
0:21:08
what do i do at 9 30
0:21:11
right right right right yeah
0:21:13
like yeah because i don't like
0:21:17
like this is relaxing for me right like
0:21:20
right i say i say what you mean
0:21:24
yeah i i basically just
0:21:27
watched the movie with them with the
0:21:29
mission she was really happy and i was
0:21:32
like okay that was the goal
0:21:36
nice that's good as in
0:21:47
in order to become a bit more
0:21:50
productive that had to be done
0:21:53
uh what movie did you watch um
0:22:00
f9 so faster than the furious nine
0:22:08
okay so this one is hey
0:22:10
get get all the boards
0:22:15
with nobody please
0:22:40
there's a compilation error
0:22:45
there's a compilation error
0:22:47
i know i'm just checking
0:22:52
all right let's go to cloud watch
0:23:25
i'm guessing i must have missed
0:23:39
one thing about zen is that he really
0:23:47
come on come on zayn come on think
0:23:52
i think is just some
0:23:54
trying to type too fast as well
0:23:59
yeah could be no no no no no
0:24:02
oh okay yeah that's fine that's fine i
0:24:06
just remembered that i
0:24:17
all right cloud formation
0:24:42
okay where did i mess up root to the
0:24:45
update wow interesting
0:24:49
i should have listened to uk
0:24:53
is it a little patchy that's what i was
0:24:58
yeah patch i should have listened to you
0:25:01
in the first place no problem
0:25:18
so it didn't even compile in the first
0:25:20
place right right right right
0:25:23
that wasn't a function
0:25:31
but why am i getting a feeling that it
0:25:32
should have compiled at least
0:25:42
give it a wrong function why would it
0:25:52
because it's a scripting language i
0:25:56
it's a wrong function still isn't it as
0:25:59
in that function doesn't even belong to
0:26:20
don't you think that my camera should be
0:26:22
a bit zoomed out a bit yeah
0:26:28
it's a bit too close
0:26:31
i'll set that up off to the stream
0:26:34
yeah it's like really easy in obs you
0:26:42
you're using obs only right that will be
0:26:47
and that's actually connected to my
0:26:50
all right yeah yep
0:26:53
cool so do that one pro board go with
0:27:04
huh okay cool that's fine there's a note
0:27:09
yeah i was like wow that many boards
0:27:12
i swear there were
0:27:16
this won't work no
0:27:18
this is not a board name
0:27:21
give post another board with a board
0:28:00
that seems to be working
0:28:03
copy the board id please
0:28:17
patch means the board name
0:28:26
not working that's all good
0:28:32
was it on twelve nine nine fifty three
0:28:35
now these are the old ones
0:28:38
this is the new one
0:28:42
missing required king ah
0:28:44
i made the same mistake again
0:28:47
let's see what we made this on friday
0:28:54
he's in there at all
0:29:01
query doesn't use key
0:29:06
i thought update doesn't
0:29:10
no the last time we made this mistake
0:29:12
was during an update only
0:29:15
a note update thing
0:29:19
oh okay so update is uses key
0:29:33
key and query doesn't
0:29:37
and you cannot see all these lists in
0:29:42
yeah i need to visit them properly
0:29:46
but let's just focus on this for now
0:29:50
actually i don't wanna copy and paste
0:29:53
things i'll rather write them
0:30:13
uh board name yeah id id
0:30:17
actually we don't even need this anymore
0:30:26
cool let's do that one
0:30:37
remember when you used to do delete the
0:30:39
sample file every day
0:30:44
saves you three clicks now
0:30:48
see you're learning as well about clicks
0:30:53
i'm just talking in zen's metrics
0:30:56
yeah right right saves you free please i
0:31:15
okay just waiting for the changes we
0:31:43
okay and do that again and see what
0:31:52
what's the problem now something in the
0:31:54
code only was five or two
0:32:00
right okay we don't have the patch
0:32:04
for the board do we
0:32:10
in the api gateway we don't have the
0:32:13
patch for the board
0:32:17
different patch for the board
0:32:20
we don't have a different post for the
0:32:22
board or different posts different
0:32:24
delete for the board sure you just have
0:32:35
uh what kind of what
0:32:39
byway to back gateway no in florida
0:32:43
oh and nothing it doesn't give me any
0:32:53
doesn't give me any errors oh
0:32:59
um he's saying bad gateway so there must
0:33:42
so you got it go down
0:33:46
yep yeah that's fine
0:34:05
wait one second just one sec
0:34:07
so you did board notes pornos is an
0:34:12
there is board name stored it's and
0:34:16
it's an attribute right
0:34:20
okay yeah go back to the update for the
0:34:32
name i'm thinking it's supposed
0:34:35
it's probably because of this board id
0:34:39
these are in uppercase and yeah namely
0:34:50
thinking that there's something
0:34:56
right said board name
0:35:04
yeah yeah and get this kind of right
0:35:08
we need to stick to one naming
0:35:09
convention so why don't you
0:35:12
get points out that we have
0:35:19
that's right though
0:35:20
that's probably i think one of the
0:35:27
having a lot of confusions
0:35:39
shall i just try this because i've
0:35:43
changed these parts here
0:35:46
maybe these might be the case
0:35:50
sure you can try it yeah
0:35:53
oh hang on a minute
0:35:58
it's taking in the key and of
0:36:02
yeah there's a string
0:36:04
yes and also i don't think so you're
0:36:06
doing a result send
0:36:09
you're not even sending anything back
0:36:17
that's a fun thing
0:36:25
what do we send back then nothing
0:36:34
what are we sending and delete
0:36:37
yeah that's fine we don't need any of
0:36:39
this send nothing yeah cool
0:36:42
okey-dokey let's check if this works
0:37:00
run the guided deployments
0:37:20
boy i have a quest to do after this
0:37:25
is the part of your assignment
0:37:30
for completing theory
0:37:32
oh furious right yeah
0:37:36
you're learning like
0:37:38
turing machines and
0:37:43
i forgot the name what we're learning
0:37:48
yeah uh you're learning a lot i can tell
0:37:53
like the quiz happens for like the new
0:37:55
material they teach
0:37:58
that's why i forgot what they taught us
0:38:02
okay that works apparently
0:38:05
i'll do again okay now
0:38:08
also if you're interested they're
0:38:13
oh that works nice
0:38:24
hang on a minute i am not sure so um
0:38:27
what i'm gonna do is
0:38:29
go to dynamodb and
0:38:36
and then do that again
0:38:40
where are my items uh view items
0:38:43
they've changed the structure
0:38:52
delete action on the right on the right
0:38:56
then under here okay cool
0:39:01
okay and now do a post
0:39:08
you'll get it again
0:39:10
this can't be right keep doing again
0:39:14
someone's spamming us again
0:39:32
i think you stopped
0:39:34
he or she has stopped
0:39:50
used to be as in refresh in this console
0:39:53
but they've taken it off now
0:40:02
i don't know what they're doing you are
0:40:15
yeah so just to do an experiment on this
0:40:19
we can't use this board it doesn't have
0:40:43
ah come on whoever that is
0:40:46
can you stop please
0:40:47
we can test it without them stopping the
0:40:54
doesn't really matter
0:41:00
that one is there yep right and now we
0:41:26
that's fine that's pretty good
0:41:29
that is working so we can
0:41:32
go back to the code
0:41:37
yep while you do this i'll go ahead and
0:41:39
write the middleware for this yeah get
0:41:42
the board and can you update the jira as
0:41:44
well so yes i'm gonna do that
0:41:48
put the board up there the board name
0:41:54
okay and i'm gonna
0:41:58
commit this change
0:42:10
uh stable back and court that's exactly
0:42:32
to update the board
0:42:37
one file was changed brilliant
0:42:51
let's stay credited
0:42:56
they created is when
0:42:59
a note has been created as in the
0:43:05
and um knocking the spelling
0:43:10
i know but at the moment i i'm not
0:43:15
fussy about those kind of things we're
0:43:18
just working on the functionality itself
0:43:21
and and of course and there has to be
0:43:25
a lot of these kind of small
0:43:27
small changes so we will be coming back
0:43:32
and thanks a lot for pointing that out
0:43:36
already in our i think jurors tickets
0:43:40
and then there's small tiny issues to
0:43:43
work on afterwards
0:43:50
i'm gonna go to jira board and just make
0:43:53
sure that if that's there because
0:43:56
i don't want to mislead our viewers
0:44:18
i press the button to load jira in the
0:44:21
same tab as stream yard so
0:44:23
that's what happened i was like no no no
0:44:26
no i don't need that
0:44:37
all right so just go ahead and update
0:44:49
uh patch board name is done
0:45:04
that one's done i'm just changed to
0:45:06
decorating the donut to be human
0:45:08
readable ah interesting
0:45:11
we don't have that issue so it's
0:45:14
glad that i checked i'm
0:45:17
gonna insert the issue
0:45:22
the spelling error that um
0:45:26
i remember mentioning that yesterday i
0:45:35
you you probably have told me to
0:45:38
edit because i want to take
0:45:41
i want to take control
0:45:43
in order to learn it but it seems like i
0:45:47
forgot to add it yeah
0:46:14
um i think we might want to add another
0:46:17
column as in a bit for alteration to the
0:46:22
to add the day created for the board as
0:46:25
well but that can come as a
0:46:35
just gonna give this a test
0:46:42
okay the issue has been added uh
0:46:51
make a bit bigger oh as in i wanted to
0:46:56
in my big big monitor
0:47:32
okay so this is a big board
0:47:36
okay let's get the big board
0:47:43
it's gonna be boring okay
0:47:48
it's fine i'm a bit bored yeah that's
0:48:07
this is a board function so i'll make it
0:48:41
so let's test that one
0:48:47
yep i'll zoom it in one second
0:49:03
cool i think it works so in the first
0:49:17
cool i'll push this up
0:49:21
can we get off at 10 30 today that's
0:49:25
yeah i thought that was the plan
0:49:31
no hang on today's sunday isn't it yes
0:49:39
i know you've got uh the
0:49:44
you can probably go and uh i'll just
0:49:49
cool what you reckon yeah up to you or
0:49:53
if there's not a lot of verbs right like
0:49:54
we can call it again it's up to you
0:49:59
all right cause i was just thinking that
0:50:01
i need to work on a
0:50:11
and jacob is asking when is this last
0:50:14
stage you should take a break
0:50:17
all right come again
0:50:22
dave has uh allowed it so we can no call
0:50:28
thank you andre you saved my agreements
0:50:33
no no i was just pulling keep pulling
0:50:37
as in i don't know why i like doing that
0:50:46
uh okay cool so that one is there
0:51:11
right cool well i would ah yeah that's
0:51:17
i've implemented as in the
0:51:22
as in in dev and master
0:51:25
we have to have to approve reviews for
0:51:28
the per request in order to as in merger
0:51:34
okay how do i do it
0:51:42
do a comment in there directly
0:51:47
so how would you do it is you create a
0:51:52
and then commit that and then um try to
0:51:55
merge it and which will initiate the
0:52:02
that's too much work for this
0:52:07
for dev we don't really have to give it
0:52:09
right like we can just tell the other
0:52:11
people to make a new branch for whatever
0:52:14
work they're doing but we can keep
0:52:15
working on a branch
0:52:18
you know what i mean
0:52:20
but then that would probably
0:52:24
conflicts in the code
0:52:28
okay i will work is
0:52:44
and if they do accidentally
0:52:47
commit in the their branch then all our
0:52:50
work is gone basically
0:52:54
in the previous one but yeah i know what
0:52:59
cool okay if we're gonna feel if you
0:53:04
chance i don't really mind but we
0:53:07
already had too many issues
0:53:11
like that so i just
0:53:20
so then no one can
0:53:22
check in as in diver directly in
0:53:27
i'm just curious like our team is fairly
0:53:31
why why aren't we just trying to tell
0:53:33
them just don't merge into death
0:53:45
like how i did the first the first time
0:53:51
i mean i forgot to check that if i'm
0:53:54
already on the that branch
0:53:59
i'm not saying same thing will happen
0:54:02
but same thing can happen as in a person
0:54:05
might be in a rush or he accidentally
0:54:10
enter and then boom
0:54:15
yeah yeah that's true that's why only
0:54:26
get check out that will uh act as our
0:54:39
uh i'll make this stable middlewarden
0:54:46
minus b off to the checkout
0:54:52
and now you can commit that and um
0:54:57
merge it into dev and that will
0:55:01
create a pull request
0:55:21
no nothing i was just pushing the branch
0:55:27
like stable middle
0:55:43
yeah i think that's fine let's try if
0:55:45
you want to go to that branch and then
0:55:54
disabled middleware probably
0:56:28
if you assign me the review
0:56:32
another skill to measure is that you
0:56:38
you need to approve reviews
0:56:42
to be able to merge it
0:56:48
how do you assign it
0:56:49
go to the i can't see your screen
0:56:52
properly let's zoom down
0:56:57
can see the reviews on the
0:57:17
and i'll approve that hang on a minute
0:57:26
is a bit of a pain as well
0:57:29
but it's for as in the freeze center i
0:57:38
issues again now yeah
0:57:41
so gekko says can you
0:57:43
get other devs onto the stream these
0:57:47
i've been actually working on this
0:57:49
a lot i've been reaching out on a lot of
0:57:51
people on linkedin my other connections
0:57:56
we'll be getting a
0:57:58
tech lead from a really big
0:58:05
next month i'll be able to get this
0:58:08
person who works as a
0:58:10
solutions architect in the us
0:58:13
so they said they were interested as
0:58:15
well but i'm not revealing any names but
0:58:25
some people on the stream for sure
0:58:32
what's up what happened
0:58:39
comments i'll share my screen review
0:58:44
he actually commented on your
0:58:46
thinkpad pad board new why is this
0:58:53
oh it's hardcore because um the frontend
0:58:57
this is for testing purposes only
0:59:00
but when the front end will climb
0:59:11
i'm liking this method now
0:59:16
i'm liking this method now
0:59:33
i mean you can practically see my flight
0:59:44
why i should have commented because it
0:59:47
will be in in the history
0:59:53
go back to it we'll be there
1:00:07
for function work this function works on
1:00:14
we walked on the middle of
1:00:33
good job so let's just wait for andre to
1:00:37
improve it uh approve it if it's happy
1:00:40
then that means that we'll get
1:00:44
reviews and then you'll be i guess
1:00:46
eligible to be merged in
1:00:48
for even on trick and review
1:00:50
really of course he just did
1:01:02
so anyone who has a free repo can do it
1:01:09
hey dad what's that
1:01:22
that was that good to have you
1:01:31
okay it's cool so shall we
1:01:36
have a call at night
1:01:37
yes cool thanks guys for joining in i
1:01:42
we we need to see what we need to do
1:01:44
tomorrow but front today i guess we
1:01:47
made a lot of things work so yeah i
1:01:49
think today was a good session as well
1:01:54
thanks guys and um andre if you can
1:01:58
prove that if you're happy so then the
1:02:00
code can be merged that would be really
1:02:04
and in that way we can keep the dev
1:02:06
branch uh updated as well
1:02:08
right thank you okay
1:02:10
have a good night guys and we'll see you
1:02:18
that was that bad late than never
1:02:21
let's come back tomorrow at 9 30
1:02:23
melbourne time and we'll be here
1:02:26
right guys have a good night and nice
1:02:29
see you guys tomorrow okay cheers bye