Skip to content

Workbook access dialog legacy#3022

Draft
YankinA wants to merge 39 commits intomainfrom
CHARTS-11939-access-dialog
Draft

Workbook access dialog legacy#3022
YankinA wants to merge 39 commits intomainfrom
CHARTS-11939-access-dialog

Conversation

@YankinA
Copy link
Contributor

@YankinA YankinA commented Oct 15, 2025

No description provided.

@github-actions
Copy link

github-actions bot commented Oct 15, 2025

📦 Statoscope quick diff with main-branch:

⏱ Build time: 1.5 sec (2.74%)

⚖️ Initial size: 0.31 kb (0.01%)

🕵️ Validation errors: 0

Full Statoscope report could be found here ↗️

@github-actions
Copy link

E2E Tests

Playwright test results

passed  182 passed
flaky  5 flaky
skipped  2 skipped

Details

stats  189 tests across 105 suites
duration  6 minutes, 17 seconds
commit  e900dbb

Flaky tests

opensource › opensource-suites/connections/clickhouse.test.ts › Clickhouse connector interactions › Connector should be created
opensource › opensource-suites/dash/revisions/revisionsListWithCreationDashboards.test.ts › Dashboards - Versioning › Creating a dashboard, editing, saving as a draft, making the draft version relevant
opensource › opensource-suites/dash/selectors/autoupdateRelatedSelectors.test.ts › Dashboards - Autoupdate options of group selectors › Dataset selectors affect each other before applying when auto-update is enabled
opensource › opensource-suites/wizard/fields/parameters.test.ts › Wizard › Fields › The parameterized field should affect the chart
opensource › opensource-suites/wizard/filters/filters-with-dialog-color.test.ts › Wizard filters › Two or more values of the Date field from the dashboard filter section should use IN operation by default

Skipped tests

opensource › opensource-suites/dash/revisions/revisionsList.test.ts › Dashboards - Versioning › Dashboard with a long list of revisions, checking the upload and the updated list of revisions
opensource › opensource-suites/dash/selectors/autoupdateRelatedSelectors.test.ts › Dashboards - Autoupdate options of group selectors › Manual selectors with aliases don't affect each other before applying when auto-update is disabled


👉 Link with detailed report: report

@github-actions
Copy link

github-actions bot commented Oct 28, 2025

E2E Tests

Playwright test results

passed  203 passed
flaky  9 flaky
skipped  2 skipped

Details

stats  214 tests across 116 suites
duration  3 minutes, 25 seconds
commit  b6bc0a9

Flaky tests

opensource › opensource-suites/connections/clickhouse.test.ts › Clickhouse connector interactions › Connector should be created
opensource › opensource-suites/dash/screenshots/widgetsBackground.test.ts › Dashboards - widgets backgrounds screenshots › Title bg color @screenshot
opensource › opensource-suites/dash/screenshots/widgetsBackground.test.ts › Dashboards - widgets backgrounds screenshots › Chart bg color @screenshot
opensource › opensource-suites/wizard/fields/parameters.test.ts › Wizard › Fields › Renaming should not affect the operation of the parameter
opensource › opensource-suites/wizard/visualizations/area/html.test.ts › Wizard › Area chart › Html labels on X axis @screenshot
opensource › opensource-suites/wizard/visualizations/bar-y/data-labels.test.ts › Wizard › Bar-y chart › String dataLabels @screenshot
opensource › opensource-suites/wizard/visualizations/bar-y/sorting.test.ts › Wizard › Bar-y chart › Sorting by X field @screenshot
opensource › opensource-suites/wizard/visualizations/flat-table/export.test.ts › Wizard › Flat table › Export to xlsx
opensource › opensource-suites/wizard/visualizations/pie/hierarchy.test.ts › Wizard › Pie chart › Go to the next level when clicking on a chart with a hierarchy @screenshot

Skipped tests

opensource › opensource-suites/dash/revisions/revisionsList.test.ts › Dashboards - Versioning › Dashboard with a long list of revisions, checking the upload and the updated list of revisions
opensource › opensource-suites/dash/selectors/autoupdateRelatedSelectors.test.ts › Dashboards - Autoupdate options of group selectors › Manual selectors with aliases don't affect each other before applying when auto-update is disabled


🧐 Links with traces:

👉 Link with detailed report: report

🐳 Link with docker compose logs: logs

Last updated: 2025-12-23 14:25:23 MSK

@github-actions
Copy link

github-actions bot commented Oct 28, 2025

E2E Tests No Auth

Playwright test results

passed  210 passed
flaky  2 flaky
skipped  2 skipped

Details

