diff --git a/pyproject.toml b/pyproject.toml index 900eb5803..f99af750c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -83,4 +83,4 @@ dev-dependencies = [ [tool.uv.sources] timestring = { git = "https://github.com/codecov/timestring", rev = "d37ceacc5954dff3b5bd2f887936a98a668dda42" } test-results-parser = { git = "https://github.com/codecov/test-results-parser", rev = "190bbc8a911099749928e13d5fe57f6027ca1e74" } -shared = { git = "https://github.com/codecov/shared", rev = "284b92c74f0bc7ca5c4f6f139f3b26fe64fe9c1a" } +shared = { git = "https://github.com/codecov/shared", rev = "e30c1c7e3ff9c4527986d5bb67ae628dc1a18abb" } diff --git a/services/test_analytics/utils.py b/services/test_analytics/utils.py index aae5f98bc..03b49753d 100644 --- a/services/test_analytics/utils.py +++ b/services/test_analytics/utils.py @@ -4,10 +4,7 @@ def should_use_timeseries(repoid: int) -> bool: timeseries_enabled = get_config("setup", "timeseries", "enabled", default=False) - test_analytics_database_enabled = get_config( - "setup", "test_analytics_database", "enabled", default=False - ) - if timeseries_enabled and test_analytics_database_enabled: + if timeseries_enabled: return True return False diff --git a/tasks/new_user_activated.py b/tasks/new_user_activated.py index 03b0f6f63..02eb427d6 100644 --- a/tasks/new_user_activated.py +++ b/tasks/new_user_activated.py @@ -70,10 +70,10 @@ def run_impl(self, db_session, org_ownerid, user_ownerid, *args, **kwargs): ) return { - "notifies_scheduled": bool(len(pulls_notified)), + "notifies_scheduled": bool(pulls_notified), "pulls_notified": pulls_notified, "reason": None - if len(pulls_notified) + if pulls_notified else "no pulls/pull notifications met criteria", }