Skip to content

Commit

Permalink
Remove configuration storage classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Sep 22, 2023
1 parent 778ed79 commit b3d16f0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1,005 deletions.
9 changes: 1 addition & 8 deletions api/s3_analytics_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,17 @@
from core.config import CannotLoadConfiguration
from core.local_analytics_provider import LocalAnalyticsProvider
from core.model import Library, LicensePool, MediaTypes
from core.model.configuration import ConfigurationGrouping
from core.service.container import Services
from core.service.storage.s3 import S3Service


class S3AnalyticsProviderConfiguration(ConfigurationGrouping):
"""Contains configuration settings of the S3 Analytics provider."""


class S3AnalyticsProvider(LocalAnalyticsProvider):
"""Analytics provider storing data in a S3 bucket."""

NAME = _("S3 Analytics")
DESCRIPTION = _("Store analytics events in a S3 bucket.")

SETTINGS = (
LocalAnalyticsProvider.SETTINGS + S3AnalyticsProviderConfiguration.to_settings()
)
SETTINGS = LocalAnalyticsProvider.SETTINGS

def __init__(
self,
Expand Down
Loading

0 comments on commit b3d16f0

Please sign in to comment.