본문으로 건너뛰기
Skillpedia
데이터베이스41k · #6863

managing-endpoint-versions

하는 일

이 스킬은 엔드포인트 버전이 어떻게 작동하는지, 라이브 사용을 깨지 않으면서 되돌리거나 변경을 미리 보는 방법을 설명합니다. 엔드포인트를 편집하며 놀라움을 피하려는 사람을 위한 것입니다.

사용하는 경우

  • ✓엔드포인트를 이전 버전으로 되돌리고 싶을 때.
  • ✓쿼리 변경을 라이브로 가기 전에 플레이그라운드에서 테스트하고 싶을 때.
  • ✓새 버전을 만들지 않고 한 버전의 설명이나 최신성 설정을 업데이트하고 싶을 때.

스킬 링크

https://github.com/PostHog/posthog/blob/master/products/endpoints/skills/managing-endpoint-versions/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/endpoints/skills/managing-endpoint-versions/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 엔드포인트를 버전 3으로 되돌리려면 어떻게 하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

설정을 바꾸면 해당 버전이 제자리에서 업데이트되고, 쿼리를 바꾸면 새 버전이 만들어집니다. 스킬은 이를 바탕으로 안전하게 테스트하고 되돌리는 방법을 보여 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Managing endpoint versions

This skill is the practical guide to endpoint versioning. It covers the today-workflow, which has some sharp edges worth being explicit about.

When to use this skill

  • "How do I roll back to v3?"
  • "I want to test changes before they go live"
  • "How do I update the description / data_freshness_seconds on a specific version?"
  • "Can I disable v4 without affecting v5?"
  • The user is uncertain whether a query change will cut a new version

Versioning model — what to know

Behaviour Reality
Query change Auto-cuts a new version. Saving any edit to the query creates a new version and bumps the current version number
Settings change (description, data_freshness_seconds, materialisation) Does not cut a new version. Updates the targeted version in place
The "current" version Always the highest version number — it's not a pointer you can move backwards
Calling without ?version=N Runs the latest version. So unpinned callers always hit the newest
Disabling the whole endpoint endpoint-update with is_active: false (no version) takes every version offline at once
Disabling a single version endpoint-update with version + is_active: false retires one version without affecting the others

The model is forward-only. There is no "make v3 the default again" operation today. Practically this means "rollback" requires either creating a new top version that re-uses the old query, or pinning callers to ?version=N.

Available tools

Tool Purpose
endpoint-versions List all versions for an endpoint, latest first
endpoint-get Full config; supports ?version=N to fetch a specific version
endpoint-update The workhorse — supports version body param to target a specific version
endpoint-run Execute a version directly via ?version=N (without affecting which version other callers hit)

Workflows

Previewing a draft before publishing

There is no "draft" concept in the model. Editing the query commits it as a new version immediately. To preview safely:

  1. Test the new query first with the execute-sql tool (or the SQL editor) — not on the live endpoint
  2. When ready, update the endpoint — this creates the new version automatically
  3. Use endpoint-run with ?version=N to confirm the new version returns what you expect
  4. Old callers still hit the latest version (which is now your new version) — there is no "soft launch"

If the user needs a true staging endpoint, the only workaround today is a sibling endpoint with a _v2 or _staging suffix. Document this honestly — there is no in-product staging path.

Rolling back to an older version

The forward-only model means "rollback" requires forking:

  1. endpoint-versions to find the version with the good query (say v3)
  2. endpoint-get with ?version=3 to retrieve that version's query JSON
  3. endpoint-update with the v3 query as the new query — this creates a new version (e.g. v6) with the same query as v3
  4. All callers without ?version=N now hit v6 (== v3's query)

The old version (v5, the broken one) still exists and is still callable via ?version=5 until explicitly deactivated.

Faster mitigation if you can change every caller: have them pin to ?version=3 until a real fix is ready. Lower-impact than cutting a

자주 묻는 질문

설정을 바꾸면 새 버전이 만들어지나요?

아니요. 설명이나 최신성 같은 설정은 대상 버전을 제자리에서 업데이트합니다.

쿼리를 바꾸면 새 버전이 만들어지나요?

네. 쿼리 편집을 저장하면 새 버전이 자동으로 만들어지고 현재 버전 번호가 올라갑니다.

새 버전에 영향을 주지 않고 오래된 버전을 끌 수 있나요?

네. 스킬은 특정 버전을 비활성화하는 방법을 다루며, 다른 버전은 그대로 둡니다.

상세 정보

작성자의 원본 설명

Work safely with endpoint versions — preview a draft in the playground, roll back to an older version, update settings on one version without bumping query history, deactivate a specific version. Use when the user asks "how do I roll back my endpoint", "preview my changes before publishing", "I want to fix v5 without bumping the version", or anything involving the version history. Calls out today's limitations honestly: there is no pointer flip; "rollback" means forking the old query into a new top version.

repo: PostHog/posthog

인기도

GitHub 스타
41k
순위
#6863
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