Skip to content

[RAC] Disable the actions button if the user has inadequate privileges#117488

Merged
ersin-erdal merged 3 commits intoelastic:mainfrom
ersin-erdal:114983-alerts-actions-button
Nov 5, 2021
Merged

[RAC] Disable the actions button if the user has inadequate privileges#117488
ersin-erdal merged 3 commits intoelastic:mainfrom
ersin-erdal:114983-alerts-actions-button

Conversation

@ersin-erdal
Copy link
Copy Markdown
Contributor

@ersin-erdal ersin-erdal commented Nov 4, 2021

Summary

Fixes #114983

Disables the action button rather than hide it, if the user has inadequate privileges for that specific alert type.

actions_button

Checklist

Delete any items that are not applicable to this PR.

@ersin-erdal ersin-erdal added Theme: rac label obsolete auto-backport Deprecated - use backport:version if exact versions are needed release_note:fix v8.0.0 v8.1.0 Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" labels Nov 4, 2021
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
observability 341 342 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
observability 375.7KB 376.4KB +733.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@@ -0,0 +1,61 @@
/*
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍 I like the idea of moving translation constants to a separate file. Not sure about committing to adopting it as a convention just yet. There's some advantages to keeping them all in-line in the file: sometimes we debug by grepping for certain text strings and it's nice to be taken right to the code, and there are cases where we have to use <FormattedMessage> that might be awkward to import from a separate module. But let's do it here and see how maintainability works out.

@ersin-erdal ersin-erdal merged commit d84e006 into elastic:main Nov 5, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 5, 2021
elastic#117488)

Disable the actions button if the user has inadequate privileges
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Backport successful

Status Branch Result
8.0

This backport PR will be merged automatically after passing CI.

@ersin-erdal ersin-erdal deleted the 114983-alerts-actions-button branch November 5, 2021 09:45
jloleysens added a commit to jloleysens/kibana that referenced this pull request Nov 5, 2021
…ink-to-kibana-app

* 'main' of github.com:elastic/kibana: (290 commits)
  [Connectors][ServiceNow] Remove SN flags (elastic#117511)
  [ML] Functional tests - stabilize and re-enable feature importance tests (elastic#117503)
  [RAC] Disable the actions button if the user has inadequate privileges (elastic#117488)
  [Visualize] [xyChart] filter labels by default (elastic#117288)
  Fix warning when setting description to undefined (elastic#117338)
  [build] Set monitoring.ui.container.elasticsearch.enabled for all containers (elastic#115087)
  fix types
  [Alerting] UX fixes for execution duration chart (elastic#117193)
  [CI] Delete node_modules in between bootstrap attempts (elastic#117588)
  Flaky test fixes (elastic#117028)
  [Security Solution] [Sourcerer] [Feature Branch] Update to use Kibana Data Views  (elastic#114806)
  [ML] Hide anomaly entity filter button tooltips when clicked (elastic#117493)
  adjust the synthetics journey type (elastic#117316)
  Refines hasAnyData check for alerts (elastic#117499)
  [Fleet] Default to APM tutorial (elastic#117421)
  [Maps] update docs for index pattern -> data view rename (elastic#117400)
  [Logs UI][Metrics UI] Remove deprecated config fields from APIs and SavedObjects (elastic#116821)
  [Fleet] Fix agent logs not reading query from URL (elastic#117286)
  Fixing Failing test: Chrome X-Pack UI Functional Tests.x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_create_flyout·ts - Actions and Triggers app create alert should successfully test valid es_query alert (elastic#114917)
  [Metrics UI] Add docs link to redundant groupBy detection (elastic#116822)
  ...

# Conflicts:
#	x-pack/plugins/reporting/public/management/__snapshots__/report_listing.test.tsx.snap
#	x-pack/plugins/reporting/public/shared_imports.ts
#	x-pack/plugins/reporting/server/routes/management/jobs.ts
kibanamachine added a commit that referenced this pull request Nov 5, 2021
#117488) (#117624)

Disable the actions button if the user has inadequate privileges

Co-authored-by: Ersin Erdal <92688503+ersin-erdal@users.noreply.github.com>
@KOTungseth KOTungseth added the Team:APM - DEPRECATED Use Team:obs-ux-infra_services. label Dec 8, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/apm-ui (Team:apm)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Deprecated - use backport:version if exact versions are needed release_note:fix Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" Team:APM - DEPRECATED Use Team:obs-ux-infra_services. Theme: rac label obsolete v8.0.0 v8.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RAC] Alert actions look broken

5 participants