0:00:24
welcome back guys to another session of
0:00:27
build break and fix
0:00:29
from the raw coders i hope you're all
0:00:31
doing phenomenal and had a really great
0:00:35
which has been productive
0:00:38
and you might have observed that there's
0:00:40
one uh my co-host car tech um isn't here
0:00:45
so he can't really make it
0:00:47
today uh so it will be just me trying to
0:00:51
entertain and code and have some fun at
0:00:54
the same time with you guys
0:00:56
alright so just a bit a bit of a recap
0:01:00
today we worked on the vet uh validation
0:01:03
of the update board
0:01:05
and i believe um once uh there were two
0:01:09
scenarios in total that had to be done
0:01:12
and one got one got done which was the
0:01:18
we won't allow the update or board um
0:01:22
if there's an empty string okay
0:01:26
i mean essentially if the board name is
0:01:29
not given we won't allow the update so
0:01:31
that has been done i believe
0:01:38
just to give a broad overview of the
0:01:41
project that we're building on um is an
0:01:44
enhanced version of them of the existing
0:01:47
open source project called scrambler.ca
0:01:51
which is a kind of a web
0:01:55
based kanban board so what we're doing
0:01:58
to the existing version is adding
0:02:00
persistent storage to it and also
0:02:04
moving it to aws platform and all and um
0:02:09
implemented some security features on
0:02:11
top of it so all right so that being
0:02:15
said let's jump into
0:02:18
jira and say and see where we are at in
0:02:22
terms of what we need to do today so
0:02:26
i'll just share my screen and we can
0:02:29
tell you from there
0:02:32
cool there we go so this is my jira i'll
0:02:36
log in with my credentials
0:02:45
all right here we go
0:02:49
today let's see where do we need to
0:02:53
so we're doing an overall task called
0:02:58
validation of api data
0:03:02
validation of the update board is in
0:03:06
yes like i said in
0:03:19
uh like i said in the beginning that
0:03:22
empty board names should not go through
0:03:24
that one was done so today we need to
0:03:28
board not found scenario okay
0:03:31
so it's essentially if um
0:03:34
board isn't there but we are trying to
0:03:39
a board that's not actually
0:03:43
database we want to throw throw out an
0:03:51
let's open up this
0:03:55
and that wasn't the one
0:03:58
actually no yeah i needed that
0:04:09
cool here we go brilliant so just
0:04:18
where was the code being developed i
0:04:22
in which branch was it because
0:04:26
i'm pretty sure car tech um
0:04:34
which would be same api
0:04:38
and is he still doing on master
0:04:47
stable backhand cool so let's start from
0:04:50
there i'll do a get pulled from stable
0:05:10
what was it um stable backhand
0:05:17
so it says that we have some pending
0:05:21
we're basically complaining okay cool
0:05:24
it's complaining in that one which we
0:05:26
don't really want so
0:05:28
i'll discard this and then switch over
0:05:31
to the stable back end
0:05:36
so this is the stable back end here
0:05:39
and let's do a git pull
0:05:43
we'll we'll get kartik's
0:05:46
code that he pushed yes today and we can
0:05:49
start working on top of it
0:05:53
all right um updates board name right so
0:05:57
this is the method that we need to work
0:06:00
on i'm just gonna check
0:06:09
update board name yeah that's fine
0:06:19
we need to check if the board so we need
0:06:22
to fraud this error
0:06:26
if there isn't isn't present then we
0:06:29
throw this part out
0:06:42
all right let's do that
0:07:03
okay there we go oh um i forgot to
0:07:16
all right there we go put this on so
0:07:19
that we can get an improved
0:07:58
technicality do apologize for that
0:08:20
actually i'm gonna test
0:08:24
okay that's working and my mic is
0:08:36
jump in there i wanted to test this
0:08:41
okay so first let's get all the boards
0:08:47
yeah i need to get the actual table
0:08:54
so let's get that one first
0:09:05
all right there we go and
0:09:24
log in using this because it seems i
0:09:26
can't remember the password now
0:09:30
okay cloud formation
0:09:37
and which is my stack this one resources
0:09:42
table name is that so swap this table
0:09:56
no no i don't want to do anything
0:10:00
what i do actually want to do is deploy
0:10:24
that would be sam deploy
0:10:27
guided and then we go into the
0:10:33
from the api saying
0:10:36
there we go yeah yeah yeah yeah
0:10:48
there we go almost there just gonna have
0:10:51
a look at the chat
0:10:53
everything is fine
0:10:56
no one's commenting
0:11:00
right uh then oops my bad
0:11:03
how did i do that and then deploy the
0:11:08
yes i want to deploy it
0:11:13
and now it should deploy successfully
0:11:33
now that that's done
0:11:34
we're gonna get all the boards
0:11:43
i think uh my endpoint has changed so
0:11:51
hide this hide the screen and
0:11:58
what's my endpoint if it's the valid one
0:12:13
okay so the endpoint has changed
0:12:17
so what we will do is we will go to the
0:12:24
and go to the stage
0:12:27
go to the prod and then just change the
0:12:36
change it over here
0:12:39
should be good to go set as variable
0:12:42
yes and that one too
0:12:53
now it should give me the boards or at
0:12:55
least it should work
0:12:58
of course i'll just share my screen now
0:13:05
did it actually that's a lot
0:13:11
closer don't want to do that
0:13:14
i'll do that yeah there we go
0:13:20
as you can see there's no board because
0:13:24
a new apn point so i'll post the board
0:13:29
there you go they have got one board
0:13:34
get the board and if i
0:13:41
a board that doesn't exist
0:13:51
one two three it should give me the
0:14:07
come on me come on let's do it do it
0:14:20
four or four board not present okay
0:14:26
right so it doesn't do that
0:14:29
what the ah it inserts
0:14:37
is inserting the ball
0:14:45
we are coming in here set the board
0:14:56
so here we are giving the board name but
0:14:58
we are not really checking that's what
0:15:03
that we are not checking if the board is
0:15:05
actually even present
0:15:13
uh is that from numeric board id
0:15:18
okay board id is there
0:15:20
how about if we just check if the board
0:15:22
id is even present in
0:15:31
yeah we could do that
0:16:05
what i'm thinking of at the moment is
0:16:11
check the board is present as in by
0:16:14
actually going in the database
0:16:18
yeah we will have to check if if it's
0:16:20
present while going into the database
0:16:25
then only we update it otherwise we
0:16:40
cool so how about if we
0:16:54
this one can come at the bottom update
0:17:02
actually i'll do this params one
0:17:11
that's an object so we need that table
0:17:14
name is equal to table
0:17:29
so i need to query this board and see if
0:17:37
so board id equal to board id
0:17:46
then we what we need to do is
0:18:13
that's me trying to speak it up
0:18:16
by the looks of it
0:18:24
and if we do have we got variable called
0:18:29
we've got variable called board here
0:18:32
anyway up there in
0:19:27
board items is that the one
0:19:30
i just want to check how this was done
0:19:40
ah here we go we can use turn real
0:19:45
yeah but if this is
0:19:50
which would give us the result
0:19:54
now i don't want to have this one
0:20:01
just to have a recap of what
0:20:05
so if this result okay cause says
0:20:11
let's check if this idea works
0:20:14
so board is that one
0:20:26
if this comes up then
0:20:30
okay so if board is empty empty then
0:20:46
but if it is there
0:20:48
if the board is there then
0:21:02
we want to update the board behind the
0:21:09
as as an else can i use
0:21:14
operator and i'll fit out the else parts
0:21:24
board board radar client
0:21:44
not found otherwise
0:21:53
otherwise go to do do
0:22:02
can i use tony operator
0:22:15
use ternary operator
0:22:21
with one condition
0:22:24
let's check if if i can
0:22:28
and express your return your printer
0:22:30
must have both values right cause i'll
0:22:32
be cons so i would just say come back to
0:22:35
the old-fashioned one
0:22:40
come back to switch
0:22:45
switch that one is empty
0:23:14
so if if this is true so
0:23:17
if the board is empty then we're
0:23:21
gonna present board not found
0:23:24
as in board not found
0:23:28
okay but if it's false
0:23:35
update it and do everything over here
0:23:58
okay this should work
0:24:16
so by default we can do it as
0:24:27
considerate is empty
0:24:43
okay which means that
0:24:47
which means that if this is
0:24:55
if is empty if the board is dead then it
0:24:58
will uh update it otherwise it will
0:25:02
always zoom if this is
0:25:05
not false then it will always assume
0:25:12
all right let's try this one now and see
0:25:33
okay that one's done now we'll do a
0:25:52
okay yeah i want that one that one live
0:26:24
okay let's just hope that this works
0:26:33
i forgot to remove this line we don't
0:26:36
really we don't really need that anymore
0:26:48
it's coming up as bad gateway
0:26:52
was working before wasn't it
0:26:57
sorry about this i forgot to
0:27:00
close everything before
0:27:09
i'm must have been some kind of a syntax
0:27:32
uh yes to the syntax error
0:27:36
undefined invalid shorthand
0:27:49
oh what did i mess up here
0:27:53
so what i did was this one
0:27:59
shorthand don't need this
0:28:21
then just come in there
0:28:23
that one and try this this one out
0:28:31
it's true then just return this
0:28:35
why is this saying that
0:28:47
know this is this shouldn't work
0:28:54
let me console.log
0:28:56
board and see what happens
0:29:01
all that actually board items
0:29:53
just want to check what do i get for
0:30:04
all right i won't get anything because
0:30:07
that thing has to be different
0:30:14
key condition expression
0:30:17
right yeah that has to be different
0:30:26
yeah because that's actually different
0:30:29
than what i would expect
0:30:35
in valley shorthand property initializer
0:31:23
this is what i needed params table board
0:31:26
id that one that yeah call
0:31:30
let's see if it works
0:31:58
board okay cool yeah so i don't need
0:32:16
hey tutorial little phil what's
0:32:18
happening you're right welcome again i
0:32:23
oh right okay i will have a look at that
0:32:30
letting me know that there's been full
0:32:32
on so i hadn't had a chance to
0:32:35
look at slack up until now
0:32:39
but yes soon as i um get a bit of time i
0:32:42
will have a look at that
0:32:52
so let's oh my god
0:32:55
sorry about that guys
0:33:04
so just do a deploy
0:33:08
um sam deploy hyphen g
0:33:16
um that was ah yeah that's my region yes
0:33:25
anything else nope
0:33:36
all right so now the chainsaw is about
0:33:42
let's just wait for it here we go
0:33:49
why am i feeling sleepy
0:33:50
already it it's actually tell
0:33:56
don't blame myself to be honest
0:34:02
was it time oh there tory littlefield
0:34:10
let's check if this works
0:34:17
ah so that was the problem perfect
0:34:21
all right so if we give it this id
0:34:25
and we want to patch it with the wrong
0:34:32
that one don't give it ff
0:34:35
i don't want it to
0:34:37
go through the pickup because the board
0:34:41
let's see what it gives us yeah board
0:34:56
she needs some sleeps
0:35:01
like you guys are not free i was there i
0:35:03
won't be attending any more deaf cops
0:35:10
uh there has been actually a time
0:35:14
difference and yeah i didn't really
0:35:18
know either that we are actually three
0:35:23
no no no no no way mate oh although i
0:35:27
wake up at that time but um yeah
0:35:35
three or four months of hard work as in
0:35:39
getting out of my comfort zone as a
0:35:45
yeah i wake up at 4 30 5-ish
0:35:49
in the morning every day
0:35:52
which is good but um
0:35:58
do that as hard it is hard
0:36:01
all right so this is done our validation
0:36:07
when the board id isn't correct but it
0:36:10
tries to update it shouldn't
0:36:13
i'll just go and check
0:36:16
if everything of the updates
0:36:24
these are the notes okay
0:36:26
update board yeah board is invalid
0:36:33
and if the board is
0:36:36
if actually why am i even doing that
0:36:39
i kind of just do this
0:36:45
that board that one cool that's fine
0:37:00
go and update it but if it if actually i
0:37:04
didn't really test the update
0:37:15
for zoom no thanks yeah
0:37:21
yeah i would think this
0:37:29
get up if you haven't go as in a valid
0:37:32
as in really kind of kind of a
0:37:42
okay i needed to test if the board is
0:37:45
actually updating with the refried
0:37:49
board id which i haven't tested yet but
0:37:52
i'm gonna do that now
0:37:59
and if i do this to four five six and
0:38:06
then it should get updated
0:38:09
and if i do that one i should still have
0:38:15
the end one with four five six there you
0:38:20
so that's updated it but if i
0:38:26
then it shouldn't update it now here we
0:38:29
go board not found brilliant
0:38:49
scenario is done now so we can
0:38:56
okay so that's all the validations done
0:39:01
update board what else have you got left
0:39:09
tested it and that's working as well
0:39:17
okay so seems like all the validations
0:39:25
what do we want to do next i'm
0:39:28
just thinking because
0:39:35
validation working
0:39:40
that's already done half an hour before
0:39:48
what else can we do now
0:39:53
what else can we do now uh how's taking
0:39:59
cloud practitioner exam
0:40:05
you could do that toil you'll feel it i
0:40:08
think that will really help you in
0:40:12
and getting your foundations concreted
0:40:15
and validate your knowledge officially
0:40:19
taking the exam because it really
0:40:22
focuses on extreme fundamentals of
0:40:29
do i need a webcam i think you would
0:40:34
need a webcam because
0:40:36
there is apparently a proctor or
0:40:39
there is an automated
0:40:45
examining you on the other end
0:40:48
so i would say yes you have to turn on
0:40:54
did you have a funny idea in mind
0:41:06
yeah i think that shouldn't really be a
0:41:08
problem if it's only your
0:41:17
off a good quality which i think they
0:41:22
they have a minimum requirements from
0:41:24
what i could tell but
0:41:27
yeah a normal webcam
0:41:32
fine i'm pretty sure and how do i know
0:41:35
that because i did my cloud
0:41:37
practitioners i think it was cloud
0:41:39
protection or the solutions architect
0:41:42
no yeah it was a solutions architect
0:41:46
exam and that one i did
0:41:52
and they didn't really have any
0:41:56
objections on that
0:41:59
it spoke with four corners
0:42:02
uh by four corners
0:42:10
these four corners as in
0:42:18
one yeah i mean you got the idea
0:42:24
yeah perfect man perfect and i think
0:42:31
i'll be i'm thinking of taking my
0:42:39
exam as well as in
0:42:43
while and i really have to get into this
0:42:50
webcam for four corners
0:43:00
on something weird
0:43:04
i didn't get you man
0:43:17
um i think if you're s
0:43:22
oh i'm going to take cloud projector so
0:43:28
yeah i got that one as well when i was i
0:43:32
did the first one and then
0:43:38
next exam on that one i got half price
0:43:40
off so which was good couldn't say no to
0:43:48
um by the way i've
0:43:50
written a blog on my journey of the
0:43:53
cloud practitioner let me know if you
0:43:57
go through him maybe you might add a bit
0:44:01
in there from my experience
0:44:04
yeah never mind about the background
0:44:07
like some weird rules
0:44:11
yeah i think also that there are some
0:44:14
fair rules because um
0:44:18
has got her exam of cpa because she's
0:44:23
she's an accountant
0:44:28
literally emptied half the room just to
0:44:34
camera requirement
0:44:36
that's how where the rules are and
0:44:47
uh let me check um if i can
0:45:00
unless it's going down
0:45:07
ah here we go yeah that was the one that
0:45:13
cloud partition exam
0:45:15
so you can go and have a look over here
0:45:19
and see if you find this
0:45:36
the link that i've just posted it's um
0:45:40
one that i wrote after my exam so
0:45:53
the people who i've
0:45:55
given the same blog
0:45:58
they also said this same thing that you
0:46:00
will s stop them repeat the mistakes
0:46:04
that i made per sleeve which is always
0:46:09
to see as in people
0:46:11
learning from other people's mistakes
0:46:19
so after the cloud petition exam which
0:46:25
which one are you gonna
0:46:27
are you gonna go with as in
0:46:30
dev associates straight away or this
0:46:33
solutions architect one first
0:46:41
i'm bill from paris
0:46:44
i'm sure that's not the case man
0:46:57
yeah and just to give you a bit of a
0:47:00
heads up about the devas so that
0:47:03
that is really as in highly technical
0:47:06
and it requires a lot
0:47:13
but if i would highly recommend you and
0:47:18
good hands-on experience with aws
0:47:22
first and especially this services that
0:47:26
associate covers because
0:47:29
you won't know the answers to the
0:47:31
questions just by doing the course you
0:47:35
will have to have have a lot of hands-on
0:47:40
problems solve different different kinds
0:47:44
calculate probably these rcus and
0:47:58
loads of free time uh you're lucky man
0:48:01
man i wish i could say
0:48:07
every day um because i'm working on some
0:48:11
as well in my spare time so i l i
0:48:15
literally don't have any spare time
0:48:17
except a little bit in the weekends
0:48:21
that's why i'm a happy to help
0:48:24
um i'm just gonna go and see giraffe
0:48:34
make the front end of the backhand
0:48:39
this is pretty awesome
0:48:42
because we have done the
0:48:44
make the backhand torque so backhand is
0:48:48
backhand and the validation
0:48:51
which involves the validation is almost
0:48:57
and we can hopefully stop moving on to
0:49:00
the front end and the devops
0:49:05
things when um as soon as the time comes
0:49:09
which will be epic
0:49:14
my goals getting a job so i have the
0:49:17
advantage of free time
0:49:26
i would say the way your utilizing all
0:49:32
time is very you know in in a productive
0:49:47
getting a lot of hand uh
0:49:53
you're doing both so well done
0:49:58
the free time well spent
0:50:01
suckers with jobs have no time
0:50:08
i think you'll soon
0:50:11
realize that when you have
0:50:16
job as well man but
0:50:20
say the people with job have
0:50:24
suckers though because i mean
0:50:28
they're doing what they
0:50:37
if you don't really want to have a free
0:50:39
time because you're enjoying your
0:50:41
time that much doing
0:50:52
lines that i say so
0:51:00
i think yeah it does
0:51:02
it does impress the bosses
0:51:05
in that way to be honest
0:51:09
and then you get a job
0:51:23
like i'm stormed with work
0:51:27
well if you use the word swamped then
0:51:30
you're not really enjoying what you do
0:51:33
right you're just doing it to pay the
0:51:37
i don't see you working in this way i
0:51:43
i do but i do have
0:51:45
a rule that i want to i want to start on
0:51:48
time and finish on
0:51:50
time because i do have as in a
0:51:52
professional professional life and a
0:51:55
personal life as well and i don't like
0:51:59
mixing them both up it's just
0:52:11
say i'm purposely um a person can
0:52:13
probably say i'm purposely
0:52:23
loves his job damn that much that he's
0:52:26
always purposely engaged
0:52:30
if that makes sense to be honest
0:52:45
and okay i'm gonna
0:52:55
this call changes i don't need that
0:53:00
what did i add up i just want to make
0:53:02
sure i've done the
0:53:12
leave this to his one
0:53:18
he doesn't have any trouble
0:53:22
changing it afterwards so all basically
0:53:33
and then if it's empty
0:53:38
no empty then i'm just doing that
0:53:42
doing the prams as well updating and
0:53:56
i forgot to send the error in that way
0:54:03
korean notes no i don't want to create a
0:54:07
i want to update the board
0:54:14
that should be working fine
0:54:19
okay cool so let's add
0:54:28
to stable backhand yeah
0:54:55
working for update
0:55:02
commit there and then push this
0:55:08
just stable backhand that's fine
0:55:11
uh so this is pushed
0:55:13
don't need this don't need this anymore
0:55:27
your time for the work boys
0:55:30
why you're so slow
0:55:39
i'm swamped with work
0:55:42
uh i'm heading out of bali soon so i'll
0:55:47
joining ustiffs as a worker
0:55:51
as a worker drone at least i hope i'll
0:56:01
cool toy littlefield that would be um
0:56:05
appreciated if you can still
0:56:08
join us because we always
0:56:12
we always love having our
0:56:15
viewers on every day if that can be
0:56:18
possible they're reopening the
0:56:20
international airport here later this
0:56:23
month yeah i can't
0:56:25
wait man because i've heard that they
0:56:27
are opening the international borders
0:56:33
either next month or in december
0:56:36
but that depends on if um
0:56:40
uh if if the vaccination
0:56:43
percentage has 370. so
0:56:47
yeah i can't actually
0:56:51
go back home as well as in to
0:56:56
family and friends it's been a it's been
0:57:01
when do you think that you'll be as in
0:57:13
soon as the board is open
0:57:16
you have been almost two years for me
0:57:19
yeah man uh that's the case for me as
0:57:23
well it's been two years
0:57:28
when it's been a while then you realize
0:57:31
that how much you miss home
0:57:35
i don't i don't know if that that's the
0:57:37
case for you as well but
0:57:41
a few weeks ago wait for the airlines
0:57:50
so that means that
0:57:53
you you just got stuck
0:57:58
i think you didn't
0:58:00
actually wanted to
0:58:02
live there did you
0:58:06
because of the borders
0:58:09
front opens so you got stuck
0:58:24
don't miss some fun with um losing a lot
0:58:30
but i am losing a lot more by having to
0:58:35
yeah that makes sense though
0:58:41
yeah i came here for like two weeks back
0:58:44
wow that's how long the
0:58:48
yeah unplanned trip however two years
0:58:56
in that case you can actually say that
0:59:02
two-year holiday to be honest
0:59:05
that would be a pretty good um
0:59:10
holiday unplanned holiday
0:59:18
unexpected trips are always the best
0:59:35
all right um seems
0:59:39
like that is it for
0:59:46
yeah i'm most stressful
0:59:49
two years but a lot has changed for the
0:59:52
better yeah that i would
0:59:55
agree i mean these um
0:59:58
uh the second circumstances have
1:00:01
actually taught us a lot
1:00:08
for your trip that you're going to be
1:00:10
heading our bodies
1:00:12
soon and still join us if you can as a
1:00:18
worker drone is always
1:00:22
good to have all the
1:00:24
viewers as in as many viewers as
1:00:36
tutorial field and other guys spell it's
1:00:39
been great having you and um yeah we
1:00:48
tomorrow if you can make it if not
1:00:50
whenever you can make it same time
1:00:53
same place and a different task this
1:00:55
time oh yeah boy you got it
1:01:01
see you guys then cheers bye