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: last seen cherrypick #5717

Merged
merged 2 commits into from
Dec 21, 2023
Merged

fix: last seen cherrypick #5717

merged 2 commits into from
Dec 21, 2023

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Dec 21, 2023

About the changes

Cherry picking last seen at fixes

Important files

Discussion points

Copy link

vercel bot commented Dec 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ❌ Failed (Inspect) Dec 21, 2023 0:22am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Dec 21, 2023 0:22am

@@ -399,8 +399,11 @@ class FeatureStrategiesStore implements IFeatureStrategiesStore {
}

if (
acc.lastSeenAt === undefined ||
new Date(r.env_last_seen_at) > new Date(acc.lastSeenAt)
acc.lastSeenAt == null ||
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 required as new Date(undefined) doesn't work correctly as new Date(null)

Copy link
Member

Choose a reason for hiding this comment

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

But would acc.lastSeenAt now be undefined and not null because of the removal on this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, but the line I removed was always breaking the current acc state

@kwasniew kwasniew merged commit 50a32d5 into 5.7 Dec 21, 2023
6 of 7 checks passed
@kwasniew kwasniew deleted the last-seen-root-level-fix branch December 21, 2023 13:14
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