mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 15:28:34 +01:00
Merge pull request #1452 from iterative/analytics-transparency-improvements
Analytics transparency improvements
This commit is contained in:
@@ -3,6 +3,7 @@ neatlynx/__pycache__
|
||||
.idea
|
||||
cache
|
||||
*.pyc
|
||||
.env/
|
||||
|
||||
cache
|
||||
.dvc.conf.lock
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ from dvc.logger import logger
|
||||
|
||||
|
||||
class Analytics(object):
|
||||
URL = 'https://dddc07bh9f.execute-api.us-east-2.amazonaws.com/production'
|
||||
URL = 'https://analytics.dvc.org'
|
||||
TIMEOUT_POST = 5
|
||||
|
||||
USER_ID_FILE = 'user_id'
|
||||
|
||||
+1
-1
@@ -111,7 +111,7 @@ def parse_args(argv=None):
|
||||
action='store_true',
|
||||
default=False,
|
||||
help="Initiate dvc in directory that is "
|
||||
"not tracked by any scm tool(e.g. git).")
|
||||
"not tracked by any scm tool (e.g. git).")
|
||||
init_parser.add_argument(
|
||||
'-f',
|
||||
'--force',
|
||||
|
||||
@@ -1219,6 +1219,10 @@ class Project(object):
|
||||
import colorama
|
||||
|
||||
self.logger.info(
|
||||
"\n"
|
||||
"DVC has enabled anonymous aggregate usage analytics.\n"
|
||||
"Read the analytics documentation (and how to opt-out) here:\n"
|
||||
"{blue}https://dvc.org/doc/user-guide/analytics{nc}\n"
|
||||
"\n"
|
||||
"{yellow}What's next?{nc}\n"
|
||||
"{yellow}------------{nc}\n"
|
||||
|
||||
+1
-2
@@ -11,8 +11,7 @@ from dvc.utils import is_binary
|
||||
|
||||
|
||||
class Updater(object): # pragma: no cover
|
||||
URL = 'https://4ki8820rsf.execute-api.us-east-2.amazonaws.com/' \
|
||||
'prod/latest-version'
|
||||
URL = 'https://updater.dvc.org'
|
||||
UPDATER_FILE = 'updater'
|
||||
TIMEOUT = 24 * 60 * 60 # every day
|
||||
TIMEOUT_GET = 10
|
||||
|
||||
@@ -42,6 +42,9 @@ def _should_test_gcp():
|
||||
if os.getenv("DVC_TEST_GCP") == "true":
|
||||
return True
|
||||
|
||||
if not os.path.exists(TestDvc.GCP_CREDS_FILE):
|
||||
return False
|
||||
|
||||
creds = os.getenv("GOOGLE_APPLICATION_CREDENTIALS")
|
||||
if creds and os.getenv("GCP_CREDS"):
|
||||
if os.path.exists(creds):
|
||||
|
||||
Reference in New Issue
Block a user