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

Feature Controls - Simplify Saved Objects Management UI Capabilities #38461

Merged
merged 7 commits into from
Jun 10, 2019

Conversation

legrego
Copy link
Member

@legrego legrego commented Jun 7, 2019

Summary

This is a prerequisite to to implementing the Copy To Space API.

This simplifies the Saved Objects Management UI Capabilities by changing the capabilities from being type-specific, to just feature specific.

Previously:

uiCapabilities: {
  savedObjectsManagement: {
     dashboard: {
       read: true,
       edit: true,
       delete: true
     },
     discover: {
       read: true,
       edit: true,
       delete: true
     },
    canvas: {
       read: true,
       edit: true,
       delete: true
    },
    // etc
  }
}

Now:

uiCapabilities: {
  savedObjectsManagement: {
     read: true,
     edit: true,
     delete: true
  }
}

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Member Author

@legrego legrego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've pointed out opportunities to further simplify the UI components. I didn't undertake that effort yet, but I can if we find benefit to doing so. I wasn't sure if we'd want that flexibility in the future, but that alone might be reason enough to simplify now
edit: done

@legrego legrego marked this pull request as ready for review June 10, 2019 16:21
@legrego legrego requested a review from a team as a code owner June 10, 2019 16:21
@legrego legrego added Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! Feature:Security/Feature Controls Platform Security - Spaces & Role Mgmt feature controls labels Jun 10, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security

@legrego legrego added the release_note:skip Skip the PR/issue when compiling release notes label Jun 10, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@legrego legrego added the review label Jun 10, 2019
@legrego legrego requested a review from kobelb June 10, 2019 20:01
@kobelb
Copy link
Contributor

kobelb commented Jun 10, 2019

ACK: reviewing right now

unableToDeleteSavedObjectTypes.length > 0 ? `Unable to delete ${unableToDeleteSavedObjectTypes.join(', ')}` : undefined
this.props.canDelete
? undefined
: i18n.translate(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

Copy link
Contributor

@kobelb kobelb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on green CI

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@legrego legrego deleted the fc/simplify-som branch June 10, 2019 22:09
legrego added a commit to legrego/kibana that referenced this pull request Jun 10, 2019
…lastic#38461)

* start simplifying saved objects management UI Capabilities

* update tests

* simplify UI

* address PR feedback

* remove savedObjectsManagement UI Capabilities tests
legrego added a commit that referenced this pull request Jun 10, 2019
…ities (#38461) (#38618)

* start simplifying saved objects management UI Capabilities

* update tests

* simplify UI

* address PR feedback

* remove savedObjectsManagement UI Capabilities tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Security/Feature Controls Platform Security - Spaces & Role Mgmt feature controls release_note:skip Skip the PR/issue when compiling release notes review Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants