Skip to content
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

Backport permission control to pr integr #314

Commits on Apr 3, 2024

  1. [Workspace]Add permission control logic for workspace (opensearch-pro…

    …ject#6052)
    
    * Add permission control for workspace
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    * Add changelog for permission control in workspace
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    * Fix integration tests and remove no need type
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    * Update permission enabled for workspace CRUD integration tests
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    * Change back to config schema
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    * feat: do not append workspaces field when no workspaces present (#6)
    
    * feat: do not append workspaces field when no workspaces present
    
    Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
    
    * feat: do not append workspaces field when no workspaces present
    
    Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
    
    ---------
    
    Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
    
    * fix: authInfo destructure (#7)
    
    * fix: authInfo destructure
    
    Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
    
    * fix: unit test error
    
    Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
    
    ---------
    
    Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
    
    * Fix permissions assign in attributes
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    * Remove deleteByWorkspace since not exists
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    * refactor: remove formatWorkspacePermissionModeToStringArray
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    * Remove current not used code
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    * Add missing unit tests for permission control
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    * Update workspaces API test describe
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    * Fix workspace CRUD API integration tests failed
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    * Address PR comments
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    * Store permissions when savedObjects.permissions.enabled
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    * Add permission control for deleteByWorkspace
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    * Update src/plugins/workspace/server/permission_control/client.ts
    
    Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
    
    * Update src/plugins/workspace/server/permission_control/client.ts
    
    Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
    
    * Refactor permissions field in workspace create and update API
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    * Fix workspace CRUD API integration tests
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    
    ---------
    
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
    Co-authored-by: SuZhou-Joe <suzhou@amazon.com>
    Signed-off-by: Lin Wang <wonglam@amazon.com>
    wanglam and SuZhou-Joe committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    227a0d8 View commit details
    Browse the repository at this point in the history
  2. Convert permission settings in client side

    Signed-off-by: Lin Wang <wonglam@amazon.com>
    wanglam committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    b914e9a View commit details
    Browse the repository at this point in the history
  3. Fix workspace list always render

    Signed-off-by: Lin Wang <wonglam@amazon.com>
    wanglam committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    79b7271 View commit details
    Browse the repository at this point in the history