Skip to content

Instantly share code, notes, and snippets.

@rssnyder
Last active November 5, 2024 21:47
Show Gist options
  • Save rssnyder/47e945a46b1721fb8164edd0971a585f to your computer and use it in GitHub Desktop.
Save rssnyder/47e945a46b1721fb8164edd0971a585f to your computer and use it in GitHub Desktop.

Process for migrating your LD project to HRNS

  1. For each LD project:

    a. Make an API call to get flag definitions (be sure to increase the limit if you have over 100 flags):

     i. Be sure to use the summary=0 parameter
    
     ii. API Documented here https://apidocs.launchdarkly.com/tag/Feature-flags/#operation/getFeatureFlags
     
     iii. https://app.launchdarkly.com/api/v2/flags/{projectKey}?summary=0&limit=100
    

    b. Make an API call for each environment to get segment definitions:

     i. Be sure to use the summary=0 parameter
    
     ii. API Documented here https://apidocs.launchdarkly.com/tag/Segments#operation/getSegments
     
     iii. https://app.launchdarkly.com/api/v2/segments/{projectKey}/{environmentKey}?summary=0
    

    c. Each API call made above (x1 for the flag definitions, and x1 for each environment in the project) provide the HRNS project where this LD project should be migrated to, along with the JSON payloads (output) from the above API calls, to HRNS

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