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: Serverless site functions #26671

Merged
merged 75 commits into from
Dec 9, 2024
Merged

Conversation

benjackwhite
Copy link
Contributor

@benjackwhite benjackwhite commented Dec 5, 2024

Problem

The site functions were added to work like the old site apps but instead I want these to be fully done with the new and improved loader.

Supports PostHog/posthog-js#1580

Changes

  • Removes the soon-to-be-legacy decide related changes
  • Updates the way the function works to match the new loader logic
  • Refactors some tests and adds a nodejs sanity check for the JS parsing

TODO

  • Fix hog function validation for transpiling

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

How did you test this code?

benjackwhite and others added 30 commits November 21, 2024 12:47
# Conflicts:
#	posthog/migrations/max_migration.txt
# Conflicts:
#	frontend/__snapshots__/scenes-other-settings--settings-project--dark.png
#	frontend/__snapshots__/scenes-other-settings--settings-project--light.png
#	frontend/__snapshots__/scenes-other-settings--settings-project-with-replay-features--dark.png
#	frontend/__snapshots__/scenes-other-settings--settings-project-with-replay-features--light.png
#	frontend/__snapshots__/scenes-other-settings--settings-session-timeout-all-options--dark.png
#	frontend/__snapshots__/scenes-other-settings--settings-session-timeout-all-options--light.png
#	frontend/__snapshots__/scenes-other-settings--settings-session-timeout-password-only--dark.png
#	frontend/__snapshots__/scenes-other-settings--settings-session-timeout-password-only--light.png
#	frontend/__snapshots__/scenes-other-settings--settings-session-timeout-sso-enforced-github--dark.png
#	frontend/__snapshots__/scenes-other-settings--settings-session-timeout-sso-enforced-github--light.png
#	frontend/__snapshots__/scenes-other-settings--settings-session-timeout-sso-enforced-google--dark.png
#	frontend/__snapshots__/scenes-other-settings--settings-session-timeout-sso-enforced-google--light.png
#	frontend/__snapshots__/scenes-other-settings--settings-session-timeout-sso-enforced-saml--dark.png
#	frontend/__snapshots__/scenes-other-settings--settings-session-timeout-sso-enforced-saml--light.png
#	frontend/__snapshots__/scenes-other-settings--settings-session-timeout-sso-only--dark.png
#	frontend/__snapshots__/scenes-other-settings--settings-session-timeout-sso-only--light.png
#	frontend/src/lib/constants.tsx
#	posthog/migrations/max_migration.txt
posthog/cdp/test/test_site_functions.py Dismissed Show dismissed Hide dismissed
@benjackwhite benjackwhite requested review from mariusandra and removed request for mariusandra December 5, 2024 13:11
benjackwhite and others added 6 commits December 5, 2024 15:51
@benjackwhite benjackwhite marked this pull request as ready for review December 6, 2024 08:40
Copy link
Collaborator

@mariusandra mariusandra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool stuff 👍

@benjackwhite benjackwhite merged commit c54ce4a into master Dec 9, 2024
89 checks passed
@benjackwhite benjackwhite deleted the feat/site-functions-serverless branch December 9, 2024 08:10
Copy link

sentry-io bot commented Dec 9, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ OperationalError: Error -3 connecting to posthog-solo.txwsvb.ng.0001.use1.cache.amazonaws.com:6379. Temporary failu... /api/projects/{parent_lookup_project_id}/featur... View Issue

Did you find this useful? React with a 👍 or 👎

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.

2 participants