-
Notifications
You must be signed in to change notification settings - Fork 4
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
Update configurations after clean #68
Conversation
Could we do a similar reset method for the persistent sessions? Something that just runs |
In However, we don't need to read the name from the session, and we could remove the call to _load_active_session. So we could create a reset with something along these lines:
|
What's the behavior of |
It does not seem to throw any errors even if that directory has been deleted. It just continues silently. |
This is so that we do not create a new directory when calling clean
e2c84a1
to
021fa2d
Compare
PersistentConfigurationManager
will read the persistent files only once for each instance of the program. This is not usually a problem when using the CLI. However, if a user were to callclean
through the API,PersistentConfigurationManager
's cached configurations would not be updated. This means that subsequent calls using a CLI runner toconfigurations list
, or any API functions would not read the change to the persistent configurations.Note that this is not a problem in the other functions that alter the persistent files, since they change
PersistentConfigurationManager
's cached configurations accordingly.To resolve this,
clean
now makesPersistentConfigurationManager
re-read the persistent files after deleting them. Additionally, the active session is now unset.