Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topic landing pools sql #2110

Open
wants to merge 26 commits into
base: topic-landing-pools
Choose a base branch
from

Conversation

nsantacruz
Copy link
Contributor

@nsantacruz nsantacruz commented Nov 12, 2024

Description

Introduces the TopicPoolLink model, the first time we're using Django models in the system.

  • TopicPoolLink Model: Stores relationships between topics and pools, with pool and topic_slug fields.
  • Utility Methods for TopicPoolLink: Added methods to retrieve random topic slugs by pool and fetch pools by topic slug.
  • Enum-Based Pool Management: Introduced PoolType Enum for defining pool types (TEXTUAL, SHEETS, PROMOTED).
  • Settings Update: Registered admin_tools in INSTALLED_APPS.

Also refactors get_random_topic and related functions to utilize TopicPoolLink, as a proof-of-concept for TopicPoolLink IRL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant