* site.ts
* Update snapshots
* fix file in test archive
* Update snapshots
* more renames
* plugin source file updated at
* fix test
* last renames
* add null
* blank
* remove what we don't need
* get test to pass
* use new posthog-js
* new version
Co-authored-by: mariusandra <mariusandra@users.noreply.github.com>
* support adding custom files
* compile web.ts
* add injected code into /decide
* transpile better
* add id and payload stub to injected code
* skip backend if web only
* more web source
* add payload to default demo
* values list and inline for
* revert
* simpler query
* reload plugin if source changed
* pass on config that has "web":true
* add a bootloader for scripts larger than 1kb
* rename payload to config
* access posthog also in injected script
* cleanup
* pass meta object to inject
* split web_js code
* List
* add a web token for plugin configs
* test for web.ts
* use WEB_APP_INJECTION env to enable/disable injection
* fix types
* remove instance setting
* add inject_web_apps on team
* track installed web apps on team
* refresh from db
* enabling web apps makes an extra query
* null true
* clean imports
* null check
* fix migration
* fix noise in tests
* test web app injection
* update Team without going through a signal loop
* update plugin test
* update plugin test
* typo
* Update snapshots
* typing
* inject only via external scripts
* enable injection in the app
* update posthog-js
* blank source files when updating
* url dataclass
* comment
* add and remove files
* not users
* only show button to add files if there are files to add
* update in bulk
* TYPE_CHECKING
* abstract transpilation just a bit
* feedback and bug
* we're down under
* errors if failed
* raise on 404
* clean up more
* refactor
* add updated_at to list
* no need to check code equality
* remove australia ip override
* test
* remove support for random files
Co-authored-by: mariusandra <mariusandra@users.noreply.github.com>
This is currently one of our slowest queries. The query itself is fine
but the amount of data returned is causing issues.
`error` column constitutes >80% of data stored in the column - by
removing it in the query we should see significant speedups.
pganalyze page: https://app.pganalyze.com/databases/-675880137/queries/5301003665?t=7d
* refactor: Eliminate the `KAFKA_ENABLED` setting
* Remove dead code
* Consolidate plugin server test scripts and CI
* Fix CI command
* Remove Celery queues
* Rearrange test directories
* Update import paths
* create plugin source model
* edit source via plugin_source model
* deprecate "source"
* test plugin source updates
* add support for index.ts and index.js
* refactor plugin loading, support plugin sources from db
* fix source code in tests
* remove transpilation code
* reload plugin after saving
* store defaults in the db instead of persisting in form
* remove fields that don't exist
* feat(apps): transpile frontend.tsx
* update timestamp even if no local fields changed
* yarn.lock
* remove unused fields
* commit suggestion
* rename to PluginSourceFile
* rename to PluginSourceFile
* remove dead code
* fix code feedback
* add comments
* make it safer to call
* convert to upsert
* convert to upsert
* comment on the null
* revert plugin server changes
* get source from new model behind the scenes
* simplify
* revert accidental changes
* revert accidental changes
* remove defaults
* sync the old source field
* use the source model in the plugin server
* cache the source from pluginsourcefile
* test that getPluginSource gets data from the database
* safer null check that doesn't override `{}` in the db with `null`
* use enum
* fix error from migration 0233 ([] is falsy in python!)
* fix merge
* error as null
* use the explicit "source__index_ts" field
* cache transpiled code
* remove unused type
* cleaner query
* remove extra line
* fix test