Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 1010cbe

Browse files
authored
Merge branch 'main' into nov_28_activate_api
2 parents 1175b15 + 3813d1b commit 1010cbe

File tree

78 files changed

+1276
-1632
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1276
-1632
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24.11.1
1+
24.12.2

api/internal/coverage/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_object(self) -> ReportPaths:
4343
component_paths = []
4444
if components:
4545
all_components = components_service.commit_components(commit, self.owner)
46-
filtered_components = components_service.filter_components_by_name(
46+
filtered_components = components_service.filter_components_by_name_or_id(
4747
all_components, components
4848
)
4949

api/internal/owner/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
TEAM_PLAN_MAX_USERS,
1313
TEAM_PLAN_REPRESENTATIONS,
1414
)
15+
from shared.plan.service import PlanService
1516

1617
from codecov_auth.models import Owner
17-
from plan.service import PlanService
1818
from services.billing import BillingService
1919
from services.sentry import send_user_webhook as send_sentry_webhook
2020

billing/tests/test_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def test_customer_subscription_created_sets_plan_info(self):
571571
assert self.owner.plan == plan_name
572572

573573
@freeze_time("2023-06-19")
574-
@patch("plan.service.PlanService.expire_trial_when_upgrading")
574+
@patch("shared.plan.service.PlanService.expire_trial_when_upgrading")
575575
@patch("services.billing.stripe.PaymentMethod.attach")
576576
@patch("services.billing.stripe.Customer.modify")
577577
def test_customer_subscription_created_can_trigger_trial_expiration(

billing/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
from rest_framework.permissions import AllowAny
1111
from rest_framework.response import Response
1212
from rest_framework.views import APIView
13+
from shared.plan.service import PlanService
1314

1415
from codecov_auth.models import Owner
15-
from plan.service import PlanService
1616
from services.task.task import TaskService
1717

1818
from .constants import StripeHTTPHeaders, StripeWebhookEvents

ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ services:
3535
redis_url: redis://redis:@localhost:6379/
3636
minio:
3737
hash_key: testixik8qdauiab1yiffydimvi72ekq # never change this
38-
periodic_callback_ms: false
3938
access_key_id: codecov-default-key
4039
secret_access_key: codecov-default-secret
4140
verify_ssl: false

codecov_auth/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
StripeBilling,
2121
)
2222
from shared.plan.constants import USER_PLAN_REPRESENTATIONS
23+
from shared.plan.service import PlanService
2324

2425
from codecov.admin import AdminMixin
2526
from codecov.commands.exceptions import ValidationError
2627
from codecov_auth.helpers import History
2728
from codecov_auth.models import OrganizationLevelToken, Owner, SentryUser, Session, User
2829
from codecov_auth.services.org_level_token_service import OrgLevelTokenService
29-
from plan.service import PlanService
3030
from services.task import TaskService
3131
from utils.services import get_short_service_name
3232

codecov_auth/commands/owner/interactors/cancel_trial.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
from shared.plan.service import PlanService
2+
13
from codecov.commands.base import BaseInteractor
24
from codecov.commands.exceptions import Unauthorized, ValidationError
35
from codecov.db import sync_to_async
46
from codecov_auth.helpers import current_user_part_of_org
57
from codecov_auth.models import Owner
6-
from plan.service import PlanService
78

89

910
class CancelTrialInteractor(BaseInteractor):

codecov_auth/commands/owner/interactors/get_uploads_number_per_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
from shared.plan.service import PlanService
12
from shared.upload.utils import query_monthly_coverage_measurements
23

34
from codecov.commands.base import BaseInteractor
45
from codecov.db import sync_to_async
56
from codecov_auth.models import Owner
6-
from plan.service import PlanService
77
from services.redis_configuration import get_redis_connection
88

99
redis = get_redis_connection()

codecov_auth/commands/owner/interactors/start_trial.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
from shared.plan.service import PlanService
2+
13
from codecov.commands.base import BaseInteractor
24
from codecov.commands.exceptions import Unauthorized, ValidationError
35
from codecov.db import sync_to_async
46
from codecov_auth.helpers import current_user_part_of_org
57
from codecov_auth.models import Owner
6-
from plan.service import PlanService
78

89

910
class StartTrialInteractor(BaseInteractor):

0 commit comments

Comments
 (0)