stats  214 tests across 116 suites
duration  3 minutes, 18 seconds
commit  b6bc0a9

Flaky tests

opensource › opensource-suites/wizard/datasets/replace-dataset.test.ts › Wizard › Datasets › Replace dataset
opensource › opensource-suites/wizard/filters/filters-with-dialog-color.test.ts › Wizard filters › Two or more values of the Date field from the dashboard filter section should use IN operation by default

Skipped tests

opensource › opensource-suites/dash/revisions/revisionsList.test.ts › Dashboards - Versioning › Dashboard with a long list of revisions, checking the upload and the updated list of revisions
opensource › opensource-suites/dash/selectors/autoupdateRelatedSelectors.test.ts › Dashboards - Autoupdate options of group selectors › Manual selectors with aliases don't affect each other before applying when auto-update is disabled


🧐 Links with traces:

👉 Link with detailed report: report

🐳 Link with docker compose logs: logs

Last updated: 2025-12-23 14:25:20 MSK

@github-actions
Copy link

github-actions bot commented Oct 28, 2025

E2E Tests Farm

Playwright test results

passed  417 passed
flaky  8 flaky
skipped  1 skipped

Details

stats  426 tests across 171 suites
duration  4 minutes, 18 seconds
commit  13926ab

Flaky tests

basic › suites/charts/export/forbiddenExport.test.ts › Chart export availability › Wizard with forbidden export › Export menu item is disabled if export is forbidden on connection
basic › suites/charts/export/forbiddenExport.test.ts › Chart export availability › Ql - Export menu item is disabled if export is forbidden on connection
basic › suites/dataset/parameters/parameterDialogValidation.test.ts › Datasets - Parameter dialog validation › Required fields validation
basic › suites/dataset/parameters/parameterDialogValidation.test.ts › Datasets - Parameter dialog validation › Parameter name validation
basic › suites/dataset/parameters/parameterDialogValidation.test.ts › Datasets - Parameter dialog validation › Parameter default_value validation [number]
basic › suites/wizard/colors/coloredByMeasureNames.test.ts › Wizard - section "Colors" › Multidatasets. Fields with the same name should be automatically colored in different colors
basic › suites/wizard/filters/dashboardFilters.test.ts › Wizard - filters › Filters from the URL should be taken into account when saving the chart as images
basic › suites/wizard/metric/metricCustomization.test.ts › Wizard - metric chart. Settings › Size change

Skipped tests

basic › suites/wizard/combined-chart/layers-and-multidatasets.test.ts › Multi-faceted charts with layers › The data on the X-axis must be formed correctly from two datasets


👉 Link with detailed report: report

Last updated: 2025-12-10 18:37:25 MSK

@YankinA YankinA requested a review from imsitnikov November 5, 2025 14:50
@YankinA YankinA marked this pull request as ready for review November 14, 2025 09:54
@datalens-weblate-robot
Copy link
Contributor

i18n-check
Please merge the Pull Request with the changes from Weblate into your branch.

@datalens-weblate-robot
Copy link
Contributor

i18n-check
Please merge the Pull Request with the changes from Weblate into your branch.

@datalens-weblate-robot
Copy link
Contributor

i18n-check

Errors occurred when merging changes from your branch with the Weblate branch.
Rebasing (1/1)
Auto-merging src/i18n-keysets/component.iam-access-dialog/en.json
CONFLICT (content): Merge conflict in src/i18n-keysets/component.iam-access-dialog/en.json
error: could not apply 9b4a581e4... Translated using Weblate (English)
hint: Resolve all conflicts manually, mark them as resolved with
hint: "git add/rm <conflicted_files>", then run "git rebase --continue".
hint: You can instead skip this commit: run "git rebase --skip".
hint: To abort and get back to the state before "git rebase", run "git rebase --abort".
Could not apply 9b4a581e4... Translated using Weblate (English)
 (1)

Resolve conflicts according to instructions

  1. Switch to the current branch associated with this pull request.
git checkout CHARTS-11939-access-dialog
  1. Add Weblate as remote. And remove previous upstream with the same name:
git remote remove weblate 2> /dev/null
git remote add weblate https://weblate.gravity-ui.com/git/datalens/charts-11939-access-dialog-3022/auth-dialog-change-password-3022/
git -c http.sslVerify=false remote update weblate
  1. Merge Weblate changes:
git merge weblate/CHARTS-11939-access-dialog
  1. Resolve conflicts:
edit ...
git add ...
git commit
  1. Push changes to upstream repository, Weblate will fetch merge from there:
git push origin

