►
From YouTube: Cascading settings demo for package discussion
Description
Demoing the existing cascading settings for Deletion protection as the package group is currently implementing https://gitlab.com/gitlab-org/gitlab/-/issues/360267.
A
Hey
everyone
I'm,
just
gonna,
chat
real
quickly
about
the
cascading
namespace
settings
that
have
a
little
framework
built
around
them
already.
Let
me
pull
up
my
screen
here.
A
If
I
can
figure
it
out
cool,
so
yeah,
so
there's
this
framework
that
was
added
that
allows
you
to
just
specify
which
column
you
want
to
have
be
cascading
all
the
way
up
to
an
application
setting.
So
here
they're
using
the
namespace
settings
table,
but
we
have
the
package
namespace
settings
table
I
think
it's
the
namespace
package
settings
table,
so
it
should
work
the
same
way.
A
They've
got
some
nice
tools
to
automatically
add
the
columns
and
then
from
the
front
end,
there's
a
whole
bunch
of
partials
already
in
place
for
rendering
some
of
the
settings.
I
didn't
get
too
deeply
into
the
front
end
to
see
if
it
works
exactly
as
we
would
need,
but
I
did
find
one
setting.
That
already
is
using
this,
and
so
it's
this
deletion
protection.
A
And
so,
if
we
look
at
the
deletion
protection
on
the
on
this
side
of
the
screen,
I
have
a
parent
group
and
then
on
this
side
of
the
screen.
I
have
a
subgroup.
So
if
I
change
the
parent
group
and
save
the
changes
and
then
reload
the
settings
on
the
or
I
just
reload
the
child
group,
we
can
see
that
it
updates
to
match
the
parent.
A
If
I
were
to
change
the
child,
then
it
now
will
stay
as
none,
whereas
if
I
change
the
parent
back
and
forth
now
it's
sort
of
it's
detached
which
is
kind
of
what
we
talked
about
with
the
package
settings.
So
now,
no
matter
what,
if
I
reload
this
it'll
stay
at
none,
even
if
I
switch
this
to
keep
foreign
thing
that
they
do
have
here
that
we
had
kind
of
talked
about,
but
then
decided
not
to
do
for
package.
A
Is
this
enforcement
so
on
the
parent
level
group
I
can
enforce
this
setting
for
all
subgroups
and
if
I
click
that
so
I'm
enforcing
keep
once
I've
set
that
if
I
reload
the
subgroup
we
can
see
now
it's
grayed
out,
I
don't
have
the
ability
to
change
the
setting
and
it's
set
to
keep.
So
that
is
one
big
difference
and
then,
if
I
remove
the
enforcement,
then
it
just
goes
back
to
whatever
the
setting
was.
A
That
was
originally
set,
which
was
not
so
I
think
it's
definitely
worth
looking
at
considering
it
has
all
of
this
logic
built
in,
and
it
has
some
of
these
helpers
for
enforcement
and
being
able
to
render
some
of
these
settings
and
yeah
I'll
stop
the
recording
and
you
can
chat
about
it.