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-117298 / None / NAS-117298: timemaching_quota added in smb-form #7074

Merged
merged 11 commits into from
Sep 20, 2022

Conversation

AlexKarpov98
Copy link
Contributor

No description provided.

@AlexKarpov98 AlexKarpov98 requested a review from a team as a code owner September 12, 2022 20:47
@AlexKarpov98 AlexKarpov98 requested review from undsoft and RehanY147 and removed request for a team September 12, 2022 20:47
@AlexKarpov98 AlexKarpov98 changed the title NAS-117298: timemaching_quota added in smb-form NAS-117298 / None / NAS-117298: timemaching_quota added in smb-form Sep 12, 2022
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.

According to ticket value for timemachine_quota is number of bytes, so it needs to use [formatter] to show it properly.
Also I am not sure if sending tmemachine_quota = 0 is correct if it is not set.

src/app/pages/sharing/smb/smb-form/smb-form.component.html Outdated Show resolved Hide resolved
src/app/pages/sharing/smb/smb-form/smb-form.component.html Outdated Show resolved Hide resolved
src/app/pages/sharing/smb/smb-form/smb-form.component.ts Outdated Show resolved Hide resolved
@AlexKarpov98
Copy link
Contributor Author

@undsoft - Updated PR

@undsoft undsoft self-requested a review September 16, 2022 08:02
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.

  1. Looks like not sending a value doesn't remove it.
  2. I think we should also not send it (clear value) if user unticks Time Machine.

src/app/pages/sharing/smb/smb-form/smb-form.component.ts Outdated Show resolved Hide resolved
src/app/pages/sharing/smb/smb-form/smb-form.component.ts Outdated Show resolved Hide resolved
@AlexKarpov98
Copy link
Contributor Author

@undsoft - fixed

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.

No changes since my last review.

@codecov
Copy link

codecov bot commented Sep 16, 2022

Codecov Report

Merging #7074 (c817a5a) into master (fba3aba) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #7074      +/-   ##
==========================================
+ Coverage   41.15%   41.24%   +0.09%     
==========================================
  Files        1045     1049       +4     
  Lines       46070    46104      +34     
  Branches     6393     6404      +11     
==========================================
+ Hits        18958    19016      +58     
+ Misses      27112    27088      -24     
Impacted Files Coverage Δ
src/app/helptext/sharing/smb/smb.ts 100.00% <ø> (ø)
...p/pages/sharing/smb/smb-form/smb-form.component.ts 79.84% <ø> (-0.40%) ⬇️
...ix-forms/components/ix-input/ix-input.component.ts 98.80% <100.00%> (+0.05%) ⬆️
...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%) ⬇️
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%> (ø)
... and 30 more

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

@AlexKarpov98
Copy link
Contributor Author

@undsoft Please check it now :)

@undsoft undsoft self-requested a review September 17, 2022 17:38
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.

Same issues as during last review:

  1. Once I set Time Machine Quota there is no way for me to remove it.
  2. If I set Time Machine Quota, but then untick Time Machine checkbox, my expectation is that this removes quota when saved.

@AlexKarpov98
Copy link
Contributor Author

@undsoft
Screen Shot 2022-09-19 at 23 38 59
We need to set 0 manually once the value is empty (updated PR)

@undsoft undsoft self-requested a review September 20, 2022 07:46
@AlexKarpov98 AlexKarpov98 removed the request for review from RehanY147 September 20, 2022 07:56
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 correctly now.

@AlexKarpov98 AlexKarpov98 merged commit 9619440 into master Sep 20, 2022
@undsoft undsoft deleted the feature/NAS-117298-timemachine-quota branch October 3, 2022 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants