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: persist last opened env per collection #2238

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

leoferreiralima
Copy link

@leoferreiralima leoferreiralima commented May 4, 2024

fixes #112

Description

This PR add the feature of save the last env that was opened for a collection.

persist-last-env

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

@@ -101,7 +101,7 @@ const addEnvironmentFile = async (win, pathname, collectionUid, collectionPath)

file.data = bruToEnvJson(bruContent);
file.data.name = basename.substring(0, basename.length - 4);
file.data.uid = getRequestUid(pathname);
file.data.uid = generateUidBasedOnHash(pathname);
Copy link
Author

Choose a reason for hiding this comment

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

this is needed! otherwhise the env wil have a different uid every startup.
The env files dont are moved without move the collection so the problem solved with requestUid dont apply for envs

Copy link
Contributor

@lizziemac lizziemac left a comment

Choose a reason for hiding this comment

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

Looks great to me :D

@leoferreiralima
Copy link
Author

Looks great to me :D

Thanks!

@busy-panda
Copy link
Contributor

It's duplicated with the PR already waiting to be merged
#1971

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Persist Last Selected Environment upon reopening app
3 participants