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: Import export environment flags #3161

Merged
merged 32 commits into from
Feb 13, 2024

Conversation

kyle-ssg
Copy link
Member

@kyle-ssg kyle-ssg commented Dec 13, 2023

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

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • 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

  • Allows a user to export an environment to a JSON file
  • Allows a user to import an export to a project, specifying the merge strategy as either skip or overwrite destructive.
  • Both the import and export allow you to preview changes
  • Tag filtering now lets you choose between a union and intersection
image image image image

How did you test this code?

  • Exported multiple environments flags
  • Imported using both strategies, alternating between new projects and environments

Copy link

vercel bot commented Dec 13, 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 Feb 7, 2024 10:24am
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2024 10:24am
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2024 10:24am

@github-actions github-actions bot added the front-end Issue related to the React Front End Dashboard label Dec 13, 2023
@kyle-ssg kyle-ssg marked this pull request as draft December 13, 2023 17:55
@kyle-ssg kyle-ssg changed the title Feat/import export environment flags feat: import export environment flags Dec 13, 2023
@kyle-ssg kyle-ssg changed the title feat: import export environment flags feat: Import export environment flags Dec 13, 2023
Copy link
Contributor

github-actions bot commented Dec 13, 2023

Uffizzi Preview deployment-45127 was deleted.

# Conflicts:
#	frontend/common/types/requests.ts
#	frontend/common/types/responses.ts
#	frontend/web/components/ButterBar.js
#	frontend/web/components/pages/ImportPage.tsx
@matthewelwell
Copy link
Contributor

matthewelwell commented Feb 6, 2024

@kyle-ssg I'm testing this on 2 separate projects. One has a single feature (the exporting project), the other has no features (the import project). I'm not sure if the preview was intended to handle this scenario where there are new features being created, but it's quite confusing that it's not.

image

The import file:

[
  {
    "name": "test_feature",
    "default_enabled": false,
    "is_server_key_only": false,
    "initial_value": null,
    "value": null,
    "type": "unicode",
    "enabled": false,
    "multivariate": []
  }
]

Note that continuing with the import worked correctly and the feedback is definitely better.

# Conflicts:
#	frontend/common/types/responses.ts
#	frontend/package-lock.json
#	frontend/package.json
@kyle-ssg
Copy link
Member Author

kyle-ssg commented Feb 7, 2024

@matthewelwell correct it should be showing new flags, it attempts to filter them whilst filtering existing. This should now be fixed

@kyle-ssg kyle-ssg added this pull request to the merge queue Feb 13, 2024
Merged via the queue into main with commit 7b8c8dc Feb 13, 2024
19 checks passed
@kyle-ssg kyle-ssg deleted the feat/import-export-environment-flags branch February 13, 2024 13:42
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.

Create the feature import export frontend
4 participants