Experiment to hide boosts until account is 1 week old. #2889
Ticket(s) / Related Merge Requests
- Issue card: minds#2889 (closed)
- Front-end: front!1748 (merged)
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.
- Create an account
- 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 likeminds
ornemofin
that has a lot of posts so that the feed works properly. - 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.
- If you're in the experiment with a new user you SHOULD see no boosts by default
- Open a cassandra shell in the cluster
kubectl exec -it cassandra-0 cqlsh
- 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)
- 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';
-
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.
-
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