Skip to content

Commit

Permalink
Removed user activity component (#8190)
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink authored Oct 4, 2024
2 parents 1d0cb1b + ab520da commit 30db0a3
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 1,136 deletions.
21 changes: 0 additions & 21 deletions src/tribler/core/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from ipv8.loader import CommunityLauncher, after, kwargs, overlay, precondition, set_in_session, walk_strategy
from ipv8.overlay import Overlay, SettingsClass
from ipv8.peerdiscovery.discovery import DiscoveryStrategy, RandomWalk
from ipv8.taskmanager import TaskManager

if TYPE_CHECKING:
from ipv8.bootstrapping.bootstrapper_interface import Bootstrapper
Expand Down Expand Up @@ -321,26 +320,6 @@ def finalize(self, ipv8: IPv8, session: Session, community: Community) -> None:
session.rest_manager.get_endpoint("/api/ipv8").endpoints["/tunnel"].tunnels = community


@after("ContentDiscoveryComponent", "TorrentCheckerComponent")
@precondition('session.config.get("user_activity/enabled")')
@overlay("tribler.core.user_activity.community", "UserActivityCommunity")
class UserActivityComponent(BaseLauncher):
"""
Launch instructions for the user activity community.
"""

def get_kwargs(self, session: Session) -> dict:
"""
Create and forward the rendezvous database for the Community.
"""
from tribler.core.user_activity.manager import UserActivityManager

out = super().get_kwargs(session)
max_query_history = session.config.get("user_activity/max_query_history")
out["manager"] = UserActivityManager(TaskManager(), session, max_query_history)
return out


@precondition('session.config.get("versioning/enabled")')
class VersioningComponent(ComponentLauncher):
"""
Expand Down
217 changes: 0 additions & 217 deletions src/tribler/core/database/layers/user_activity.py

This file was deleted.

2 changes: 0 additions & 2 deletions src/tribler/core/database/tribler_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from tribler.core.database.layers.health import HealthDataAccessLayer
from tribler.core.database.layers.knowledge import KnowledgeDataAccessLayer
from tribler.core.database.layers.user_activity import UserActivityLayer

if TYPE_CHECKING:
import dataclasses
Expand Down Expand Up @@ -52,7 +51,6 @@ def __init__(self, filename: str | None = None, *, create_tables: bool = True, *

self.knowledge = KnowledgeDataAccessLayer(self.instance)
self.health = HealthDataAccessLayer(self.knowledge)
self.user_activity = UserActivityLayer(self.instance)

self.Misc = self.define_binding(self.instance)

Expand Down
Empty file.
95 changes: 0 additions & 95 deletions src/tribler/core/user_activity/community.py

This file was deleted.

Loading

0 comments on commit 30db0a3

Please sign in to comment.