Skip to content

--sync-once on dev server still calls Launch Darkly #632

Description

@ajworkos

Is this a support request?

This is arguably not a bug and a feature instead, please update the status appropriately.

I was under the impression that when the --sync-once flag is present, there would be no communication with launch darkly.

In the original PR, however, CreateProject is still called when --sync-once is present, regardless of if there's a db file present or not. CreateProject will always call refreshExternalState here.

I'm curious if the original intent of --sync-once was to prevent any communication with launch darkly so that I could commit a DB file to source and have that be the source of truth to avoid communicating with LD in CI.

Describe the bug
Calling --sync-once when starting the dev server when a DB file is present still calls launch darkly

To reproduce
Add --sync-once when starting the dev server with a valid DB file.

Expected behavior
I would expect launch darkly APIs not to be called

Logs
If applicable, add any log output related to your problem.

CLI version
Latest

OS/platform
For instance, Ubuntu 16.04, Windows 10, or macOS 14.4.

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions