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

fix(logs.v1): remove auth, action, hooks #2363

Merged
merged 4 commits into from
Jun 19, 2024
Merged

Conversation

bodinsamuel
Copy link
Collaborator

@bodinsamuel bodinsamuel commented Jun 18, 2024

Describe your changes

Contributes to https://linear.app/nango/issue/NAN-585/stop-writing-from-v1

  • Remove activities from Account, Auth, Action and Hooks
    Initially wanted less but turns out everything is super tied (surprising).

  • Temporarily allowed activityLogId to be string in the relevant places

@bodinsamuel bodinsamuel self-assigned this Jun 18, 2024
Copy link

linear bot commented Jun 18, 2024

logCtx: LogContext;
}): Promise<void> => {
await errorNotificationService.auth.create({
type: 'auth',
action: 'token_refresh',
connection_id: connection.id!,
activity_log_id: activityLogId,
activity_log_id: -1,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This will be removed soon, just want to avoid a db migration along with code change

@bodinsamuel bodinsamuel marked this pull request as ready for review June 19, 2024 13:19
@@ -169,7 +175,7 @@ export default class SyncRun {
this.writeToDb = config.writeToDb;
if (config.writeToDb) {
this.slackNotificationService = config.slackService;
this.activityLogId = config.activityLogId;
this.activityLogId = config.activityLogId as unknown as number;
Copy link
Member

Choose a reason for hiding this comment

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

This cast mixed with the one below that casts it to a string is confusing

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

true, it's only temporary during the transition but let me change that

Copy link
Member

@khaliqgant khaliqgant left a comment

Choose a reason for hiding this comment

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

Casting confusion question inline

@bodinsamuel bodinsamuel enabled auto-merge (squash) June 19, 2024 17:30
@bodinsamuel bodinsamuel merged commit 90fae84 into master Jun 19, 2024
19 checks passed
@bodinsamuel bodinsamuel deleted the fix/logs.v1-drop-more branch June 19, 2024 17:36
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