-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NAS-131143 / 25.04 / Always use python serializer and preserve types #14542
Conversation
privileges_group_mapping
method that produces slig…privileges_group_mapping
method that produces slig…
4f10f64
to
d9d66ee
Compare
Won't this change the type for |
@@ -1612,11 +1612,13 @@ async def group_extend(self, group, ctx): | |||
group['name'] = group['group'] | |||
group['users'] = ctx['memberships'].get(group['id'], []) | |||
|
|||
privilege_mappings = privileges_group_mapping(ctx['privileges'], [group['gid']], 'local_groups') | |||
privilege_mappings = await self.middleware.call( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather not add an extra middleware call per-group here especially when the op is so trivial. We can make the util version create a set instead and then convert to list for the user / group query output so that we're not changing things in the API response.
d9d66ee
to
aa43efa
Compare
privileges_group_mapping
method that produces slig…There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
JIRA ticket https://ixsystems.atlassian.net/browse/NAS-131143 is targeted to the following versions which have not received their corresponding PRs: 24.10.0 |
This PR has been merged and conversations have been locked. |
time 4:00 |
Time tracking added. |
…htly different results