0:00:25
welcome guys to another episode of
0:00:30
brought to you by the raw coders
0:00:33
and you might be observing at the moment
0:00:36
today um tori has got some personal
0:00:39
stuff come up so he can't really he
0:00:42
can't really make it and um
0:00:45
yeah so you guys are probably stuck with
0:00:47
me but i'll try my best to keep the
0:00:51
entertained and fun as i can
0:00:55
hey get there good to see you again
0:01:01
uh yeah so a bit of
0:01:03
um so first thing is first
0:01:06
let's do our acknowledgement for the
0:01:11
australia and bali and um
0:01:15
will pay our respects to the elders of
0:01:18
the past present and future
0:01:22
i begin today by acknowledging the
0:01:24
traditional custodians of the land on
0:01:26
which we gather today and pay my
0:01:28
respects to the elders past present and
0:01:30
future i extend their respect to
0:01:33
aboriginal and torres strait islander
0:01:38
that was brilliant
0:01:40
so yeah just uh a bit of a recap on what
0:01:46
today was we tried to as in um may um
0:01:50
develop the back end um for
0:01:53
saving the column names
0:01:56
we were pretty close um we just had to
0:01:59
deploy the app and test it um how it's
0:02:03
um in postman for now so
0:02:06
we're going to be testing it today so
0:02:09
let's go and back um start the action
0:02:14
oh actually i almost forgot uh
0:02:17
so i will choose a letter for
0:02:21
a background song or tune so
0:02:25
do feeding the ducks there we go
0:02:48
actually i'm just getting rid of all the
0:02:50
apps that are opened
0:02:58
mac and as soon as i've done that i will
0:03:00
go ahead and share the screen
0:03:05
there we go finally darnay
0:03:09
work was pretty good gag dev as in kind
0:03:12
of settling in now properly and um yeah
0:03:16
doing big tasks and learning about the
0:03:20
system even more so which is is a bit a
0:03:23
beautiful steep learning curve
0:03:25
um but i'm really enjoying it yeah
0:03:36
let's share the screen and take our
0:03:53
actually um our vs code is already open
0:03:57
so i'll just do it from here
0:04:01
and open up the folder that i want to
0:04:06
so you know okay sam api and there we go
0:04:16
let's go ahead and build it
0:04:23
and then once it's built we can test our
0:04:27
as in the post request
0:05:06
okay so it looks like it's been built
0:05:10
and now we can deploy it
0:05:20
and give it a profile of sprinkler
0:05:23
yep i should do it
0:05:38
keep an eye on on the comments as well
0:05:46
okay seems like it's doing this magic
0:05:59
to be honest i've kind of realized that
0:06:01
i enjoy backhand more
0:06:04
not much of front end but because i want
0:06:10
jack of all trades that's why
0:06:13
i want to be able both
0:06:15
frontend and backhand
0:06:20
would be your preferred um
0:06:26
there would it be back end
0:06:28
backhand mode or front end or just both
0:06:49
okay so it looks like it's updating
0:06:57
yeah cool so it has successfully updated
0:07:00
it so what we need to do is basically
0:07:13
actually we did a bit a mistake so this
0:07:19
so because board uh the
0:07:25
the columns will be coming from the body
0:07:28
so we basically need to put in the body
0:07:31
so this won't work
0:07:37
let's have a crack
0:07:43
so if we do this one and then
0:07:56
get all boards is there so we've got the
0:08:01
um so we have getting testify board
0:08:10
add columns so we need to add another
0:08:15
which would be post request
0:08:50
um and then what we need to do is
0:08:53
basically copy this url
0:09:01
and then basically the board
0:09:11
um yeah get all the boards
0:09:15
that one all column names
0:09:34
now we will need columns
0:09:36
which is over here and let's say
0:09:40
that does the trick
0:09:53
okay cool so we need to pass in the body
0:10:13
so we basically need to do um
0:10:30
so we will do columns here
0:10:50
let's try it insert and see if this
0:10:57
provided uh required it does not exist
0:11:07
all right my bad like doing this way i
0:11:25
now let's see if this does not
0:11:33
the provided expression reversed turn
0:11:36
attribute that does not exist
0:11:40
okay support columns
0:11:45
for columns columns body
0:11:54
so i get the notes for
0:12:08
it's a single note so
0:12:10
when we are posting the notes
0:12:18
so we had to delete you know
0:12:21
update specific note
0:12:28
also not okay so we had
0:12:30
okay so we don't really add both columns
0:12:33
in there which is fine
0:12:36
and then what we did was
0:12:44
know that in the request body which was
0:12:46
coming from a single note
0:12:50
right okay so single note is just the
0:13:00
key yeah which in my case will be
0:13:04
and then what i'm basically doing is
0:13:08
having a single note
0:13:11
as that one and then just inserting it
0:13:24
uh catherine i know where i went wrong
0:13:34
which would be from the body
0:13:42
column data will come from the body
0:13:57
actually how wi-fi
0:14:00
and see if that works
0:14:03
because then it might just be the cause
0:14:16
so single note added in that way which
0:14:25
person not yet single column
0:14:29
and then what i did was
0:14:34
i prepared this object and i'm searching
0:14:38
but in our case it's a
0:14:48
so that would mean
0:15:10
is being inserted in the array
0:15:15
so that means that if
0:15:17
board notes is already an array which
0:15:21
both columns are also an array which is
0:15:29
columns is also an array
0:15:32
and then we don't really need this one
0:15:35
here but because we won't have it in the
0:15:40
and that would be in the request object
0:15:49
is any comments no
0:15:57
then we're just getting the board
0:16:01
on the body and columns
0:16:10
actually let's debug this
0:16:14
see what it gives us
0:16:17
hopefully i can do it
0:16:20
connect temperature
0:16:48
send on this one does it hit
0:17:00
i wish it could be this easy
0:17:18
okay support is here
0:17:22
we are getting the board that's for sure
0:17:28
and then we're getting the board here
0:17:31
and then if there's 70 then do this but
0:17:34
then we are getting the what column so
0:17:52
this is coming from request body
0:18:00
request body which is the same as my
0:18:06
is coming from the request body
0:18:16
colored in blue as well
0:18:20
but that one isn't
0:18:23
so why is this one is and that tells me
0:18:27
something is going wonky
0:18:52
don't keep this as an array
0:19:20
let's see how this works
0:19:23
all right let's check
0:19:27
i mean other comments no that's good
0:20:52
all right let's see how this works
0:20:58
call lens yeah that is fine
0:21:30
okay almost doing the chainsaw
0:21:37
hopefully that will will get done
0:22:02
okay so that is done smoothly now let's
0:22:07
how did our change go
0:22:10
columns yeah that sounds good to me
0:22:14
columns columns port columns yeah
0:22:18
that will just depend the board columns
0:22:24
columns yeah board id that one another
0:22:29
let's check how this one went
0:22:33
okay so still the same
0:22:37
the provided expression refers to an
0:22:40
attribute that does not exist in the
0:23:13
the provided express refers to that with
0:23:16
adjustments into the item
0:23:18
so that means that for what this doesn't
0:23:23
but we are posting it
0:23:53
uh updated expressions
0:23:58
so i'm updating the expressions
0:24:01
which means they need to exist first
0:24:14
let's go to combine your phones is
0:24:34
noise says these ones then my value
0:24:41
okay we are definitely doing something
0:24:52
let me see mrs cloud what is saying
0:25:03
i'm saying jack though i'm just
0:25:05
basically trying to
0:25:07
test the new post request
0:25:10
which is basically just taking in the in
0:25:22
inserting it in the
0:25:25
descripting it to the end of this list
0:25:32
so i'm not really sure where i'm going
0:25:41
because there is an array the board
0:25:49
or maybe i need to create a new one and
0:25:54
i can't do it on the existing one
0:26:06
because if that's the
0:26:08
case think this might be calling the
0:26:11
issue because at the moment what i'm
0:26:14
doing is i'm trying to update this board
0:26:32
whoa okay now mine
0:26:35
get all board yeah test 5
0:26:48
how can this be all gone
0:27:01
how have all the phones gone from
0:27:11
because i never went back and deleted
0:27:21
making me curious now
0:27:23
how can that be possible um my mfa code
0:27:29
so i would basically
0:27:32
um get my thing from
0:27:38
how are all the boards gone straight
0:27:43
someone finet uh is tori playing with me
0:27:57
and both have their
0:28:00
potential and access
0:28:02
this is really interesting
0:28:05
i'm looking forward to what's happened
0:28:09
where did all the boards go
0:28:19
they are board still
0:28:22
so why is this saying can't find the
0:28:33
this is really interesting
0:28:49
something must have happened
0:28:53
let's post the board
0:29:07
someone testing offline
0:29:10
because this wasn't supposed to be there
0:29:14
that's interesting
0:29:16
who is testing offline
0:29:40
is really intriguing me now
0:29:42
because the board weren't supposed to be
0:29:47
post board bought columns
0:29:56
that's not supposed to be there because
0:30:14
would i say if i create a board
0:30:22
okay and then i add the columns to that
0:30:38
columns and column one
0:30:53
yeah near it that will work
0:30:56
so if we just do one
0:31:10
okay so the board is there
0:31:22
would it come if i did this poster board
0:32:00
okay and now if i get
0:32:06
which will basically be
0:32:18
ah see that that didn't come in
0:32:29
want to insert both columns in this as
0:32:33
then we would basically
0:32:37
attach the column in the items
0:33:13
some board columns
0:33:16
just turn updates so from body
0:33:28
and then what this would be basically
0:33:40
here's this board board id
0:33:43
which is coming from here
0:33:56
then it's coming to both columns
0:34:05
it's taking care of that
0:34:09
just saying that item is not valid
0:34:15
provider's expression
0:34:17
refers to an attribute
0:34:22
that does not exist in it in the item
0:34:37
so if we are updating the
0:34:40
already existing board
0:34:42
then we just have to
0:34:53
so basically that's not going to work
0:34:58
because we are trying to
0:35:14
someone's i think about
0:35:18
but don't worry about that
0:35:39
once the board one and two columns
0:35:53
okay obviously that won't come in
0:35:58
it hasn't been done
0:36:08
so all we need to do is insert our board
0:36:22
have this still gone rid of this
0:36:32
yeah so basically that's not gonna work
0:36:38
we are inserting all all column names
0:36:48
is already an object here
0:36:51
so basically what we need to do is find
0:36:58
and then insert it in the items
0:37:05
and then check for the board id
0:37:13
or the board name and then insert it
0:37:21
yeah that's that's how we would
0:37:24
basically go about it now because i
0:37:26
thought it was going to be a lot simpler
0:37:32
that's the perks of being on programming
0:37:36
everything is really unpredictable
0:37:39
you expect it to be something else but
0:37:41
it turns out to be something else
0:37:55
we're gonna go back in the code
0:37:59
create says columns
0:38:02
we have the board id and we keep getting
0:38:07
have the column actually i want to see
0:38:32
so this would be a set
0:38:38
would all come there but before that
0:38:44
locate where we want to put this
0:38:51
because at the moment we don't have any
0:38:56
things to put in there
0:39:00
so where we are doing
0:39:03
so we can even create a hair
0:39:12
actually oh oh i needed that one
0:39:22
verify board name board
0:39:39
and they will come here
0:39:51
what's gonna happen
0:39:55
i would come in the column
0:40:01
section and then look for
0:40:16
and append it as well
0:40:20
yeah that's that one and then
0:40:47
names and then call
0:40:54
yeah there we go and there we go
0:40:57
what columns comes here
0:41:00
and then it just inserts it
0:41:52
okay this does the trick
0:42:00
uh planning to do this feature today
0:42:04
hopefully in 15 minutes max
0:42:07
let's see how we go
0:42:19
okay so it's just creating a chainsaw at
0:42:23
let me see if um someone is playing
0:42:26
again yep they are playing again
0:42:46
okay cool so that should be done by now
0:43:20
so let's insert our board now
0:43:24
see if we just insert these two that ray
0:43:28
should come by itself
0:43:41
and if we get the board now
0:43:46
should come with the
0:43:50
it should have come with the array as
0:43:52
well as in board columns
0:43:58
oh because i'm guessing it with the gsi
0:44:04
needs to be included as well
0:44:07
right right right or right
0:44:14
include the gsi in the
0:44:18
um the board column in the template
0:44:45
want to include this as well um
0:44:56
let's build it up again
0:45:36
okay i think we are almost there
0:45:41
shouldn't be too long now
0:45:46
and take a bit of the board again yes no
0:46:46
okay so that should be done
0:47:03
cool so now what we would need to do is
0:47:06
go the entire stack again
0:47:13
because we have just changed the
0:47:19
all right cool nevermind we will do that
0:47:50
and we are almost there
0:47:58
deleting the entire stack now
0:48:34
okay slowly but surely
0:48:45
oh delete failed where did it fail
0:48:48
let's have a look where did it fail
0:48:55
and filter delete upload roll back
0:49:13
yeah okay cool so the package you're
0:49:16
trying to delete is not empty okay cool
0:49:20
so saying that the bucket isn't empty
0:49:23
let's go to the bucket and empty out
0:50:04
okay cool so that is done
0:50:20
please remember to turn your default
0:50:23
resources to reach no i don't want to
0:51:01
okay there we go that is done so now
0:51:04
what we're going to do is
0:51:43
okay i'm gonna do this
0:51:51
uh this is interesting
0:51:56
but yeah i'd have to update the
0:52:00
actually i'm gonna stop sharing
0:52:02
my screen and then do it again
0:52:12
there we go so let's
0:52:19
go back to this video studio and get our
0:52:24
and update that everywhere
0:52:29
obviously which is still deploying the
0:52:53
hopefully this time it would work
0:53:00
then as soon as i get the end point i'm
0:53:03
gonna have to enter that in my postman
0:53:07
and then we can continue our testing
0:53:19
okay so that is our end point here
0:53:22
let's get this and copy
0:53:29
the api variables there we go
0:53:37
that one brilliant
0:53:44
that does it for us
0:54:02
this should get posted
0:54:07
okay that goal posted and then get a
0:54:11
board i want to get a board and
0:54:24
column names should come oh
0:54:27
sorry i forgot to share my screen
0:54:35
okay so at the moment i'm testing the
0:54:39
everything is working fine and that this
0:54:41
is the board that just
0:54:46
column names are appearing here
0:54:55
actually i is taking the ids in it
0:55:14
give it a row json
0:55:37
okay that should go through perfectly
0:55:40
fine hopefully if everything has worked
0:55:53
we did not work bored
0:55:59
let's try this then
0:56:03
okay so that the request could not be
0:56:08
if you provide the customer card front
0:56:12
you can't connect to the server for this
0:56:17
fabric say can't you connect to the
0:56:23
that's a be interesting
0:56:27
oh my bad no this one's supposed to be
0:56:33
actually this is fine
0:56:41
okay cool so that is good
0:56:52
the provided expression
0:56:55
i'll bought columns properly
0:57:10
actually should be columns
0:57:15
over here i did make some change
0:57:29
and then call column name
0:57:32
column name board columns here
0:57:35
columns is here yeah body
0:58:00
so it's saying very confident
0:58:05
so we want to do that and then set in
0:58:10
so columns this one
0:58:12
to the board column series is this
0:58:22
actually why don't i
0:58:27
ah it's updates and i'm posting it
0:58:35
it's updated and i'm posting a wow
0:58:42
so this should be patch instead
0:58:48
that would have been my fault right
0:58:51
because if you do an update you have to
0:58:54
kind of catch it not post
0:59:07
yeah see updated specific no
0:59:11
it's supposed to be patch
0:59:17
we bought this we got this
0:59:25
this should do it now
0:59:40
we might come to it probably tomorrow
0:59:46
actually what i'm going to do is
0:59:54
works just this one after deploying it
0:59:56
and call it a night
1:00:32
hopefully this will do the trick
1:00:40
this should be patch more post
1:01:12
all right so that is done let's have a
1:01:15
look now what does it give us
1:01:43
i'm busted again am i
1:02:04
okay so column name we wanted
1:02:13
that one so we go to column names
1:02:17
and actually cab board
1:02:20
this is the board id
1:02:23
and this isn't from names
1:02:27
insert this one here and see what
1:02:38
that would mean that
1:02:43
we have one in there
1:02:48
so basically what this is
1:02:54
if i want to add more
1:03:04
columns then i would need to do this i
1:03:25
so this is gonna cause a bit of a
1:03:33
yeah we will come back
1:03:35
we'll have to come back to it
1:03:41
because these should appear as
1:03:46
ones should appear here
1:03:56
anyway there was a little bit of
1:03:59
progress there which is good
1:04:01
and we shall call it a night
1:04:05
all right guys thanks a lot for joining
1:04:09
a bit been a bill progress day and um
1:04:13
yeah in tomorrow's episode we're gonna
1:04:18
doing some really fun stuff so if you
1:04:22
and join us um tomorrow for yeah some
1:04:27
exactly i couldn't agree more
1:04:32
same time same place and the same task
1:04:36
all right so look forward to seeing you
1:04:39
have a good night and bye for now