Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
1185e21a
Unverified
Commit
1185e21a
authored
1 year ago
by
Ngoc Khuat
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix flaky fetch log tests got overflowed (#30814)
parent
4cc415ef
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/metabase/models/permissions_group_membership.clj
+1
-1
1 addition, 1 deletion
src/metabase/models/permissions_group_membership.clj
src/metabase/models/user.clj
+1
-1
1 addition, 1 deletion
src/metabase/models/user.clj
with
2 additions
and
2 deletions
src/metabase/models/permissions_group_membership.clj
+
1
−
1
View file @
1185e21a
...
...
@@ -74,4 +74,4 @@
;; If we're adding a user to the admin group, set the `:is_superuser` flag for the user to whom membership was
;; granted
(
when
(
=
group_id
(
:id
(
perms-group/admin
)))
(
t2/update!
'U
ser
user_id
{
:is_superuser
true
}))))
(
t2/update!
:core_u
ser
user_id
{
:is_superuser
true
}))))
This diff is collapsed.
Click to expand it.
src/metabase/models/user.clj
+
1
−
1
View file @
1185e21a
...
...
@@ -121,7 +121,7 @@
(
cond
(
and
superuser?
(
not
in-admin-group?
))
(
t2/insert!
PermissionsGroupMembership
(
t2/insert!
(
t2/table-name
PermissionsGroupMembership
)
:group_id
(
u/the-id
(
perms-group/admin
))
:user_id
id
)
;; don't use [[t2/delete!]] here because that does the opposite and tries to update this user which leads to a
...
...
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