IAM: Add search for teams in app platform (#113503)
* add legacy search (wip) * fix search field name * implement team search endpoint * generate openapi spec * generate endpoints for frontend * minor fixes * fix issues found while testing * add more fields to search result * add basic unit tests * add more unit tests * improve getColumns() func in legacy search * configure search endpoint in team.cue * add team search handler * add the searchTeams endpoint to manifest.cue * make gofmt * update openapi spec * generate frontend endpoints * remove unused field * move fields defiitions to separate builder * fix legacy search * fix unit tests * fix unit test * address feedback * fix unit test * update openapi specs * yarn generate-apis * add missing unit tests
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"key": {
|
||||
"namespace": "default",
|
||||
"group": "iam.grafana.app",
|
||||
"resource": "searchTeams",
|
||||
"name": "with-email-and-external-uid"
|
||||
},
|
||||
"name": "with-email-and-external-uid",
|
||||
"rv": 1234,
|
||||
"title": "Team With Email And External UID",
|
||||
"title_ngram": "Team With Email And External UID",
|
||||
"title_phrase": "team with email and external uid",
|
||||
"fields": {
|
||||
"email": "test@example.com",
|
||||
"externalUID": "external-uid",
|
||||
"provisioned": true
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"apiVersion": "iam.grafana.app/v0alpha1",
|
||||
"kind": "Team",
|
||||
"metadata": {
|
||||
"name": "team-with-email-and-external-uid"
|
||||
},
|
||||
"spec": {
|
||||
"title": "Team With Email And External UID",
|
||||
"email": "test@example.com",
|
||||
"provisioned": true,
|
||||
"externalUID": "external-uid"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user