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

feat: add personalized following k3l algo #3507

Merged
merged 1 commit into from
Aug 11, 2023
Merged

feat: add personalized following k3l algo #3507

merged 1 commit into from
Aug 11, 2023

Conversation

bigint
Copy link
Member

@bigint bigint commented Aug 11, 2023

What does this PR do?

🤖 Generated by Copilot at db12a09

Added support for personal feed data from the k3l provider and increased the test timeout option for all the packages. The getPublicationIds.ts handler and the k3lFeed.ts function were modified to accept and pass the profile query parameter. The k3lGlobalFeed.ts and k3lPersonalFeed.ts functions were added to fetch the feed data from the k3l API. The testTimeout option was added to the vitest.config.ts files in each package to prevent test failures due to slow data fetching.

Related issues

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Enhancement (non-breaking small changes to existing functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Explanation of the changes

🤖 Generated by Copilot at db12a09

  • Add testTimeout option to vitest.config.ts files in all packages to prevent test failures due to slow data fetching (link, link, link, link, link, link, link, link)
  • Add profile variable to getPublicationIds.ts file to get profile query parameter from request object (link)
  • Pass profile variable to k3lFeed function call to enable personal feed fetching (link)
  • Modify k3lFeed function to import and call k3lGlobalFeed or k3lPersonalFeed functions depending on profile argument (link)
  • Add k3lGlobalFeed.ts and k3lPersonalFeed.ts files to providers/k3l/algorithms folder to handle global and personal feed data fetching from k3l API (link, link)
  • Add test case to getPublicationIds.spec.ts file to check personal feed data for k3l provider, following strategy and yoginth.lens profile (link)

Emoji

🕑🧪📰

@vercel
Copy link

vercel bot commented Aug 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
prerender ✅ Ready (Inspect) Visit Preview Aug 11, 2023 2:44pm
web ✅ Ready (Inspect) Visit Preview Aug 11, 2023 2:44pm

@bigint bigint merged commit 7e80f37 into main Aug 11, 2023
5 of 8 checks passed
@bigint bigint deleted the personalized-algo branch August 11, 2023 14:41
@vercel vercel bot temporarily deployed to Preview – prerender August 11, 2023 14:42 Inactive
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.

None yet

1 participant