Skip to content

Experiment to hide boosts until account is 1 week old. #2889

Ben requested to merge feat/new-user-boost-exp-2889 into master

Ticket(s) / Related Merge Requests

Summary of Changes

(Summarize the changes made concisely)

Testing Considerations

Note - sometimes on sandboxes the feed endpoint for the inline boosts will return no entities.

You will need access to the sandbox cluster in Kubernetes to fully test this.

  1. Create an account
  2. Check whether you're in the experiment by filtering your network requests by boost/feed - if you're in the experiment you should see a GET param for show_boosts_after_x on the requests - you may need to follow a user like minds or nemofin that has a lot of posts so that the feed works properly.
  3. If you're not in the experiments, try clearing your cookies and logging in, if that doesn't work, try making a new account and repeating from step 1.
  4. If you're in the experiment with a new user you SHOULD see no boosts by default
  5. Open a cassandra shell in the cluster
kubectl exec -it cassandra-0 cqlsh
  1. Replace your users guid (/api/v1/channel/[username] to find it) in the below query, and run it
UPDATE minds.entities SET value='1' WHERE key='1332779722316189707' AND column1='time_created';

# You can check it worked with
SELECT * from minds.entities WHERE key='1332779722316189707' AND column1='time_created';

Here we have set the time created to be 1 - so you SHOULD absolutely see boosts as this time created date predates the sites existance (1970)

  1. Try setting to a value in the future, boosts should not appear (remember to replace GUIDs)
UPDATE minds.entities SET value='9999999999999' WHERE key='1332779722316189707' AND column1='time_created';
  1. Modify the above query to try different timestamps - less old than 7 days and you shouldn't see boosts, older and you should. You can use https://www.epochconverter.com/ to find timestamps X amount of days ago.

  2. Verify users OUTSIDE OF THE EXPERIMENT (no query param in the network request) see boosts as usual.

Regression Scope

(Can this change cause another regression issue? Which areas to focus on for regression testing?)

Platform Affected (web, mobile, etc)

(Which platforms are affected by this change? Web, Mobile, or Both?)

Developer Testing Completed

(What has been tested already?)

Screenshots

(Any extra UI screens that can be shared)

Does this impact

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

Merge request reports