"toast_switch-publication-status-failed": "Не удалось изменить публичный доступ",
"toast_switch-publication-status-success": "Публичный доступ был изменен"
"toast_switch-publication-status-success": "Публичный доступ был изменен",
"label_public-access-warning-title": "Вы даете доступ ко всем выбранным связанным объектам",
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no code in the opesource repo that uses these keys. Plz add a separate keyset for the new access dialog in the same repo where this keyset are used.

ResendInvitationRequest,
} from '../types/invitations';

export const organizationManager = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why should we declare these actions in the opensource repo? We don't use them here.

Copy link
Contributor

Choose a reason for hiding this comment

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

+

federation?: unknown;
pictureData?: string;
idpType?: string | null;
displayName?: string | React.ReactNode;
Copy link
Contributor

Choose a reason for hiding this comment

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

SubjectClaims is used in BatchListMembersResponse, which is used by the schema action as return type. How schema action (fetch request) can return React.ReactNode?

If such model creates in UI, the customized type should be placed in the ui folder (even types). Imports from react should not be used in shared.

@@ -0,0 +1 @@
export type OpenAccessDialog = (arg: any) => void;
Copy link
Contributor

Choose a reason for hiding this comment

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

not used


export type AclSubjectProps = {
subjectClaims: SubjectClaims;
iconSlot?: React.ReactNode;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it used somewhere?

avatarData?: string;
} & Omit<SubjectClaims, 'sub' | 'subType'>;

export interface AclSubjectSelectProps extends Omit<AclSubjectSuggestProps, 'onSubjectChange'> {
Copy link
Contributor

Choose a reason for hiding this comment

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

This component is not related to opensource repo. Is this declared here only because we don't have its own registry in extensions?

@datalens-weblate-robot
Copy link
Contributor

i18n-check

Errors occurred when merging changes from your branch with the Weblate branch.
Rebasing (1/1)
Auto-merging src/i18n-keysets/component.iam-access-dialog/en.json
CONFLICT (content): Merge conflict in src/i18n-keysets/component.iam-access-dialog/en.json
error: could not apply 9b4a581e4... Translated using Weblate (English)
hint: Resolve all conflicts manually, mark them as resolved with
hint: "git add/rm <conflicted_files>", then run "git rebase --continue".
hint: You can instead skip this commit: run "git rebase --skip".
hint: To abort and get back to the state before "git rebase", run "git rebase --abort".
Could not apply 9b4a581e4... Translated using Weblate (English)
 (1)

Resolve conflicts according to instructions

  1. Switch to the current branch associated with this pull request.
git checkout CHARTS-11939-access-dialog
  1. Add Weblate as remote. And remove previous upstream with the same name:
git remote remove weblate 2> /dev/null
git remote add weblate https://weblate.gravity-ui.com/git/datalens/charts-11939-access-dialog-3022/auth-dialog-change-password-3022/
git -c http.sslVerify=false remote update weblate
  1. Merge Weblate changes:
git merge weblate/CHARTS-11939-access-dialog
  1. Resolve conflicts:
edit ...
git add ...
git commit
  1. Push changes to upstream repository, Weblate will fetch merge from there:
git push origin

@datalens-weblate-robot
Copy link
Contributor

i18n-check

Errors occurred when merging changes from your branch with the Weblate branch.
Rebasing (1/1)
Auto-merging src/i18n-keysets/component.iam-access-dialog/en.json
CONFLICT (content): Merge conflict in src/i18n-keysets/component.iam-access-dialog/en.json
error: could not apply 9b4a581e4... Translated using Weblate (English)
hint: Resolve all conflicts manually, mark them as resolved with
hint: "git add/rm <conflicted_files>", then run "git rebase --continue".
hint: You can instead skip this commit: run "git rebase --skip".
hint: To abort and get back to the state before "git rebase", run "git rebase --abort".
Could not apply 9b4a581e4... Translated using Weblate (English)
 (1)

Resolve conflicts according to instructions

  1. Switch to the current branch associated with this pull request.
git checkout CHARTS-11939-access-dialog
  1. Add Weblate as remote. And remove previous upstream with the same name:
git remote remove weblate 2> /dev/null
git remote add weblate https://weblate.gravity-ui.com/git/datalens/charts-11939-access-dialog-3022/auth-dialog-change-password-3022/
git -c http.sslVerify=false remote update weblate
  1. Merge Weblate changes:
git merge weblate/CHARTS-11939-access-dialog
  1. Resolve conflicts:
edit ...
git add ...
git commit
  1. Push changes to upstream repository, Weblate will fetch merge from there:
git push origin

@datalens-weblate-robot
Copy link
Contributor

i18n-check

Errors occurred when merging changes from your branch with the Weblate branch.
Rebasing (1/1)
Auto-merging src/i18n-keysets/component.iam-access-dialog/en.json
CONFLICT (content): Merge conflict in src/i18n-keysets/component.iam-access-dialog/en.json
error: could not apply 9b4a581e4... Translated using Weblate (English)
hint: Resolve all conflicts manually, mark them as resolved with
hint: "git add/rm <conflicted_files>", then run "git rebase --continue".
hint: You can instead skip this commit: run "git rebase --skip".
hint: To abort and get back to the state before "git rebase", run "git rebase --abort".
Could not apply 9b4a581e4... Translated using Weblate (English)
 (1)

Resolve conflicts according to instructions

