Skip to content

Conversation

@sakce
Copy link
Contributor

@sakce sakce commented Nov 27, 2025

Problem

found my room to be slightly messier than I like it

Changes

  • a bunch of frontend cleanups 🧹
  • some backend QoL and a neat way of getting fresh data if the materialization is stale

How did you test this code?

  • testsss

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

Changelog: (features only) Is this feature complete?

not just yett

@sakce sakce force-pushed the chore/endpoints-cleanup branch from 608e6ee to b82fc34 Compare November 27, 2025 15:30
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

15 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@sakce sakce changed the title chore: run endpoint inline when materialization is stale chore: Endpoints cleanup ✨ Nov 27, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 27, 2025

Size Change: -119 B (0%)

Total Size: 3.41 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 3.41 MB -119 B (0%)

compressed-size-action

@sakce sakce requested a review from orian November 27, 2025 16:11
if not saved_query.table:
return False

# Check if materialized data is stale
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@orian this 🎀 is for you

},
confirmToggleActive: ({ endpoint }) => {
const isActivating = !endpoint.is_active
LemonDialog.open({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i can smell someone shouting at me for putting a dialog here 👀


const handleEditQuery = (): void => {
newTab(urls.sqlEditor(hogqlQuery.query))
newTab(urls.sqlEditor(hogqlQuery.query, undefined, undefined, undefined, OutputTab.Endpoint, endpoint.name))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is so sexy now - if you want to edit a SQL query behind an Endpoint, this button takes you straight to the Endpoint outputTab with the endpoint name set and the toggle set to 'update existing' 🤤

},
createdAtColumn<EndpointType>() as LemonTableColumn<EndpointType, keyof EndpointType | undefined>,
createdByColumn<EndpointType>() as LemonTableColumn<EndpointType, keyof EndpointType | undefined>,
{
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not quite sure - but I wanted to see what order I liked more
this is what the PR does

Image

And this is what's in prod atm

Image

@sakce sakce force-pushed the chore/endpoints-cleanup branch 3 times, most recently from e265b5e to be07752 Compare November 28, 2025 11:32
@sakce sakce force-pushed the chore/endpoints-cleanup branch from be07752 to 779dee3 Compare November 28, 2025 11:34
@sakce sakce enabled auto-merge (squash) November 28, 2025 12:59
@sakce sakce merged commit 685687c into master Nov 28, 2025
197 checks passed
@sakce sakce deleted the chore/endpoints-cleanup branch November 28, 2025 13:20
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.

4 participants