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: Failure to import LD project other than default #2979

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

khvn26
Copy link
Member

@khvn26 khvn26 commented Nov 15, 2023

Closes #2978.

  • Fix the bug
  • Better wording

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

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.

@khvn26 khvn26 requested review from a team and novakzaballa and removed request for a team November 15, 2023 20:57
Copy link

vercel bot commented Nov 15, 2023

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

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2023 9:06pm
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2023 9:06pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2023 9:06pm

Copy link
Contributor

github-actions bot commented Nov 15, 2023

Uffizzi Preview deployment-40836 was deleted.

createLaunchDarklyProjectImport({
body: { project_key: 'default', token: LDKey },
body: { project_key: key, token: LDKey },
Copy link
Contributor

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 🤔 ?

Copy link
Member Author

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.

Copy link
Contributor

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!

Copy link
Contributor

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)

Copy link
Member Author

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.

Copy link
Contributor

@zachaysan zachaysan left a 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.

@khvn26 khvn26 added this pull request to the merge queue Nov 15, 2023
Merged via the queue into main with commit e0d6e8a Nov 15, 2023
@khvn26 khvn26 deleted the fix/ld-hardcoded-default branch November 15, 2023 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation updates front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure to import LD project other than default
3 participants