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

refactor: improve logging #1088

Merged
merged 7 commits into from Jun 9, 2023
Merged

refactor: improve logging #1088

merged 7 commits into from Jun 9, 2023

Conversation

subotic
Copy link
Contributor

@subotic subotic commented Jun 8, 2023

resolves DEV-

@subotic subotic marked this pull request as ready for review June 8, 2023 15:58
private config: DspInstrumentationConfig = inject(DspInstrumentationToken);
private session = inject(SessionService);
constructor() {
this.buildTag$.pipe(first()).subscribe((tag) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where do you unsubscribe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

first does it automatically after the first value is received.

});
}
// if session is valid: setActiveUser
this.session.isSessionValid().subscribe((response: boolean) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where do you unsubscribe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nowhere. This is already existing code and out of scope for this round.

import { z } from 'zod';
import { inject } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { tap, map } from 'rxjs/operators';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where do you use "tap"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nowhere. will remove it.

private config: DspInstrumentationConfig = inject(DspInstrumentationToken);

constructor() {
this.buildTag$.pipe(first()).subscribe((tag) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where do you unsubscribe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

first()

Copy link
Collaborator

@Vijeinath Vijeinath left a comment

Choose a reason for hiding this comment

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

Small stuffs

@subotic
Copy link
Contributor Author

subotic commented Jun 9, 2023

Thanks for the review!

@subotic subotic merged commit 27111c2 into main Jun 9, 2023
11 checks passed
@subotic subotic deleted the wip/improve-logging-3 branch June 9, 2023 07:24
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

2 participants