-
Notifications
You must be signed in to change notification settings - Fork 1
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
Test "roles" query #20
Comments
Query : query getRoles {
roles(
filter:{
RoleName:"USER"
}
){
RoleName
PermissionGroups{
GroupName
Permissions{
Policy
}
}
}
} Output : {
"data": {
"roles": [
{
"RoleName": "USER",
"PermissionGroups": [
{
"GroupName": "none",
"Permissions": [
{
"Policy": "none"
}
]
},
{
"GroupName": "user.viewer",
"Permissions": [
{
"Policy": "user.read"
},
{
"Policy": "user.list"
}
]
}
]
}
]
}
} I'm unsure about that part. The "none" field is returned in all roles. Is this intentional or is it a bug?
|
When I login as "op_user", "op_manager", "op_admin" and query with RoleName: "USER" or RoleName: "MANGER" in the filter, I got the same results as number 1. QUERY query test_roles{
roles(filter: { RoleName: "USER" }) {
RoleName
PermissionGroups{
GroupName
Permissions{
Policy
}
}
}
} |
I login as 3 different accounts as "op_user", "op_manager", "op_admin" I got the same results. QUERY; query second_getAll_test_roles{
roles{
RoleName
PermissionGroups{
GroupName
Permissions{
Policy
}
}
}
} Results; {
"data": {
"roles": [
{
"RoleName": "ADMIN",
"PermissionGroups": [
{
"GroupName": "none",
"Permissions": [
{
"Policy": "none"
}
]
},
{
"GroupName": "user.manager",
"Permissions": [
{
"Policy": "user.read"
},
{
"Policy": "user.list"
},
{
"Policy": "user.create"
},
{
"Policy": "user.update.role"
},
{
"Policy": "user.change.password"
},
{
"Policy": "user.update.base"
},
{
"Policy": "user.update.status"
},
{
"Policy": "user.delete"
}
]
}
]
},
{
"RoleName": "MANAGER",
"PermissionGroups": [
{
"GroupName": "none",
"Permissions": [
{
"Policy": "none"
}
]
},
{
"GroupName": "user.viewer",
"Permissions": [
{
"Policy": "user.read"
},
{
"Policy": "user.list"
}
]
}
]
},
{
"RoleName": "USER",
"PermissionGroups": [
{
"GroupName": "none",
"Permissions": [
{
"Policy": "none"
}
]
},
{
"GroupName": "user.viewer",
"Permissions": [
{
"Policy": "user.read"
},
{
"Policy": "user.list"
}
]
}
]
}
]
}
} |
Test the "roles" query with all possible cases and create an issue if any bugs are found. If you encounter unexpected behavior or are unsure if it is intended, please create an issue for that as well.
The text was updated successfully, but these errors were encountered: