Skip to content

feat!: [PROD-14533] handle dataset bases permissions in scenario shar…#439

Merged
nborde-CSM merged 2 commits intomainfrom
NBO/adapat_scenario_sharing_to_API_V5_PROD-14533
Nov 21, 2025
Merged

feat!: [PROD-14533] handle dataset bases permissions in scenario shar…#439
nborde-CSM merged 2 commits intomainfrom
NBO/adapat_scenario_sharing_to_API_V5_PROD-14533

Conversation

@nborde-CSM
Copy link
Copy Markdown
Collaborator

…ing role edition dialog

BREAKING CHANGE : The "agent" prop of RoleEdtionButton and RoleEditionDialog is now an
array of objects

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements support for handling dataset base permissions in the scenario sharing role edition dialog. The changes allow the UI to display which users cannot be granted access because they lack read permissions to certain dataset bases.

Key changes:

  • Modified the agents prop structure from a simple array to an array of objects containing user IDs and dataset restrictions
  • Added visual feedback (tooltips and disabled state) for users who cannot be granted access due to dataset permission issues
  • Updated PropTypes definitions to reflect the new data structure

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
RolesEditionDialog.js Enhanced Autocomplete component to display disabled states and tooltips for users who cannot read certain datasets; updated PropTypes to reflect new agent structure
RolesEditionButton.js Updated PropTypes documentation and definition for the new agents prop structure

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nborde-CSM nborde-CSM force-pushed the NBO/adapat_scenario_sharing_to_API_V5_PROD-14533 branch from e05b65a to 6faa0ee Compare November 12, 2025 10:51
@Cosmo-Tech Cosmo-Tech deleted a comment from Copilot AI Nov 12, 2025
@Cosmo-Tech Cosmo-Tech deleted a comment from Copilot AI Nov 12, 2025
@Cosmo-Tech Cosmo-Tech deleted a comment from Copilot AI Nov 12, 2025
@Cosmo-Tech Cosmo-Tech deleted a comment from Copilot AI Nov 12, 2025
@nborde-CSM nborde-CSM force-pushed the NBO/adapat_scenario_sharing_to_API_V5_PROD-14533 branch from 6faa0ee to de9f8ec Compare November 13, 2025 17:28
Copy link
Copy Markdown
Member

@csm-thu csm-thu left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@nborde-CSM nborde-CSM force-pushed the NBO/adapat_scenario_sharing_to_API_V5_PROD-14533 branch 6 times, most recently from 96f1cc0 to 2edd8fb Compare November 21, 2025 14:18
@nborde-CSM nborde-CSM requested a review from csm-thu November 21, 2025 15:22
@nborde-CSM nborde-CSM force-pushed the NBO/adapat_scenario_sharing_to_API_V5_PROD-14533 branch 2 times, most recently from 64cb7a4 to dc38880 Compare November 21, 2025 15:28
Copy link
Copy Markdown
Member

@csm-thu csm-thu left a comment

Choose a reason for hiding this comment

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

Some questions and suggestions, but LGTM 👍

Comment thread src/buttons/RolesEditionButton/RolesEditionButton.js
@nborde-CSM nborde-CSM force-pushed the NBO/adapat_scenario_sharing_to_API_V5_PROD-14533 branch from dc38880 to 0a65087 Compare November 21, 2025 16:12
…ing role edition dialog

BEARKING CHANGES:
	In Role Edition Dialog, isReadOnly prop has been removed and has been replaced by
	two new props:
		- hasWriteSecurityPermission (boolean and optional)
                - specificSharingRestriction (functon and optional)
@nborde-CSM nborde-CSM force-pushed the NBO/adapat_scenario_sharing_to_API_V5_PROD-14533 branch from 0a65087 to 9754dfb Compare November 21, 2025 17:17
@nborde-CSM nborde-CSM merged commit db0983c into main Nov 21, 2025
2 checks passed
@csm-thu csm-thu deleted the NBO/adapat_scenario_sharing_to_API_V5_PROD-14533 branch November 27, 2025 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants