-
Notifications
You must be signed in to change notification settings - Fork 415
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: Failure to import LD project other than default
#2979
Conversation
- Fix the bug - Better wording
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Uffizzi Preview |
createLaunchDarklyProjectImport({ | ||
body: { project_key: 'default', token: LDKey }, | ||
body: { project_key: key, token: LDKey }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the difference between a project key and a project id 🤔 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
project_id
is Flagsmith's project ID. project_key
is LD's project key.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naming could be better here!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(but that's unrelated to this PR I guess)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I second that, but wanted a minimal diff for this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I second Matt's question but the code looks good to me.
Closes #2978.
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingChanges
This uses the project key retrieved from LD api rather than the hardcoded
default
when creating an import request.How did you test this code?
npm run dev
locally.