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

NAS-113216 / 22.12 / NAS-113216: Hide 'acltype' and 'aclmode' when creating or editing first level dataset #7098

Merged
merged 3 commits into from
Sep 23, 2022

Conversation

bvasilenko
Copy link
Contributor

Summary

Removed ACL Type and Mode, if dataset is a root dataset , as suggested by the ticket's description

@bvasilenko bvasilenko requested a review from a team as a code owner September 18, 2022 18:13
@bvasilenko bvasilenko requested review from undsoft and removed request for a team September 18, 2022 18:13
@bugclerk bugclerk changed the title NAS-113216: Hide 'acltype' and 'aclmode' when creating or editing first level dataset NAS-113216 / 22.12 / NAS-113216: Hide 'acltype' and 'aclmode' when creating or editing first level dataset Sep 18, 2022
@bugclerk
Copy link
Contributor

@codecov
Copy link

codecov bot commented Sep 18, 2022

Codecov Report

Merging #7098 (0f540ef) into master (fba3aba) will increase coverage by 0.09%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master    #7098      +/-   ##
==========================================
+ Coverage   41.15%   41.24%   +0.09%     
==========================================
  Files        1045     1049       +4     
  Lines       46070    46107      +37     
  Branches     6393     6405      +12     
==========================================
+ Hits        18958    19016      +58     
+ Misses      27112    27091      -21     
Impacted Files Coverage Δ
.../components/dataset-form/dataset-form.component.ts 3.75% <0.00%> (-0.02%) ⬇️
...odules/truecommand/truecommand-button.component.ts 64.00% <100.00%> (+3.13%) ⬆️
...form/components/form-array/form-array.component.ts 50.00% <0.00%> (-50.00%) ⬇️
src/app/services/shell.service.ts 6.52% <0.00%> (-5.48%) ⬇️
...p/pages/sharing/smb/smb-form/smb-form.component.ts 79.84% <0.00%> (-0.40%) ⬇️
src/app/services/ws.service.ts 17.03% <0.00%> (ø)
src/app/views/others/others.module.ts 0.00% <0.00%> (ø)
src/app/views/sessions/sessions.module.ts 0.00% <0.00%> (ø)
src/app/pages/network/network.component.ts 0.00% <0.00%> (ø)
src/app/modules/common/app-common.module.ts 0.00% <0.00%> (ø)
... and 29 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Collaborator

@undsoft undsoft left a comment

Choose a reason for hiding this comment

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

I think you misunderstood the task.
Root dataset is the first dataset in the hierarchy, it's the one that is created when you add a pool and can only be edited. It is this dataset that shouldn't have Acl Type and Acl Mode fields.
Right now this is not the case. I can still edit these fields on the root dataset, but cannot edit them on first child.

@@ -1452,6 +1454,10 @@ export class DatasetFormComponent implements FormConfiguration {
return false;
}

isRootDataset(path: string): boolean {
Copy link
Collaborator

Choose a reason for hiding this comment

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

we have isRootDataset in dataset.utils.ts that you can use here.

@bvasilenko
Copy link
Contributor Author

@undsoft Done! Now it uses isRootDataset in dataset.utils.ts

Copy link
Collaborator

@undsoft undsoft left a comment

Choose a reason for hiding this comment

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

Works well 👍🏻

@bvasilenko bvasilenko merged commit b7fa038 into master Sep 23, 2022
@bvasilenko bvasilenko deleted the NAS-113216 branch September 23, 2022 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants