मुख्य सामग्री पर जाएँ
Skillpedia
डेटाबेस41k · #6863

managing-endpoint-versions

यह क्या करती है

यह स्किल बताती है कि एंडपॉइंट संस्करण कैसे काम करते हैं, और लाइव उपयोग तोड़े बिना पिछले संस्करण पर कैसे लौटें या बदलावों का पूर्वावलोकन कैसे करें। यह उन लोगों के लिए है जो एंडपॉइंट संपादित करते हैं और अचानक समस्याओं से बचना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप किसी एंडपॉइंट को पुराने संस्करण पर लौटाना चाहें।
  • ✓जब आप क्वेरी बदलाव को लाइव करने से पहले प्लेग्राउंड में परखना चाहें।
  • ✓जब आप किसी संस्करण का विवरण या ताज़गी सेटिंग बदलना चाहें, बिना नया संस्करण बनाए।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/PostHog/posthog/blob/master/products/endpoints/skills/managing-endpoint-versions/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं अपना एंडपॉइंट संस्करण 3 पर कैसे वापस लाऊँ?”

हर हफ़्ते 5 नई skills, 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
लाइसेंस
—
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

depot-ci

41k

यह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-container-builds

41k

यह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-github-runners

41k

यह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

editing-agents-md

41k

यह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।

AI और एजेंटएजेंट

मिलती-जुलती skills