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

Implement Topic Assignment for Multiple Users (Seed Function) #168

Open
6 tasks
prasenjeet-symon opened this issue Oct 12, 2023 · 3 comments
Open
6 tasks
Assignees
Labels
beginner-friendly EddieHub:good-first-issue enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed server related to server

Comments

@prasenjeet-symon
Copy link
Owner

prasenjeet-symon commented Oct 12, 2023

Title: Implement Topic Assignment for Multiple Users (Seed Function)

Description:
This GitHub issue is dedicated to enhancing the topic assignment process for multiple users within the assignTopicsToUsers seed function located in seeder/utils.ts. The task involves automatically assigning topics to users, excluding the main user specified by their email. The selected topics are drawn from the application's topics list, and up to three topics are assigned to each user. This process is designed to diversify user interests and improve content recommendations.

Tasks:

  1. Refine User Topic Assignment Logic:

    • Refine the logic for assigning topics to users within the assignTopicsToUsers seed function, ensuring that it randomly selects topics from the application's topic list.
    • Set the limit to a maximum of three topics per user.
  2. Data Fetching:

    • Fetch all available topics from the application's database.
    • Implement a mechanism to exclude the main user (specified by their email) from topic assignment.
  3. Random Topic Selection:

    • Implement the topic selection logic within the assignTopicsToUsers seed function, which randomly selects topics from the available list.
  4. Parallel Assignment:

    • Use the Promise.all() method within the assignTopicsToUsers seed function to perform topic assignments in parallel for multiple users.

Acceptance Criteria:

  • Users (excluding the main user) have topics assigned to their profiles within the assignTopicsToUsers seed function.
  • Up to three topics are assigned to each user within the assignTopicsToUsers seed function, enhancing content diversity.
  • The topic assignment process within the assignTopicsToUsers seed function is designed to be efficient and scalable.
  • Topics are randomly selected from the application's list within the assignTopicsToUsers seed function, ensuring diverse user interests.

Additional Information:

  • Diversifying user interests through topic assignment in the assignTopicsToUsers seed function improves content recommendation accuracy.
  • Implementing parallel processing within the assignTopicsToUsers seed function enhances the efficiency of the topic assignment process.
  • Rigorous testing is essential to ensure the reliability of the topic assignment logic within the assignTopicsToUsers seed function located in seeder/utils.ts.
@prasenjeet-symon prasenjeet-symon added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers server related to server EddieHub:good-first-issue beginner-friendly hacktoberfest labels Oct 12, 2023
@prasenjeet-symon prasenjeet-symon changed the title Implement Topic Assignment for Multiple Users Implement Topic Assignment for Multiple Users (Seed Function) Oct 12, 2023
@VishalMyla
Copy link

please assign this issue to me

@prasenjeet-symon
Copy link
Owner Author

@VishalMyla Assigned to you

@prasenjeet-symon
Copy link
Owner Author

@VishalMyla Hello, if you need any help know that you can ask us anytime on Discord. Or simply comment here. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner-friendly EddieHub:good-first-issue enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed server related to server
Projects
None yet
Development

No branches or pull requests

2 participants