Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit af36eb1. Configure here.
keelerm84
approved these changes
Apr 27, 2026
kinyoklion
approved these changes
Apr 27, 2026
nieblara
approved these changes
Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Requirements
Related issues
Provide links to any issues in this repository or elsewhere relating to this pull request.
Describe the solution you've provided
We are preparing the dev server to support the FDv2 protocol. The V2 protocol assigns payload IDs and versions to the environment payloads, since the SDK is now stateful.
In this PR we are adding foundational support to assign a payload version to the project table that will be bumped on every upsert and deletes.
Describe alternatives you've considered
Provide a clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context about the pull request here.
Note
Medium Risk
Introduces a new persisted
payload_versionfield and increments it on project syncs and override mutations, which changes database schema and write paths. Risk is mainly around SQLite migration/compatibility and ensuring all payload-changing operations correctly bump the version.Overview
Adds payload version tracking to dev-server projects by persisting
payload_versionin theprojectsSQLite table (defaulting to1) and migrating existing databases viaALTER TABLE.Introduces
Store.IncrementProjectPayloadVersion(implemented insqlite.go) and wires it into project updates (UpdateProject) and override upsert/deactivation (UpsertOverride/DeleteOverride) so version increments on payload-affecting changes; constructors/import paths initialize new projects withPayloadVersion: 1, and tests/mocks are updated accordingly.Reviewed by Cursor Bugbot for commit e0722c6. Bugbot is set up for automated code reviews on this repo. Configure here.
Related Jira issue: FD-5510: Implement poll server side endpoint handling in Launchdarkly dev server