0:00:25
what is going on guys welcome back to
0:00:27
another session of build break and fix
0:00:30
um we are the raw coders
0:00:32
and you might be observing the car tick
0:00:41
so we'll just wait for him and see if it
0:00:45
comes up but yeah um today we
0:00:51
we're gonna be moving on
0:00:54
our next phase of the project
0:00:58
called um the enhanced version of
0:01:03
which is basically a kanban board
0:01:06
and we are enhancing the existing
0:01:09
version but adding persistent storage to
0:01:13
yeah um we'll be working on that one and
0:01:20
going so far and there you go our
0:01:24
how's it going oh sorry i'm very good
0:01:29
pretty good pretty good my light fell
0:01:35
yeah how did it happen as it didn't
0:01:39
no it didn't break again but
0:01:42
yeah it's just the
0:01:44
what you call it the blue tag it's just
0:01:46
not working um i'll probably get
0:01:51
i was just browsing through ikea to see
0:01:56
ah okay cool cool and did you find
0:02:01
thing called 3m command
0:02:04
um apparently it's used to hang like you
0:02:07
know heavy photo frames
0:02:10
um it's like a strip
0:02:12
so i think i'll just get that that looks
0:02:15
pretty strong okay
0:02:16
right right right yeah probably do that
0:02:19
it's i still made up of glass is it
0:02:26
what might it's not glass yeah but it's
0:02:28
not plastic as well
0:02:30
i forgot what that's here
0:02:36
what's going on you get there
0:02:38
you're right there
0:02:40
yeah so just to update you from what
0:02:43
happened yesterday that i'm i managed to
0:02:46
do the validation or board
0:02:49
not found in the update method
0:02:51
so that's all done
0:02:55
from the looks of it that our
0:02:58
validations in the api is all completed
0:03:04
and we can do a final test um yes that's
0:03:09
gonna suggest today
0:03:14
all the validations and scenarios one by
0:03:19
one and see how they act up as
0:03:24
yeah um what's the next step bill after
0:03:28
um the next step would be
0:03:37
the front end part
0:03:45
probably done from the best of my
0:03:47
and the only thing
0:03:52
front-end and that's just from just from
0:03:55
the perspective of
0:04:07
so in that sense we are able to
0:04:11
like let's say someone creates a board
0:04:13
and then clicks on add note
0:04:15
we are able to write something on the
0:04:17
note and it gets updated to a backend
0:04:20
is it happening right now
0:04:22
so in the front end um that's what we
0:04:26
need to work on so as soon as um we
0:04:31
we need to i think um implement the
0:04:36
i haven't seen how the front end is
0:04:39
working at the moment because we have
0:04:40
been mainly focusing on
0:04:43
backhand and middleware but i need to
0:04:46
study the code of front-end and see how
0:04:48
it's actually pushing the data and how
0:04:54
push the data from the front end to the
0:04:56
middleware so we need to work that one
0:05:07
what i mean to say is that
0:05:09
the connection between the front end and
0:05:11
the middleware has to i think be
0:05:22
cool i think that should be fine
0:05:25
i mean we're using vanilla gs right now
0:05:27
for the front end but yeah we probably
0:05:29
want to move to something like
0:05:38
that's that would probably be happen
0:05:41
after the first release as in the first
0:05:46
just be the mvp nothing else
0:05:59
the first release yes why not because uh
0:06:05
was only intended to have persistence
0:06:08
persistent storage in the
0:06:14
start on also changing the
0:06:17
vanilla js to react
0:06:20
then that wouldn't be called as an mvp
0:06:24
anymore so what i'm thinking
0:06:30
we need to release the mvp
0:06:40
goes and that if that's working properly
0:06:43
then we can come back and
0:06:48
front end to react
0:06:51
okay after the first release
0:06:53
right um i just don't know like what do
0:06:56
you mean by mvp can't be released in
0:07:01
okay so the whole intention of starting
0:07:06
was to add persistent storage
0:07:11
and it's a personal preference that
0:07:13
just the definition of mvp is the
0:07:17
minimum viable product which is working
0:07:22
to the goal that we
0:07:25
intended to which is
0:07:27
persistence persistence storage only
0:07:34
make sense okay cool
0:07:37
perfect and gekko's asking what's the
0:07:40
difference between middleware backhand
0:07:45
how i like to call it as in
0:07:53
side and backhand is server side and the
0:07:56
middleware comes when
0:08:02
you wanna make front end talk to the
0:08:04
back end so in between you come the the
0:08:08
middleweight comes i don't know how
0:08:12
that definition but that's probably my
0:08:19
front and fetch calls are still front
0:08:27
my understanding would be
0:08:30
so there's no such concept as
0:08:34
as in in this case or in this context
0:08:52
learn to pronounce
0:08:54
non-computing noun computing software
0:08:56
that access a bridge between
0:08:59
between operating system or database
0:09:06
right right right okay
0:09:09
yeah then my understanding was incorrect
0:09:18
i learned a new a new proper definition
0:09:21
on middleweight today interesting
0:09:29
do you want to go ahead and do the
0:09:32
testing or shall i do it
0:09:36
let's see what happens
0:09:39
so you probably want to share your
0:09:41
screen then and see how it goes
0:10:03
okay postman we need postman right
0:10:12
you know what i never created a desktop
0:10:16
let's try doing that
0:10:18
it'll be easier for me to stop
0:10:22
like you know how there are like other
0:10:25
windows you can go to
0:10:29
right right right i mean yeah you know
0:10:33
yeah i see yeah i always use
0:10:37
how do you do just a lot easier
0:10:40
it just came into my options by itself
0:10:43
as in you show on choose a screen and
0:10:50
screen 1 or desktop
0:10:58
you know how you can create like
0:11:05
different desktops
0:11:08
you know how they're like different
0:11:10
i'm just trying to do that give me one
0:11:12
second oh workspace right here basically
0:11:15
kind of like workspaces
0:11:17
okay mission control
0:11:26
um space bar and plus
0:11:33
so like in mac here there's a thing
0:11:35
called mission control
0:11:40
not sure how exactly it works
0:11:50
it's fine anyway um
0:11:57
oh i'm just gonna show my screen do you
0:11:59
have everything on
0:12:01
jira can you confirm
0:12:05
yes everything is there
0:12:26
can you tell me each of the scenarios
0:12:36
okay so the validation for
0:12:41
is validate for the
0:13:05
um deployed on yours
0:13:20
deployed in on my stack but you would
0:13:29
table name to my one
0:13:33
all right or i'll just test it in yours
0:14:02
did you change the url well you probably
0:14:04
did can send your new i did
0:14:07
did you not update in the workspace
0:14:14
it will be under my one yeah i'm testing
0:14:21
i did it last time
0:14:42
um are you choice not there because i
0:14:48
let me stop sharing
0:15:16
no i'm still not working
0:15:22
um that thing is not there
0:15:25
what thing is in there
0:15:32
name have to be changed
0:15:34
i'm using your endpoint
0:15:37
yes but in your in
0:15:42
i don't need to pull it the endpoint
0:15:50
is your table name it's not my table
0:15:57
your end point right
0:16:06
i changed the table name to
0:16:09
back to where it was for your ones
0:16:13
so it's easiest for you to work
0:16:18
you need to change the table name to
0:16:21
the table name that
0:16:24
my set has if that makes sense
0:16:28
you deployed it to your endpoint right
0:16:31
yes i deployed it to my endpoint and i
0:16:36
yes but i'm not saying that
0:16:38
i don't need to open the code at all if
0:16:41
it's on your aws account and it's it's
0:16:45
okay i'm not talking about the endpoint
0:16:48
here i'm talking about that
0:16:54
that cloud formation generates
0:17:02
when it was working for me
0:17:04
before committing i changed the table
0:17:16
stack in your account
0:17:20
how is it gonna be any different right
0:17:22
i'm not deploying it
0:17:26
the endpoint you have which is deployed
0:17:28
on your aws account
0:17:35
if you're if you're using my stack
0:17:39
and my i'm just doing a postman postman
0:17:42
query right i'm just doing a postman
0:17:52
um if i use your end point i should
0:17:57
i can't hang on a minute i'll explain
0:17:58
you in a different way
0:18:03
let me just log into
0:18:23
okay tell me it is in the code you have
0:18:31
i don't need to open the code then um
0:18:35
why do you want me to open the call okay
0:18:45
just open the code
0:18:53
where am i coming from
0:18:59
you can get this asking what are you
0:19:09
oh where's the code oh come on check
0:19:13
oh vs code being annoying again
0:19:40
okay um new file new window
0:19:49
and scramble sam api
0:19:52
yes do you want me to share my screen
0:19:56
get pull on stable backhand
0:20:05
just let me see what branch am i on
0:20:23
this one that i've just sent in the
0:20:29
it probably doesn't
0:20:45
yes so this is what i was pointing out
0:20:51
okay i got the url
0:20:56
i tested everything with this um table
0:21:01
but then when pushing the code into
0:21:06
just thought it would be easier for you
0:21:12
when you come in not to change your
0:21:18
okay um i just want to ask
0:21:20
you deployed this code right to your
0:21:25
that means you had an endpoint which is
0:21:27
public like anyone can use it
0:21:32
regardle leave my account alone like
0:21:36
table name or my endpoint alone
0:21:39
yeah so i should be able to
0:21:42
not open the code at all right now and
0:21:44
use the end point for your stack
0:21:47
um your api gateway in your aws account
0:21:51
and do a testing on postman i'm not
0:21:54
talking about the api endpoint
0:21:58
we need to test stuff so we need the end
0:22:00
point exactly so this wasn't the plan
0:22:04
today this wasn't the plan that we would
0:22:13
without opening up the code if i knew it
0:22:16
if i knew this was a plan i
0:22:19
would have actually committed this
0:22:22
table name that i've just sent you
0:22:29
okay cool so what i'll have to do is
0:22:36
what do you mean push look it up
0:22:39
yes and it's okay at the moment
0:22:43
that okay and just change your screen
0:22:53
look at this there you go
0:23:00
what do you want me to open oh this is
0:23:04
i mean you could be one meeting me to
0:23:06
open what's up oh sorry
0:23:15
on your end you have that
0:23:21
that table doesn't exist
0:23:25
in the stack that we're
0:23:30
your your aws account you pushed with
0:23:38
forget everything now okay
0:23:43
say that we have created a stack
0:23:55
table name is with
0:24:02
but the table name that you the
0:24:06
table endpoint that you have is from
0:24:13
so all we need to do to get this
0:24:16
working is that i need to
0:24:22
the table endpoint that i've got in
0:24:25
order to for you to test in postman
0:24:33
um why don't you i mean
0:24:35
i get what you mean why can't you just
0:24:37
push it to your um aws account
0:24:40
that's exactly what i'm gonna do
0:24:44
yeah you don't need to push it to github
0:24:51
the aws account hasn't got nothing
0:24:54
to do with it okay
0:25:03
the fact that it's not working for you
0:25:10
your code has the previous
0:25:13
arn of dynamodb table
0:25:22
does that make sense now
0:25:26
you're really tired today
0:25:30
i'm not tired i think um it's
0:25:36
just you must have had a really really
0:25:38
long day and you're hungry as well so
0:25:47
yeah i'll do that i'll do that i just
0:25:51
what's the problem if i use your
0:25:54
with the code which is deployed on your
0:25:56
cloud formation is there a problem with
0:25:58
that or do i need to get it to my
0:26:07
how can i put okay hang on
0:26:10
let me just fix this
0:26:12
and then i'll come back to the uh
0:26:15
explanation because
0:26:18
aws account hasn't got anything
0:26:22
to do with this problem
0:26:27
i mean i don't i'm not saying that aws
0:26:29
has a problem it's just that it should
0:26:31
be deployed on someone's account right
0:26:34
and it was deployed in yours
0:26:39
yes and how is the code working at the
0:26:44
it's not that's what i'm asking you that
0:26:46
it's not exactly which is not working
0:26:48
for you and by fight
0:26:50
try and do it it will work for me
0:26:53
but it's an end point which is open to
0:26:55
the public it should work for everyone
0:26:59
okay hang on i'll come back
0:27:08
then we can talk about it
0:27:11
andre says this is a real head scratcher
0:27:15
funny enough i was scratching my head
0:27:30
um this is the one
0:27:35
why so if i get that
0:27:38
endpoint that gave you
0:27:48
and then declare it
0:28:14
deploy not sharing a screen so you don't
0:28:20
oh forgot about that
0:28:23
it's a habit that i'm
0:29:16
testing now it should
0:29:32
what's your api endpoint you need to
0:29:35
have a look at that
0:29:37
it can't show my screen but one sec
0:29:45
yeah initial set starts with hl
0:29:49
that's all i'm gonna yes
0:29:55
did you update in in postman
0:30:19
i really don't understand what's
0:30:26
way we can fix it on
0:30:29
your end um just uh show me your screen
0:30:34
i just want to know like what the table
0:30:37
thing is about right like
0:30:42
why do we need to deal with tables
0:30:44
that's what i'm asking
0:30:46
okay it is the information is coming
0:30:48
from the table yeah yeah
0:30:51
there is your code
0:30:53
you did sam build and you did sam deploy
0:31:00
zen a aws account and it forms stacks
0:31:04
and there was an endpoint created
0:31:08
and that endpoint should be accessible
0:31:15
if it's the right one here the hl one is
0:31:19
the right one right
0:31:23
so i'm just asking why do we need to go
0:31:25
into my aws account
0:31:36
i meant in the code
0:31:39
okay even if i fix it
0:31:41
how is it going to fix anything
0:31:44
even if i change the table name on go to
0:31:46
vs code right now change the table name
0:31:49
how is it going to fix anything at all
0:31:54
to my aws account which is which is not
0:31:57
the point the point is to solve why is
0:31:59
it not working on your account no to my
0:32:01
it is working on my account because i
0:32:05
access it that's what i mean because
0:32:09
something wrong with
0:32:11
your side which i'm actually
0:32:21
with you but you're asking me all these
0:32:23
questions which i'm
0:32:24
probably going nowhere
0:32:27
okay so what do you want to do that's
0:32:33
oh the challenge is interesting this is
0:32:36
getting really aggressive
0:32:38
this is getting really interesting to be
0:32:54
all the learnings and
0:32:57
everything to increase my skills and
0:33:03
from the viewers so
0:33:05
yeah they can all be on your side i
0:33:07
don't have a problem with that
0:33:11
um right can you send me a url again
0:33:14
i'll try updating it again on postman
0:33:17
maybe it didn't go through when you
0:33:19
updated it last time
0:33:23
okay but all right
0:33:41
okay this is people are tired yes that's
0:33:44
why we started taking saturday off
0:33:54
i mean it's hard stuff for sure right
0:33:58
since doing full-time work i'm doing
0:34:00
full-time uni and work
0:34:03
it's hard for both of us for sure um
0:34:07
to do it every day but that being said
0:34:11
toriel dale is saying
0:34:14
scenes against the whole baby it's not
0:34:22
as in these kind of experiences
0:34:26
which you can learn from and just
0:34:28
keep keep keep moving forward
0:34:34
but i'm really curious what this one is
0:34:38
i really don't know what
0:34:47
hanging on the concept and probably
0:34:52
i might be not even making
0:34:56
sense maybe no maybe it's too
0:34:58
complicated for everyone else to
0:35:02
or maybe i'm not explaining it in a
0:35:05
really effective manner
0:35:10
okay let's try posting a book okay now
0:35:12
it works when i updated it
0:35:14
in um postman i'll show it to you
0:35:18
um so i think i know what happened
0:35:21
so you know how in
0:35:27
um when you add a variable or when you
0:35:29
add an environment variable there are
0:35:31
two aspects to it one initial and one
0:35:36
what happened was when you updated it
0:35:38
you updated it in the
0:35:43
initial value of the variable
0:35:45
but the current value of the variable
0:35:49
postman request actually uses was the
0:35:52
previous one that's not true
0:35:55
okay that's what i just because i'm 100
0:36:01
filled it both but apparently there
0:36:12
uh yeah i don't really care what
0:36:15
but it's fixed so yeah let's let's move
0:36:17
forward cool um the first validation you
0:36:21
would check for is
0:36:24
id yeah right i'm just getting all the
0:36:28
boards that's working
0:36:33
don't see what happens in this
0:36:41
all right that's all good
0:36:55
finding the board my friend
0:37:08
and these things are working i'm pretty
0:37:09
sure um but it's always good too can you
0:37:14
jira ticket gag that was on to me now
0:37:17
can you please make a
0:37:19
jira ticket to explain
0:37:21
what you're talking about saying
0:37:28
problem is re source so um
0:37:32
it doesn't really make any sense to go
0:37:40
at this stage i would say
0:37:42
just saying this is all on youtube
0:37:48
jeff which is fine i'm not
0:37:54
you guys i'm making it
0:37:56
like i'm really as in embarrassed or
0:38:00
what i'm doing but i'm not man as in
0:38:02
it's all all power yeah earnings and
0:38:15
i mean the only thing is that these are
0:38:17
all the scenarios which we came up from
0:38:20
maybe there are you know you just we
0:38:21
don't know about but that's absolutely
0:38:23
we're gonna figure it out um
0:38:26
in the process we can't yeah
0:38:31
okay empty space is going through
0:38:33
that should not happen
0:38:37
empty space is what
0:38:57
um i'm doing a post board and when you
0:39:00
put board name as empty space
0:39:04
it doesn't work i mean
0:39:10
okay so empty board
0:39:16
so what we basically need to do is that
0:39:18
we need to do a trim function
0:39:21
just before validating anything
0:39:24
that's always costing
0:39:27
is creating the board
0:39:49
okay i'll just logged that in jira
0:40:06
the length of the board name
0:40:10
um and do the same write the same for
0:40:25
probably the same thing is happening
0:40:27
with poster note let me just try and do
0:40:33
now let's change the board id
0:40:56
i did something wrong
0:40:59
it says status code
0:41:05
but the messenger is the weirdest
0:41:16
what did you do post note
0:41:18
yeah and when i put single node as a
0:41:26
successful response which is which i
0:41:29
because you did receive a json object
0:41:31
but in reality it says that
0:41:36
validation exception
0:41:48
that's interesting
0:41:51
and if i put something high um
0:41:58
so you're creating a board isn't it
0:42:01
creating a note that's just not working
0:42:04
ah yeah creating a note
0:42:07
you bought present independent note in
0:42:12
that's just totally not but am i doing
0:42:14
wrong surely doing something wrong here
0:42:20
let me do it again i'll get all the
0:42:26
okay there's my dear little board
0:42:40
you wrote the 200 message
0:42:51
they don't write as in 200 mess
0:42:54
suggest it's just a
0:42:57
stairs could but if it comes with four
0:43:00
or four or four hundred then we
0:43:03
return a message here
0:43:08
the provide expression
0:43:10
refers but that does not exist in there
0:43:34
something to do with dynamodb
0:43:44
but you're not a pending oh we are
0:43:49
a pen is not working
0:44:02
why is the pen not working with
0:44:04
oh okay list a band
0:44:08
let me see what stackoverflow is trying
0:44:13
you can use lists of
0:44:17
this was working before isn't it
0:44:23
so what scenario are you testing at um
0:44:27
i need your testing post by giving it a
0:44:33
even if i do it normally that's just not
0:44:49
i provide this pressure first to an
0:44:53
it doesn't exist in the item
0:44:56
so is saying that a single node does not
0:45:03
no it's not saying that single note or
0:45:05
something if this is a dynamodb error
0:45:09
i've seen this before i've seen these
0:45:11
types of returns before okay
0:45:15
dynamodb did something but where did it
0:45:19
happen i want to know
0:45:22
where was the rest of send happen which
0:45:28
i mean it i really should have just
0:45:35
this is just completely
0:45:44
that's not supposed to be there
0:45:47
um i know what's happening
0:45:49
so what happened was
0:45:53
okay first of all board is there this is
0:45:58
even if board is not found we made
0:46:01
a very big logical error
0:46:04
that tries happening here
0:46:06
and if try fails that means board is not
0:46:09
there it's doing this res dot send this
0:46:15
unexecutable code yeah
0:46:18
so either we need to bring the try catch
0:46:24
deal with something
0:46:36
that's why i've always liked keeping
0:46:37
track outside the for loop for some
0:46:44
but yeah also actually one more thing
0:46:48
gender pointed out that we need to do a
0:46:50
return semicolon to solve the function
0:46:53
so even after do we doing a res dot send
0:46:55
inside the for loop every time
0:46:58
um the code is the for loop is still
0:47:05
even here we should have done a return
0:47:07
semicolon in all the times we did
0:47:10
anything any return in the for loop
0:47:16
yeah that kind of makes sense
0:47:22
did you change this code though um i
0:47:24
don't think single note was like this
0:47:30
i if i did i can't remember
0:47:34
um i don't want to mess with it let me
0:47:36
just see what's on github
0:47:42
okay dave is saying that you can't
0:47:44
return from a for loop
0:47:49
all right ready can we do a break
0:47:55
that's your favorite one isn't it
0:47:58
come on you gotta give me this time
0:48:10
i'm sure that was story [ __ ]
0:48:13
yeah it was i don't know for a fact that
0:48:25
i need to have some sleep
0:48:30
oh wow just 10 more minutes
0:48:32
left well the time literally flies
0:48:39
oh let's go super back okay there should
0:48:56
yeah so that's like that okay
0:49:02
why is dynamodb saying that there's
0:49:10
there is a weird day to code isn't it
0:49:14
it was working yet no one touched
0:49:23
welcome to coding fails guys
0:49:28
logic fails fields spells
0:49:35
well i know how to resolve this
0:49:38
i think it was in the
0:49:42
single notes is an object and you're
0:49:45
basically insane that
0:49:51
you're doing that i'll do something more
0:50:11
no i have a privilege oh deaf job story
0:50:13
will be happy with this
0:50:17
at least getting paid good
0:50:31
i don't understand what's happening here
0:50:33
why is this not this is literally like
0:50:36
literally literally impossible this was
0:50:38
working this was working
0:50:42
it's your board name right uh board id
0:50:46
yeah yeah i'll do it again
0:50:50
um if it's not i'll just kill myself so
0:51:01
what no go there no one needs you
0:51:11
i think i'm i'm becoming a sleepyhead
0:51:28
what how is this even possible
0:51:33
we left all this code which was working
0:51:49
okay there we have the answer
0:52:15
we don't have us okay
0:52:19
basically i think this is a foreign key
0:52:22
if you wanna talk in terms of the
0:52:31
story they'll feel the same maybe you
0:52:35
should call it before you break more
0:52:44
okay let's just call it a night dude
0:52:46
there's nothing gonna happen
0:52:51
this is this is not happening shall we
0:52:53
just call it a night because i'm not
0:52:58
feeling it right oh i know i know what's
0:53:01
happening i know what the reason is
0:53:04
you know my sign is not there today and
0:53:12
discomfort anymore yeah yeah
0:53:15
true though all right yeah let me just
0:53:18
call it a knife thanks guys for um
0:53:22
coming on and you're probably observed
0:53:28
code fields and the logic
0:53:32
we've got a lot to learn
0:53:41
yeah we'll see you back
0:53:44
tomorrow same time and same place and
0:53:46
same task i would say
0:53:48
emotional rollercoaster yeah
0:53:55
all right cool cheers um yeah still a
0:53:58
good session we had fun yeah for sure
0:54:05
have a good night guys good night cheers