[8.16] Account for disabledShareUrl prop for rendered sharing options (#206592) #206769
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
main
to8.16
:Questions ?
Please refer to the Backport tool documentation
","sha":"44b756c2f5c1b22bc189c65f6b8ade597c5eea90","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:SharingURLs","v9.0.0","Team:SharedUX","backport:prev-major"],"title":"Account for disabledShareUrl prop for rendered sharing options","number":206592,"url":"https://github.com//pull/206592","mergeCommit":{"message":"Account for disabledShareUrl prop for rendered sharing options (#206592)\n\n## Summary\r\n\r\nCloses https://github.com//issues/201980. \r\n\r\nThis PR adds logic to honor the `disabledShareUrl` prop. For the user\r\nthis means that in instances where the user doesn't have permissions to\r\ncreate a share url, the link tab doesn't get rendered to such user.\r\n\r\n## How to test\r\n\r\n- Create a simple user and a custom role. Assign only Read capabilities\r\nto Visualize Library\r\n- Now sign up with that user, create a new lens visualization and try to\r\nshare it\r\n- The share Link tab is not visible.\r\n\r\n","sha":"44b756c2f5c1b22bc189c65f6b8ade597c5eea90"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com//pull/206592","number":206592,"mergeCommit":{"message":"Account for disabledShareUrl prop for rendered sharing options (#206592)\n\n## Summary\r\n\r\nCloses https://github.com//issues/201980. \r\n\r\nThis PR adds logic to honor the `disabledShareUrl` prop. For the user\r\nthis means that in instances where the user doesn't have permissions to\r\ncreate a share url, the link tab doesn't get rendered to such user.\r\n\r\n## How to test\r\n\r\n- Create a simple user and a custom role. Assign only Read capabilities\r\nto Visualize Library\r\n- Now sign up with that user, create a new lens visualization and try to\r\nshare it\r\n- The share Link tab is not visible.\r\n\r\n","sha":"44b756c2f5c1b22bc189c65f6b8ade597c5eea90"}}]}] BACKPORT-->