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

feat: LaunchDarkly importer UI #2837

Merged
merged 7 commits into from
Oct 17, 2023
Merged

Conversation

novakzaballa
Copy link
Contributor

@novakzaballa novakzaballa commented Oct 6, 2023

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

  • Added a tab within the project settings that allows you to import a project from Launchdarkly
  • This feature is wrapped by the new "import_project" flag

How did you test this code?

  • Go to the Project settings section
  • Click the 'Import' tab
  • Set the LD Key and click the 'next' button
  • Select an LD project
  • A modal will open, click on the confirm button

@vercel
Copy link

vercel bot commented Oct 6, 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 Oct 17, 2023 1:59pm
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 17, 2023 1:59pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 17, 2023 1:59pm

@github-actions github-actions bot added the front-end Issue related to the React Front End Dashboard label Oct 6, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2023

Uffizzi Preview deployment-37923 was deleted.

@novakzaballa novakzaballa requested review from a team and khvn26 October 6, 2023 21:22
@novakzaballa novakzaballa linked an issue Oct 6, 2023 that may be closed by this pull request
@dabeeeenster dabeeeenster changed the title feat: LauncDarkly importer UI feat: LaunchDarkly importer UI Oct 9, 2023
@@ -19,7 +19,7 @@ module.exports = {
if (method !== 'get')
options.headers['Content-Type'] = 'application/json; charset=utf-8'

if (this.token) {
if (this.token && !isExternal) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is part of a different PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it was a common solution for this #2842 too, which was just merged into main

@@ -74,8 +74,8 @@ module.exports = {
return this._request('delete', url, data, headers)
},

get(url, data, headers) {
return this._request('get', url, data || null, headers)
get(url, data, headers, isExternal = false) {
Copy link
Member

@kyle-ssg kyle-ssg Oct 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I mentioned this in another PR, but we can just base this on if the url is Project.api in _request

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LaunchDarkly importer
3 participants