-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PM-13455] Wire up results from RiskInsightsReportService (#12206)
* Risk insights aggregation in a new service. Initial PR. * Wire up results from RiskInsightsReportService * Ignoring all non-login items and refactoring into a method * Cleaning up the documentation a little * logic for generating the report summary * application summary to list at risk applications not passwords * Adding more documentation and moving types to it's own file * Awaiting the raw data report and adding the start of the test file * Extend access-intelligence.module to provide needed services * Register access-intelligence.module with bit-web AppModule * Use provided RiskInsightsService instead of new'ing one in the component * Removing the injectable attribute from RiskInsightsReportService * Fix tests * Adding more test cases * Removing unnecessary file * Test cases update * Fixing memeber details test to have new member * Fixing password health tests * Moving to observables * removing commented code * commented code * Switching from ternary to if/else * nullable types * one more nullable type * Adding the fixme for strict types * moving the fixme * No need to access the password use map and switching to the observable * PM-13455 fixes to unit tests --------- Co-authored-by: Tom <[email protected]> Co-authored-by: Daniel James Smith <[email protected]> Co-authored-by: Tom <[email protected]> Co-authored-by: voommen-livefront <[email protected]>
- Loading branch information
1 parent
12b698b
commit 12eb77f
Showing
7 changed files
with
64 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
bitwarden_license/bit-web/src/app/tools/access-intelligence/access-intelligence.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
import { NgModule } from "@angular/core"; | ||
|
||
import { | ||
MemberCipherDetailsApiService, | ||
RiskInsightsReportService, | ||
} from "@bitwarden/bit-common/tools/reports/risk-insights/services"; | ||
import { ApiService } from "@bitwarden/common/abstractions/api.service"; | ||
import { AuditService } from "@bitwarden/common/abstractions/audit.service"; | ||
import { PasswordStrengthServiceAbstraction } from "@bitwarden/common/tools/password-strength/password-strength.service.abstraction"; | ||
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service"; | ||
|
||
import { AccessIntelligenceRoutingModule } from "./access-intelligence-routing.module"; | ||
import { RiskInsightsComponent } from "./risk-insights.component"; | ||
|
||
@NgModule({ | ||
imports: [RiskInsightsComponent, AccessIntelligenceRoutingModule], | ||
providers: [ | ||
{ | ||
provide: MemberCipherDetailsApiService, | ||
deps: [ApiService], | ||
}, | ||
{ | ||
provide: RiskInsightsReportService, | ||
deps: [ | ||
PasswordStrengthServiceAbstraction, | ||
AuditService, | ||
CipherService, | ||
MemberCipherDetailsApiService, | ||
], | ||
}, | ||
], | ||
}) | ||
export class AccessIntelligenceModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters