Skip to content

chore: suggested-log-tab-changes #935

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

Merged
merged 2 commits into from
Jun 16, 2021
Merged

Conversation

aaron-steinfeld
Copy link
Contributor

No description provided.

public readonly traceDetails$: Observable<TraceDetails>;

public constructor(
private readonly subscriptionLifecycle: SubscriptionLifecycle,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was one problem - subscription lifecycle should be provided in the component whenever used, since it's meant to be be tied to the component lifecycle. With out an explicit provider here, we're not cleaning this up which is why it gets undefined in it when we navigate away.


public onDashboardReady(dashboard: Dashboard): void {
this.subscriptionLifecycle.add(
this.traceDetails$.subscribe(traceDetails => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is just a really ugly pattern that we have a better alternative for now, although we don't use it enough


export const traceDetailDashboard: DashboardDefaultConfiguration = {
location: 'TRACE_DETAIL',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this page was moved but the dashboard wasn't - fixed


@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
template: `
<ht-application-aware-dashboard
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is its own page with a url, so should be navigable dashboard

@codecov
Copy link

codecov bot commented Jun 16, 2021

Codecov Report

Merging #935 (4625133) into log-tab (e055fb4) will increase coverage by 0.07%.
The diff coverage is 66.66%.

Impacted file tree graph

@@             Coverage Diff             @@
##           log-tab     #935      +/-   ##
===========================================
+ Coverage    85.13%   85.21%   +0.07%     
===========================================
  Files          811      812       +1     
  Lines        16715    16703      -12     
  Branches      2099     2099              
===========================================
+ Hits         14230    14233       +3     
+ Misses        2453     2438      -15     
  Partials        32       32              
Impacted Files Coverage Δ
.../trace-detail/sequence/trace-sequence.component.ts 62.50% <50.00%> (+29.16%) ⬆️
...ce-detail/sequence/api-trace-sequence.component.ts 62.50% <50.00%> (+35.83%) ⬆️
.../trace-detail/sequence/trace-sequence.dashboard.ts 100.00% <100.00%> (ø)
...src/pages/trace-detail/trace-detail.page.module.ts 100.00% <100.00%> (ø)
projects/distributed-tracing/src/public-api.ts 100.00% <100.00%> (ø)
...s/api-trace-detail/api-trace-detail.page.module.ts 100.00% <100.00%> (ø)
...ce-detail/sequence/api-trace-sequence.dashboard.ts 100.00% <100.00%> (ø)

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 e055fb4...4625133. Read the comment docs.

@github-actions

This comment has been minimized.

@github-actions
Copy link

Unit Test Results

    4 files  ±0  259 suites  ±0   15m 33s ⏱️ + 1m 6s
936 tests ±0  936 ✔️ ±0  0 💤 ±0  0 ❌ ±0 
942 runs  ±0  942 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 4625133. ± Comparison against base commit e055fb4.

@itssharmasandeep itssharmasandeep marked this pull request as ready for review June 16, 2021 12:53
@itssharmasandeep itssharmasandeep requested a review from a team as a code owner June 16, 2021 12:53
@itssharmasandeep itssharmasandeep merged commit ac2fec0 into log-tab Jun 16, 2021
@itssharmasandeep itssharmasandeep deleted the suggested-log-tab-changes branch June 16, 2021 12:54
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.

2 participants