0:00:24
what is going on guys welcome back to
0:00:27
another session of bill breaking fix
0:00:29
brought to you by the royal coders
0:00:32
yes and today we have
0:00:35
the t-ball which is finesse how are we
0:00:39
hey soon um yeah feeling good as always
0:00:44
from the other day so i was sick but
0:00:48
fantastic that's really
0:00:51
and it's always good to as in
0:00:54
when you're not feeling good doesn't
0:00:56
take some time off and
0:00:58
because it even if you force yourself
0:01:01
you won't be able to be at your best
0:01:05
not productive at all
0:01:09
so which was this fan
0:01:12
which means that you did the right thing
0:01:17
uh hey goddamn good to have you again as
0:01:22
hey gekko yeah good to see you
0:01:29
fantastic all right so first thing is
0:01:32
let's acknowledge the country and pay
0:01:35
our respects to the elders of the past
0:01:37
present and future
0:01:41
i begin today by acknowledging the
0:01:43
traditional custodians of the land on
0:01:45
which we gather today and pay my
0:01:47
respects to the elders past present and
0:01:49
future i extend their respect to
0:01:52
aboriginal and torres strait islander
0:01:58
that is brilliant so that is all done uh
0:02:04
detective has a question for you and
0:02:07
he's wanting an estimate
0:02:10
no not yet i need to talk to tori as
0:02:12
well to um organize the recording
0:02:17
yeah um we might have to
0:02:20
uh might need an extension on that
0:02:27
similar to the project on the show as
0:02:34
if you if you didn't point to our um the
0:02:38
functionality that we that we missed
0:02:42
it might have been a bit too late to
0:02:44
recognize it when all the testing is
0:02:51
users are asking okay that doesn't do it
0:02:54
and we're like oops say we need to go
0:03:07
that's the part where um which um finish
0:03:11
and story i'm gonna be implementing but
0:03:15
i will do them manually now
0:03:20
as a part of paying of our respect to
0:03:23
the australian aboriginals and we also
0:03:27
extend our respects to the barley
0:03:30
aboriginals as well
0:03:36
okay cool so in terms of the progress
0:03:46
and sunday which is yes
0:03:49
today was we planned out all the
0:03:52
how we're gonna save the board columns
0:03:56
uh in the database
0:03:58
so do you want me to
0:04:01
do you want me to take you on that
0:04:07
fantastic so i'll just share my screen
0:04:11
and actually if you want to open up
0:04:15
your screen and jira
0:04:17
um because it's all there and i'm trying
0:04:19
my best to keep that
0:04:26
i did by the way see how um everything
0:04:29
was beginning to be organized
0:04:33
nice surprise surprise guess who's here
0:04:37
hey hello everyone
0:04:41
everybody here at once that's cool
0:04:49
free raw code free super auras
0:04:54
yeah we had to get to do this just um
0:04:56
three of us so yeah it's good
0:04:59
yeah oh yeah that reminds me saying the
0:05:08
yeah gone finish you were going to say
0:05:11
something that's going to say should
0:05:12
tori choose the letter this time
0:05:18
tori use your call
0:05:30
day dreaming or feeding the ducks
0:05:35
they're dreaming i don't think we've
0:05:36
heard that one yeah
0:05:38
yeah are you sure you want to hit that
0:05:53
i don't know actually i was just random
0:06:08
oh by the way tori um
0:06:10
you and i have to work on um
0:06:14
football jersey sorry what yeah
0:06:20
are you and i gonna work on the
0:06:24
um acknowledgement of
0:06:26
aboriginal people in bali in australia
0:06:28
we're gonna re-record that
0:06:30
just letting you know
0:06:35
gekko's idea is that you i say one line
0:06:39
another another line
0:06:57
oh zayn just turned into slytherin
0:06:59
what's going on there
0:07:14
keep the lights on yeah yeah
0:07:18
man i should be feel like i should be
0:07:20
wearing a dark shirt
0:07:23
that's all right um
0:07:26
do you want to take
0:07:28
finesse as in what we
0:07:30
discussed about the board columns
0:07:37
as in just a really brief one because
0:07:41
i would actually like that we can
0:07:43
actually start implementing the
0:07:45
front end to wire up the back end as
0:07:59
uh actually let me see if
0:08:08
now you wouldn't be up because um yeah
0:08:12
you can choose the
0:08:19
dynamodb i think it'll just be a little
0:08:21
bit easier to explain
0:08:23
oh okay yeah that makes sense
0:08:41
oh just answering gecko's question um no
0:08:45
not yet dev by the way i looked up um
0:08:48
the terraform cdk like you said and uh
0:08:51
yeah really interesting actually it
0:08:55
yeah didn't quite know about it and um
0:08:58
and yeah i can i can see the benefits
0:09:00
but um yeah i need to need to do more
0:09:03
research on it to be honest
0:09:12
yes you can use um
0:09:15
like python or or typescript
0:09:21
to generate terraform code basically
0:09:25
and then provision to provision
0:09:27
infrastructure so that's pretty nice
0:09:29
yeah i haven't i haven't tried the
0:09:33
aws cdk yet but i want to
0:09:38
get rid of these damned uh cloud
0:09:42
formation templates
0:09:46
all right i'll share my screen
0:10:02
all right can yup perfect all right let
0:10:19
we have the list of our notes um from
0:10:22
just a random board
0:10:24
it doesn't it doesn't matter
0:10:47
so each this is what this is one note
0:10:50
right so it has a note id a topic
0:10:54
the text the color of the note
0:10:56
and the position which has a top and a
0:11:00
so these these these top and left
0:11:06
key value pairs these
0:11:09
these values are just
0:11:13
the coordinates on the on the
0:11:17
on the page to the
0:11:19
the document body yeah the board
0:11:24
um when we look at the
0:11:29
the board page and we're creating those
0:11:36
have nothing to do with the positioning
0:11:39
of the notes because the notes
0:11:41
positioning is handled by
0:11:48
basically updates the css property and
0:11:52
put me here on the page and that's it
0:11:55
so it has no other
0:11:57
and i didn't write that code that code
0:11:59
already existed so i just went with it
0:12:02
because that's how the
0:12:07
generates and positions those notes
0:12:12
these um coordinates to
0:12:15
database and so when you load up
0:12:19
board page then it just gets these notes
0:12:26
code basically to just generate the note
0:12:31
with the j with javascript and just
0:12:33
stick it in that particular position on
0:12:36
the on the body of the page
0:12:42
yesterday we were talking about how to
0:12:47
um creating the columns and saving them
0:12:50
so it's because of the way the code is
0:12:52
written then you don't have to worry
0:12:57
the columns and the notes like they're
0:13:00
not dependent on each other
0:13:03
yes like so always
0:13:05
so basically the columns um
0:13:10
create a new column i looked at the code
0:13:13
basically all that happens is you
0:13:16
actually let me let me pull it up here
0:13:32
i think we're done with this
0:13:37
oh are you a vs code
0:13:45
saying wasn't in our
0:13:46
oh original mvp right like the columns
0:13:51
you were saying the other day
0:13:55
so they were supposed to be in the mvp
0:14:00
for some reason i forgot that
0:14:02
those buttons were there for the columns
0:14:10
in the first place that's
0:14:12
what you highlighted at
0:14:15
then i was like whoops
0:14:23
all right let me find the symbol here
0:14:41
i'm waiting for the editor to catch up
0:14:45
this happens when i
0:14:46
you know this is interesting because
0:14:48
it's only slow for me on stream yard
0:14:51
when i do other streaming on
0:14:54
google meet or discord
0:14:57
it's not slow it's fast
0:15:01
so i don't know why stream yard
0:15:04
i think it's probably because it's i
0:15:10
that's not important okay um
0:15:22
uh i can talk about that
0:15:40
where's the initial
0:15:55
oh it's still activating the extensions
0:15:58
okay let me just go back to where that
0:16:04
sorry i don't know why it's so slow but
0:16:11
um script.js so whoever wrote this
0:16:13
basically there's this
0:16:15
get message functionality
0:16:19
whenever you send it a message you have
0:16:21
the switch statement with the action
0:16:24
so then we go down to the actions
0:16:29
all right initial initiate columns
0:16:33
so here we have columns we have data and
0:16:35
i'm assuming and if we go to this
0:16:40
it didn't take me to the function
0:16:47
there we go so we have an array of the
0:16:52
took me to the wrong function that's
0:17:02
code the column so we have a column
0:17:05
array i think the column ray is just an
0:17:13
i don't know what this is doing but i
0:17:18
and then the column
0:17:22
uh i'm guessing the column and then it
0:17:24
draws a column all right so
0:17:26
let's keep following the code
0:17:29
all right so the column name so
0:17:30
basically um it takes that
0:17:33
column name from the columns array
0:17:36
and then it just creates the ui for the
0:17:41
and that's it that's all it does
0:17:44
that's all it does
0:17:47
save function this is like
0:17:49
editable this is just like when you
0:17:51
update the column name
0:18:03
yeah and then there's this on column
0:18:05
change function too so we can just tap
0:18:07
into those existing ones and just
0:18:10
um when we get the
0:18:12
the board data from dynamodb on page
0:18:16
load then we're just gonna basically
0:18:19
hook it up to these these existing
0:18:21
functions here and then it will just
0:18:24
create the columns
0:18:28
so all we all we need is all we need is
0:18:30
an array then in dynamodb of column
0:18:33
names that's it they're just strings
0:18:39
the order just you're just using like
0:18:42
the order of the array
0:18:44
is the only thing that matters
0:18:47
so it's just like in order array i think
0:18:54
it's pretty simple list yeah the the
0:18:57
next step for us is to save the
0:18:59
the column information right or
0:19:01
in dynamodb okay yeah
0:19:05
and by the way i think the backend is
0:19:07
already done for ins
0:19:09
uh when it creates the board
0:19:13
so all we need to do is basically just
0:19:16
do some front and b
0:19:19
and then it's all there
0:19:26
front-end guru comes in
0:19:31
how much was turned out
0:19:36
i think it was five million bucks per
0:19:40
that's before i didn't get it
0:19:48
this code isn't even ours right i mean
0:19:50
this was just this this original
0:19:52
scrambler code right the one you're
0:19:54
looking at right now yeah
0:19:59
i don't know when it was written but
0:20:04
before like more modern javascript that
0:20:07
is the only reason you would be using
0:20:12
probably it predates
0:20:22
i mean scrambler like the original scrum
0:20:24
scrambler is pretty old right at least
0:20:28
i think i don't know
0:20:37
all right shall we get into some action
0:20:46
you want to share your screen to do the
0:20:50
i thought backhand was already there we
0:20:55
we just needed a kind of a
0:20:58
array from the front end
0:21:01
to push it in the back end
0:21:12
find where those column names are
0:21:20
i wonder if they're you know where you
0:21:22
had your columns in
0:21:26
i think you might be over there
0:21:46
looks like there's some
0:21:48
column symbol up here what is this
0:21:51
total columns columns
0:21:53
yeah i think the columns
0:21:56
the array is the actual thing that we
0:22:02
and the total columns is just number
0:22:11
let me do live server and then we can
0:22:21
the the actual variable we want yeah
0:22:25
yeah and if it is then all we have to do
0:22:29
send that along with the the post
0:22:35
that's all job done
0:22:46
i think we need to hook up the websocket
0:22:50
um but most of the code already
0:22:52
yes most of the code already exists it's
0:22:54
just a matter of like hooking it up
0:23:02
why does this still come on
0:23:04
boards and no save
0:23:06
successfully you shouldn't come along
0:23:13
maybe i'm on the wrong branch actually
0:23:20
uh should i be on it
0:23:23
you probably want to go on um
0:23:36
create a new branch
0:23:39
no it should already be there
0:23:43
i'm pretty sure i pushed it
0:23:52
board columns feature
0:23:57
me and this long name so
0:24:04
that's weird why don't i see it
0:24:22
you could probably just get fetch up and
0:24:24
then it should populate
0:24:33
i don't know why it didn't
0:24:42
server is now offline
0:24:45
that's your one just killed it
0:24:52
it's up there on github
0:24:58
and if it's not there then i'm a liar
0:25:22
you're trying to get the front end right
0:25:25
sorry i don't see the
0:25:27
don't see a branch either oh
0:25:30
sorry um the branch was the backhand one
0:25:33
for the front end it needs to be created
0:25:35
my folds okay yeah nice
0:25:39
all right so what do we want to call it
0:25:47
i'll just name it the same thing then
0:25:50
yeah i think they'll be useful
0:25:58
all right now let's go live
0:26:11
yeah yeah they're from
0:26:14
tory's about to do some dishwasher
0:26:25
oh this is already open
0:26:28
apparently that's the new uk town for
0:26:31
getting things done in bush bash bosch
0:26:35
apparently because uh yeah i speak to
0:26:44
the uk and he said there a lot yeah and
0:26:50
is there a board that has notes on it
0:26:54
uh yes there should be a board let me
0:26:57
tell you which one
0:27:00
what we get what's the name what's that
0:27:03
the third layer board no i'm not going
0:27:06
to tell you though
0:27:45
you know what might have just happened
0:27:47
oh no that can't happen
0:27:52
i didn't see the board as in i didn't
0:27:55
see what kind of notes they're waiting
0:28:14
is there what hap what ended up
0:28:17
happening with the code
0:28:24
when ended up happening with the on save
0:28:28
anything what's been on safe code
0:28:32
um like when we click
0:28:36
oh no no we just left it right the one
0:28:40
zane and i were talk discussing
0:28:44
like last week so what are you talking
0:28:51
i think we we left it as to uh to what
0:28:59
oh is that the one way you were saying
0:29:05
we should insert all the notes in one
0:29:08
request oh okay yeah yeah that's
0:29:10
that's what i'm talking about yeah all
0:29:15
yeah tori that was basically kind of
0:29:19
we left it there and there because
0:29:23
it wasn't logical to
0:29:26
insert the notes that are already
0:29:29
present in the database but haven't been
0:29:32
to insert them again
0:29:38
okay i wonder if we're i wonder if
0:29:40
there's a flaw in the code though
0:29:42
because like we might be doing that
0:29:50
so that's with the status
0:29:54
the status comes in
0:30:08
patch notes on save
0:30:10
this is what i want to look at
0:30:17
all i want to do is just when we click
0:30:19
the save button i want to log out that
0:30:23
uh what was it called the array of
0:30:44
he's poorly getting his poorly get death
0:30:54
that's again a kind of a british
0:31:14
is it logging it oh you probably wanted
0:31:17
to do a jason string advisor or not
0:31:26
that's not the right line right i mean
0:31:31
right uh i don't see anything
0:31:41
it's even saving have you pressed submit
0:31:44
and then password and then submit
0:31:50
i did i clicked save
0:31:53
this is set interval
0:31:55
why is there an interval
0:31:57
what's going on there that's weird
0:32:07
that seems not good
0:32:11
i don't even know what that's from um
0:32:16
i click save i'm not seeing it log to
0:32:20
should i have not picked the right code
0:32:29
isn't it on submit um sorry you did did
0:32:36
thank you yeah it's not on save
0:32:38
all right let me move this on
0:32:58
let's do it here then
0:33:00
uh i think jagdev that's because um we
0:33:03
are playing the music as well so that
0:33:07
generally tends to slow down tory's
0:33:14
right yeah i don't know i don't know why
0:33:20
hang on um how about now
0:33:29
i think so okay here this came up now
0:33:33
it does seem a little bit faster
0:33:39
okay he's come up now
0:33:42
what does he have in the array
0:33:45
nothing because there were no columns
0:34:03
tori loves it for the fans
0:34:08
okay and here we go yeah so we got noon
0:34:10
in a new new i'm a column
0:34:17
to the post request and then boom bishop
0:34:28
okay put that back
0:34:30
now all we need to do is find those
0:34:46
didn't crate board okay patch notes on
0:34:50
save that's what we want
0:34:59
we have patch note and post
0:35:07
do we want to create a
0:35:14
um i'm thinking that
0:35:18
we probably don't wanna
0:35:21
include the columns and then
0:35:24
when we're saving the notes
0:35:27
because this is doing exactly that am i
0:35:33
this is just saving the columns
0:35:37
this is saving the notes
0:35:40
oh this yeah this is saving the notes
0:35:46
and if you go a little bit up
0:35:53
uh post yeah a bit more
0:35:57
okay i'm outside the i'm like okay yeah
0:36:01
so we probably want to save the array in
0:36:18
can you go down please a bit
0:36:21
all right this you want to look at this
0:36:23
post in the body object oh we're not
0:36:26
actually using this one this was for
0:36:33
to do it all at once
0:36:38
yes yes uh so do you want us
0:36:43
you want to save the but then you're
0:36:45
saving the columns every time you save a
0:36:47
note don't you just want to make a
0:36:54
that'd be ideal yes
0:36:58
because i thought that the body objects
0:37:02
just doing once but not every time we
0:37:05
are saving the notes
0:37:09
we probably just want
0:37:12
another request to save the
0:37:18
we will only be saving the columns when
0:37:20
we save the node right so
0:37:23
does it matter if it's in
0:37:28
but then you're saving them
0:37:30
every time as well every time you
0:37:32
patch or post a note
0:37:35
okay so you're doing that for each note
0:37:39
you're just writing like extra
0:37:43
you're right you're writing the columns
0:37:46
even when you're saving a note but for
0:37:50
you're just like doing extra work when
0:37:52
you're doing extra rights you don't need
0:37:54
to yeah makes sense
0:37:56
so we'll keep track of um
0:37:59
when the columns are saved then in that
0:38:02
whether it's inserted or not similar to
0:38:04
the notes i would say right
0:38:09
how would we keep track of that just
0:38:14
say that again play finish
0:38:17
we would um keep track like the state of
0:38:22
the column has been saved or not similar
0:38:24
to how we have done with the nodes
0:38:25
wouldn't that be the case like
0:38:27
like we're using here inserted not
0:38:29
inserted we would have to do the same
0:38:31
thing with the columns then
0:38:35
if in the case that the user when they
0:38:39
guess the board then they want to add
0:38:41
another column to all the existing one
0:38:48
essentially there'll be two scenarios
0:38:53
the notes are being saved
0:38:56
so we would have to save them columns
0:38:59
the way we are saving the notes
0:39:05
does that ring above or
0:39:07
we could just simplify everything by
0:39:10
saving all the notes the whole board at
0:39:14
and then we just eliminate all this
0:39:17
extra code because when we save we just
0:39:19
save all the notes all the columns the
0:39:24
this was a discussion that
0:39:34
the crowd was really spicing up spicing
0:39:49
i know you like writing code story but
0:39:52
it's going to be a vision code yeah
0:40:11
he's coming back in circle now
0:40:14
so i'm thinking that
0:40:18
if you want to like stat
0:40:21
track the status of the whether or not
0:40:25
the columns should be
0:40:27
written to the database
0:40:39
if you wanted to do it locally then
0:40:44
i would just say create a function
0:40:51
if anything in the boards array has
0:40:54
changed compared to the previous boards
0:40:57
and if they're different
0:41:03
that's exactly how the
0:41:06
notes are working torrible by the
0:41:13
status in each notes
0:41:16
which is how weird
0:41:18
but this time we don't have to we don't
0:41:21
have it inserted or
0:41:24
not inserted we can just we can just do
0:41:26
a quick check because it's a small array
0:41:30
so we can just have a previous
0:41:37
um so basically it's an alternative
0:41:42
not using statuses isn't it
0:41:52
yeah because then we have to go
0:41:55
attach this status
0:42:04
yeah it just it just seems more
0:42:05
complicated to go back if you want to
0:42:08
get it done faster is what i'm thinking
0:42:10
because then we have to go to script js
0:42:12
track when when it changed
0:42:14
all this stuff because like if you
0:42:16
change the name then it should be
0:42:20
you know yeah yeah
0:42:25
so you're suggesting that
0:42:28
create a function and when it saves the
0:42:31
column you should check which columns
0:42:34
are already there first
0:42:38
insert that one but you would insert
0:42:44
different ones that weren't present in
0:42:48
mri uh i know i'm just saying if
0:42:51
anything in in the
0:42:54
if anything in the columns array has
0:42:58
so like if we have columns right and
0:43:04
let's pretend there's a another
0:43:08
variable global variable called prev
0:43:15
at start right because there is no
0:43:21
so then um every time we save
0:43:25
then we just check if columns
0:43:41
um the previous columns right
0:43:43
so in javascript you can't simply just
0:43:45
compare two arrays you have to ch like
0:43:47
we would have to check every value and
0:43:49
see if that value at that index is the
0:43:52
same and if anything has changed then we
0:43:57
send um the request
0:44:02
yeah we don't have
0:44:04
unless you want to update each
0:44:06
individual index in dynamodb for that
0:44:10
particular column but i don't know
0:44:15
that would just make it yellow more
0:44:20
way they use suggested already as in
0:44:23
comparing the previous columns in the
0:44:26
array or we could use a find method
0:44:30
and check that if the
0:44:36
a column that doesn't exist already
0:44:41
using the find method in the
0:44:44
ray if it if it's not already in the
0:44:49
basically insert it
0:44:51
but but we also need to
0:44:54
track if they change the column name
0:45:04
we can be really lazy about it if you
0:45:06
want and you can just do like an array
0:45:09
to string and then compare you can
0:45:12
compare it to preview columns to string
0:45:17
and then if those are not
0:45:19
if those are different
0:45:22
they're not equal right then you know
0:45:24
something has changed and then you just
0:45:26
get along the new column and then you
0:45:28
just update the uh
0:45:44
then send a post request with the
0:45:57
but then this would basically insert the
0:46:01
so say if we have to do
0:46:06
doing and done and to do and doing are
0:46:09
already inserted in the database
0:46:14
we want to insert the done column as
0:46:18
but we changed to do as well as in in
0:46:22
terms of updating it in that case if we
0:46:26
use this method then
0:46:29
basically what's going to happen we
0:46:31
would have the to do old value
0:46:36
new value and then done as well
0:46:41
does that make sense
0:46:44
say that one more time
0:46:45
okay so say with this method you have
0:46:51
two columns at the moment
0:46:56
and you press save
0:47:00
all so perfectly fine bishop
0:47:08
you already have to do and doing but you
0:47:11
want to add one more which is done
0:47:16
but then you realize that you forgot to
0:47:19
put a space between to do
0:47:22
so you put a space between
0:47:24
two and then space do
0:47:29
what i'm basically have
0:47:34
hint from my brain
0:47:40
four columns in total instead of three
0:47:46
would already be there without the space
0:47:49
then there would be another new column
0:47:54
and then doing and then the new column
0:47:57
that we have been certain done
0:48:00
there's a lot of do's in there
0:48:05
all right but did you get my point are
0:48:07
you saying are you updating the name
0:48:12
yeah so we are inserting a new column
0:48:15
and updating the existing corner
0:48:18
okay i think the string method should
0:48:25
this is what do you get when you do a
0:48:27
two string you get this like
0:48:31
um right here like you can can you guys
0:48:36
yeah yeah all right so let's say we
0:48:50
let's just change one of these
0:48:56
and then we can actually we can change
0:49:16
like the previous column or something
0:49:29
okay and now our new columns
0:49:37
so it's it's this previous column string
0:49:42
is not going to be equal
0:49:56
all right so it's true because it's not
0:49:58
equal or okay if that's not clear
0:50:04
equal they're not equal
0:50:14
where's the button there it is
0:50:17
if we remove these
0:50:36
so that's good so that means it's
0:50:40
i mean this this comparison means that
0:50:49
like our initial value
0:50:51
as a strength of the column
0:50:57
um is now is now different from the
0:50:59
current uh columns
0:51:03
yes and then what's gonna happen then
0:51:06
then then we would then we would post
0:51:09
we'll send the post requests
0:51:11
all right but in the database the old
0:51:14
columns are still inserted
0:51:20
because we inserted their old columns
0:51:22
already yeah we just overwrite them
0:51:28
so basically the same
0:51:33
me and finnish were discussing that is
0:51:35
approach the approach is being taken for
0:51:41
uh what what approach were you guys
0:51:47
when finish was saying that on
0:51:51
on every request we can just send
0:51:54
all the notes even if they're already
0:51:56
inserted or not we don't
0:52:01
so we just keep us
0:52:03
sending the already inserted notes again
0:52:11
yeah this way we just
0:52:13
we just overwrite the the
0:52:16
board column array in dynamodb with the
0:52:22
honestly i don't mind taking this
0:52:26
approach with the board um
0:52:28
border columns only because it would
0:52:31
just be an array of strings and
0:52:36
five or ten objects true so we can
0:52:39
possibly take that approach yeah that's
0:52:45
yeah yeah i agree with that's a good
0:52:49
okay and then it's simple because
0:53:05
against each other
0:53:08
and he's spicing off things
0:53:12
so all we need to do is this
0:53:17
so we add this global to
0:53:25
and then when we when we send a post
0:53:27
request we're just going to update the
0:53:31
but the nice thing is that columns
0:53:35
updated in scriptcast
0:53:38
whoever else wrote that code
0:53:40
so we don't even need to track
0:53:43
we don't need to update it's already
0:53:47
yeah yeah so we just need to write this
0:53:50
post request or whatever we're gonna do
0:53:53
to basically send along
0:53:59
is that is that where we're going to go
0:54:02
are we going to make a new route or
0:54:04
columns star stream is not equal to if
0:54:11
that one then put previous column equals
0:54:19
that would do it probably
0:54:22
and in terms of the route i'm
0:54:26
thinking you know when we we are
0:54:28
pressing save uh we are only
0:54:32
we are not just only inserting
0:54:35
all the notes but we are also inserting
0:54:40
board details as in just once
0:54:47
so if you if you go to uh post post
0:54:51
notes it's all there
0:55:07
no it wouldn't be hit no no that's my
0:55:12
there was a body object taking border uh
0:55:15
board name and passcode etc etc
0:55:25
maybe do a final body
0:55:32
you mean the the the the post notes
0:55:36
body and probably just do
0:55:42
that one but this one we're not using
0:55:45
this is the one i wrote for the
0:55:48
for those two okay
0:55:51
that's the one we were discussing
0:55:56
all right then in that case probably
0:55:59
but i'm thinking if we add another
0:56:03
going to be complicated because then we
0:56:06
write another request in the back end
0:56:09
yeah yeah is there another route we can
0:56:15
or we can use the existing
0:56:20
thing that that's already being inserted
0:56:22
when we press save
0:56:26
you mean the patch note in post now
0:56:31
but then okay the only the only that's
0:56:33
fine the only thing is that then you're
0:56:36
writing these columns
0:56:38
to the database every single time even
0:56:40
though you only need to do it once
0:56:47
let's create a request
0:57:00
create our requests and
0:57:02
react nice isolated i know
0:57:08
oh wow it's half 10 already
0:57:12
that that uh just post notes uh
0:57:17
post notes um method now is looking
0:57:20
pretty tempting isn't it
0:57:29
i keep on turning back to that now for
0:57:34
especially for this quality because it
0:57:35
just it just handles all scenarios for
0:57:40
it just handles one which is a really
0:57:42
expensive scenario for that credit card
0:57:53
let's call your day and come back to
0:57:56
tomorrow if you can't push the code tori
0:58:33
that's basically how you say brilliant
0:58:49
gracias sounds good
0:58:52
sounds weird are you learning spanish
0:58:55
no there was a spanish colleague
0:58:58
probably six years ago
0:59:01
and he told me just one two or two words
0:59:07
gracias and brilliante
0:59:11
that just struck to my head and they are
0:59:16
years but anyway um
0:59:26
can i do the honest
0:59:31
cool thanks for joining us everyone on
0:59:33
another episode of buildbreaking fix
0:59:36
today we had a discussion on how we can
0:59:39
save the notes in the db
0:59:42
and i think we decided with uh
0:59:45
with comparing the previous call not the
0:59:48
notes sorry the columns
0:59:50
uh comparison comparing the previous
0:59:53
with the updated columns and seeing if
0:59:55
there's a change and then pushing
0:59:58
the all the columns at once to dynamodb
1:00:02
so that's still to be implemented um if
1:00:05
you'd like to see that
1:00:08
the next episode tomorrow
1:00:12
time there's three of us i thought we
1:00:24
and a different task
1:00:27
all right all right guys have a good
1:00:30
night and thanks for joining
1:00:33
thank you have a great night