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

ACA-4175 Show number of user's home folders during environment scan #6446

Merged
merged 3 commits into from Dec 11, 2020

Conversation

TomikaArome
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

What is the current behaviour? (You can also link to an open issue here)

The environment scan shows only number of activated and deactivated users.

What is the new behaviour?

As well as the above information, the environment scan also show the number of user's home folders.

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Thomas Hunter seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Member

@andrea-ligios andrea-ligios left a comment

Choose a reason for hiding this comment

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

LGTM!

lib/cli/scripts/scan-env.ts Outdated Show resolved Hide resolved
Copy link
Member

@andrea-ligios andrea-ligios left a comment

Choose a reason for hiding this comment

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

LGTM

async function getHomeFoldersCount(): Promise<number> {
try {
const nodesApi = new NodesApi(jsApiConnection);
const rootApiResult = await nodesApi.listNodeChildren('-root-');
Copy link
Contributor

Choose a reason for hiding this comment

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

are we sure that there is no way to pass a relative path such as
listNodeChildren('-root-', { 'relativePath': 'User Homes' });

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yes you're correct, I had missed that thanks. Updating now

Copy link
Contributor

Choose a reason for hiding this comment

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

can we please have the User Homes as a constant

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only saw this after committing. Updating again

Copy link
Contributor

@mauriziovitale mauriziovitale left a comment

Choose a reason for hiding this comment

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

check the comments

@codecov-io
Copy link

codecov-io commented Dec 10, 2020

Codecov Report

Merging #6446 (ed34ea0) into develop (cf54477) will increase coverage by 1.12%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #6446      +/-   ##
===========================================
+ Coverage    76.20%   77.32%   +1.12%     
===========================================
  Files          868      147     -721     
  Lines        19619     4163   -15456     
  Branches      3906      830    -3076     
===========================================
- Hits         14950     3219   -11731     
+ Misses        3474      668    -2806     
+ Partials      1195      276     -919     
Impacted Files Coverage Δ
lib/core/login/models/login-error.event.ts
.../core/context-menu/context-menu-overlay.service.ts
...tart-task/components/start-task-cloud.component.ts
...card-view-dateitem/card-view-dateitem.component.ts
...n/date-range-filter/date-range-filter.component.ts
lib/extensions/src/lib/services/rule.service.ts
.../process-services-cloud/src/lib/material.module.ts
...rm/services/content-cloud-node-selector.service.ts
lib/core/settings/host-settings.component.ts
...out/directives/sidenav-layout-content.directive.ts
... and 711 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cf54477...ed34ea0. Read the comment docs.

@TomikaArome TomikaArome merged commit b405da8 into develop Dec 11, 2020
@TomikaArome TomikaArome deleted the ACA-4175 branch December 11, 2020 15:32
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.

None yet

6 participants