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

Fixes an issue in which reporting configuration file was not being created if its parent directory didn't exist. #1058

Merged

Conversation

zomglings
Copy link
Contributor

Now, we create the parent directory using os.makedirs in a manner similar to the write_token method in hub/client/utils.py.

Previously, if the `~/.activeloop` directory did not exist, the
reporting consent configuration file was not being saved and so consent
checks were all coming through as False.

Fixed this problem by creating the directory containing the consent file
if it does not exist. This mirrors how tokens are stored when a user
signs in with `activeloop login`.
`save_reporting_config` now returns the reporting configuration object
it saved.
@zomglings
Copy link
Contributor Author

Tested this in Sagemaker with an unauthenticated activeloop installation, which is where we first picked up the issue.

Copy link
Contributor

@verbose-void verbose-void left a comment

Choose a reason for hiding this comment

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

denying for right now until version incrementing is decided

@@ -17,7 +17,7 @@

__all__ = ["Dataset", "Tensor", "load", "__version__"]

__version__ = "2.0.0"
__version__ = "2.0.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure we want to increment the version on this one, do we? @istranic

Copy link
Contributor

Choose a reason for hiding this comment

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

ok we're good, 2.0.1 is the correct version

@tatevikh tatevikh removed the request for review from farizrahman4u July 18, 2021 03:12
@tatevikh tatevikh merged commit 1e594c1 into activeloopai:main Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants