-
Notifications
You must be signed in to change notification settings - Fork 340
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
Refactoring code to refresh tokens #1325
base: master
Are you sure you want to change the base?
Conversation
It will be a lot of work, but if you can use the new data model that will be great! Example: |
We can, but for a simple fix it would too much for review IMO. Even the changes in this PR seems a bit too much, but still might be worth it for readability. Would the changes in PR looks too far from convention? |
@soumyadipDe Thanks for the PR. I need a bit more time to review closely since it changes the structure of the sync. It'd be amazing to add unit tests to ensure that things are stitched together properly, but I realize the original code didn't have it to begin with. Basically it'd be good to have some assurance that this works and some demonstration of the new behavior -- if unit tests are too much work, can you include either a log or screenshot showing that this works on your machine?
Nah, that is out of scope of this PR since the goal here is to fix a credential refresh problem. |
There's not much to show in logs as fix means there's no error. The end of it shows the time process had run for the whole process.
But this log was with this fix - https://github.com/lyft/cartography/pull/1324/files , not with this change with refactoring. |
Fixing #1323 while refactoring token management