Skip to content

Trending hashtags v2 #2150

Ben requested to merge feat/trending-tags-v2-2150 into master

Ticket(s) / Related Merge Requests

front!1757 (merged)

Summary of Changes

Change to the trending hashtags algorithm we're trialing, excluding the previous days tags from search to make things more varied.

Testing Considerations

Difficult to test outside of staging as this is designed to work in a production env with a healthy flow of incoming tags. Suggest we QA on staging.

Sandbox Testing

  1. Make a bunch of posts with hashtags #hashtag1, #hashtag2...
  2. Visit https://feat-trending-tags-v2-2150.minds.io/discovery/tags/trending - to know if experiment is active, look for the trending_tags_v2 param on the call to the tags endpoint e.g. /api/v3/discovery/tags?trending_tags_v2=true
  3. Results are cached once the first request is made for 10 minutes, so things will not update when you add a tag and visit that page unless you wait 10 minutes. To delete the value from the cache so new tags appear
kubectl exec -it redis-master-0 redis-cli -n caching-new
DEL hashtags:trending:daily

On reload, you should see new tags there.

The difficulty in testing is that the previous days tags should be excluded, so unless tested over 2 days thing will be hard to check.

Note cardinality is another factor that makes testing difficult - users need to be unique for their tags to count.

Regression Scope

Affects our trending hashtag logic - if something isn't right we can switch it off by experiment/feature flag.

Platform Affected (web, mobile, etc)

Web and mobile

Developer Testing Completed

Specs and manual testing.

Screenshots

image

Does this impact

  • Localization
  • Dark/light mode
  • Guest mode
Edited by Ben

Merge request reports