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: remove archived features from delta #9088

Merged
merged 1 commit into from
Jan 13, 2025
Merged

fix: remove archived features from delta #9088

merged 1 commit into from
Jan 13, 2025

Conversation

sjaanus
Copy link
Contributor

@sjaanus sjaanus commented Jan 13, 2025

Weird thing is that I could not reproduce it locally, but I have a theory to fix our delta mismatch.

Revisions are added to the delta every second.

This means that in a single revision, you can disable an event, remove a dependency, and archive it simultaneously. These actions are usually performed together since archiving an event will inherently disable it, remove its dependencies, and so on.

Currently, we observe these events happening within the same revision. However, since we were checking .updated last, the event was always removed from the removedMap.

Now, by checking .removed last, the archive action will properly propagate to the revision.

Copy link

vercel bot commented Jan 13, 2025

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

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Jan 13, 2025 0:28am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Jan 13, 2025 0:28am

Copy link
Contributor

@sjaanus, core features have been modified in this pull request. Please review carefully!

Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

@sjaanus sjaanus merged commit 86bbe62 into main Jan 13, 2025
10 checks passed
@sjaanus sjaanus deleted the remove-archived-ff branch January 13, 2025 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant