-
Notifications
You must be signed in to change notification settings - Fork 468
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
Conversation
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, |
There was a problem hiding this comment.
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
@@ -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; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this 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
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