  1. Switch to the current branch associated with this pull request.
git checkout CHARTS-11939-access-dialog
  1. Add Weblate as remote. And remove previous upstream with the same name:
git remote remove weblate 2> /dev/null
git remote add weblate https://weblate.gravity-ui.com/git/datalens/charts-11939-access-dialog-3022/auth-dialog-change-password-3022/
git -c http.sslVerify=false remote update weblate
  1. Merge Weblate changes:
git merge weblate/CHARTS-11939-access-dialog
  1. Resolve conflicts:
edit ...
git add ...
git commit
  1. Push changes to upstream repository, Weblate will fetch merge from there:
git push origin

"label_author-description": "При публикации {{subject}} можно указать ссылку на его источник или автора. Ссылка будет отображаться внизу {{subject}}.",
"label_author-link": "Ссылка",
"label_author-link-error": "Неверный формат ссылки",
"label_author-link-required": "Ссылка обязательна при указании автора",
Copy link
Contributor

Choose a reason for hiding this comment

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

where is en

</div>

{showWarning && (
<>
Copy link
Contributor

Choose a reason for hiding this comment

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

according to the code style, we use React.Fragment

ResendInvitationRequest,
} from '../types/invitations';

export const organizationManager = {
Copy link
Contributor

Choose a reason for hiding this comment

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

+

Comment on lines +19 to +20
"label_delete": "Удалить",
"label_to": "Кому",
Copy link
Contributor

Choose a reason for hiding this comment

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

there is also a lack of en, without this the keys will not work correctly

@datalens-weblate-robot
Copy link
Contributor

i18n-check

Errors occurred when merging changes from your branch with the Weblate branch.
Rebasing (1/1)
Auto-merging src/i18n-keysets/component.iam-access-dialog/en.json
CONFLICT (content): Merge conflict in src/i18n-keysets/component.iam-access-dialog/en.json
error: could not apply 9b4a581e4... Translated using Weblate (English)
hint: Resolve all conflicts manually, mark them as resolved with
hint: "git add/rm <conflicted_files>", then run "git rebase --continue".
hint: You can instead skip this commit: run "git rebase --skip".
hint: To abort and get back to the state before "git rebase", run "git rebase --abort".
Could not apply 9b4a581e4... Translated using Weblate (English)
 (1)

Resolve conflicts according to instructions

  1. Switch to the current branch associated with this pull request.
git checkout CHARTS-11939-access-dialog
  1. Add Weblate as remote. And remove previous upstream with the same name:
git remote remove weblate 2> /dev/null
git remote add weblate https://weblate.gravity-ui.com/git/datalens/charts-11939-access-dialog-3022/auth-dialog-change-password-3022/
git -c http.sslVerify=false remote update weblate
  1. Merge Weblate changes:
git merge weblate/CHARTS-11939-access-dialog
  1. Resolve conflicts:
edit ...
git add ...
git commit
  1. Push changes to upstream repository, Weblate will fetch merge from there:
git push origin

@@ -1 +1,5 @@
export type UseSubjectsListId = {type: 'organizationId' | 'cloudId'; id: string | undefined};
export type UseSubjectsListId = {
Copy link
Contributor

Choose a reason for hiding this comment

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

This type is used to receive the params needed to retrieve a list of subjects. The title is not required for that. Don't mix logic for different purposes.

dispatch(closeDialog());
if (isNewAccessDialogEnabled) {
openAccessDialog(dispatch, {
collectionId: item?.collectionId ?? undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

item can be optional here?

dispatch(closeDialog());
if (isNewAccessDialogEnabled) {
openAccessDialog(dispatch, {
workbookId: item?.workbookId ?? undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

item can be optional here?

openDialog({
id: DIALOG_ACCESS,
props: {
workbookId: workbook?.workbookId ?? undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

workbook can be optional here?

@YankinA YankinA changed the title Workbook access dialog Workbook access dialog legacy Jan 12, 2026
@YankinA YankinA marked this pull request as draft January 12, 2026 13:21
@YankinA YankinA added the freeze label Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants