mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-29 02:46:32 +01:00
a6ff568d11
* wip * wip * wip * can filter events by reserved words - distinct_id, created_at, and timestamp - in the backend * add reserved properties when showing property definitions * capitalise name of property * properties not reserved words * get cypress working and make search work with reserved properties * update event/values endpoint to use property_string_expr and so work with reserved properties * remove created at from reserved words * test fix * fix test * loosen cypress assertion * exclude specific properties from the taxonomic property filter * remove FE property definition fangling * exclude $time and $timestamp property definitions from the backend * add reserved properties in the API not the FE using a CTE * use SQL comments in SQL strings * remove mypy error * fix enterprise property definitions * fix tests and improve comment * exclude materialised column rows with no values when getting event property definitions * fix cypress test setup * clean up dead code * un-remove some not actually dead code * correct cypress assertion * try and fix a cypress test |
||
---|---|---|
.. | ||
fixtures | ||
integration | ||
plugins | ||
support | ||
README.md | ||
wait.py |
Testing Feature Flags
The Cypress tests run with a PostHog instance that has no feature flags set up.
To test feature flags you can intercept the call to the decide
endpoint
// sometimes the system under test calls `/decide`
// and sometimes it calls https://app.posthog.com/decide
cy.intercept(/.*\/decide\/.*/, (req) =>
req.reply(
decideResponse({
'6619-query-events-by-date': true,
})
)
)