Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-go
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-go
Commits
fff1eb7e
Commit
fff1eb7e
authored
2 years ago
by
ko_oler
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/master' into feature/PRXS-1296-AddDBVersionToSDK
parents
6fadde22
7f4396c6
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
perxis-proto
+1
-1
1 addition, 1 deletion
perxis-proto
pkg/auth/user.go
+3
-0
3 additions, 0 deletions
pkg/auth/user.go
pkg/spaces/middleware/caching_middleware.go
+4
-0
4 additions, 0 deletions
pkg/spaces/middleware/caching_middleware.go
with
8 additions
and
1 deletion
perxis-proto
@
8606df02
Compare
f000812a
...
8606df02
Subproject commit
f000812a1eef24093c0d0abf1318e3179b679773
Subproject commit
8606df02e0df6807e503bf22471a295020a47fba
This diff is collapsed.
Click to expand it.
pkg/auth/user.go
+
3
−
0
View file @
fff1eb7e
...
@@ -42,6 +42,7 @@ func (u UserPrincipal) Format(f fmt.State, verb rune) {
...
@@ -42,6 +42,7 @@ func (u UserPrincipal) Format(f fmt.State, verb rune) {
func
(
u
*
UserPrincipal
)
Space
(
spaceID
string
)
SpaceAccessor
{
func
(
u
*
UserPrincipal
)
Space
(
spaceID
string
)
SpaceAccessor
{
u
.
spaceID
=
spaceID
u
.
spaceID
=
spaceID
u
.
orgID
=
""
u
.
orgID
=
""
u
.
hasMemberRole
=
false
return
u
return
u
}
}
...
@@ -55,6 +56,8 @@ func (u *UserPrincipal) getSpace(ctx context.Context, spaceID string) *spaces.Sp
...
@@ -55,6 +56,8 @@ func (u *UserPrincipal) getSpace(ctx context.Context, spaceID string) *spaces.Sp
func
(
u
UserPrincipal
)
Organization
(
orgID
string
)
OrganizationAccessor
{
func
(
u
UserPrincipal
)
Organization
(
orgID
string
)
OrganizationAccessor
{
u
.
orgID
=
orgID
u
.
orgID
=
orgID
u
.
spaceID
=
""
u
.
hasMemberRole
=
false
return
&
u
return
&
u
}
}
...
...
This diff is collapsed.
Click to expand it.
pkg/spaces/middleware/caching_middleware.go
+
4
−
0
View file @
fff1eb7e
...
@@ -112,8 +112,10 @@ func (m cachingMiddleware) Transfer(ctx context.Context, spaceID, transferToOrg
...
@@ -112,8 +112,10 @@ func (m cachingMiddleware) Transfer(ctx context.Context, spaceID, transferToOrg
if
e
==
nil
{
if
e
==
nil
{
space
:=
value
.
(
*
service
.
Space
)
space
:=
value
.
(
*
service
.
Space
)
m
.
cache
.
Remove
(
orgKey
(
space
.
OrgID
))
m
.
cache
.
Remove
(
orgKey
(
space
.
OrgID
))
m
.
cache
.
Remove
(
orgKey
(
space
.
TransferToOrg
))
}
}
m
.
cache
.
Remove
(
spaceID
)
m
.
cache
.
Remove
(
spaceID
)
m
.
cache
.
Remove
(
transferToOrg
)
}
}
return
err
return
err
}
}
...
@@ -125,6 +127,7 @@ func (m cachingMiddleware) AbortTransfer(ctx context.Context, spaceID string) er
...
@@ -125,6 +127,7 @@ func (m cachingMiddleware) AbortTransfer(ctx context.Context, spaceID string) er
if
e
==
nil
{
if
e
==
nil
{
space
:=
value
.
(
*
service
.
Space
)
space
:=
value
.
(
*
service
.
Space
)
m
.
cache
.
Remove
(
orgKey
(
space
.
OrgID
))
m
.
cache
.
Remove
(
orgKey
(
space
.
OrgID
))
m
.
cache
.
Remove
(
orgKey
(
space
.
TransferToOrg
))
}
}
m
.
cache
.
Remove
(
spaceID
)
m
.
cache
.
Remove
(
spaceID
)
}
}
...
@@ -142,6 +145,7 @@ func (m cachingMiddleware) Move(ctx context.Context, spaceID, orgID string) erro
...
@@ -142,6 +145,7 @@ func (m cachingMiddleware) Move(ctx context.Context, spaceID, orgID string) erro
if
e
==
nil
{
if
e
==
nil
{
space
:=
value
.
(
*
service
.
Space
)
space
:=
value
.
(
*
service
.
Space
)
m
.
cache
.
Remove
(
orgKey
(
space
.
OrgID
))
m
.
cache
.
Remove
(
orgKey
(
space
.
OrgID
))
m
.
cache
.
Remove
(
orgKey
(
space
.
TransferToOrg
))
}
}
m
.
cache
.
Remove
(
spaceID
)
m
.
cache
.
Remove
(
spaceID
)
m
.
cache
.
Remove
(
orgID
)
m
.
cache
.
Remove
(
orgID
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment