feat: Add render.getService and render.getDeploy components#3016
Conversation
Closes superplanehq#2989 (1/3) Adds two new read-only components to the Render integration: - Get Service: retrieve service details by ID - Get Deploy: fetch deploy information by ID Also fixes Service.Suspended field type from bool to string to match the Render API response format ("not_suspended"). Signed-off-by: vikramships <zenohkai@gmail.com>
- Change get_service.ts to expect string ("suspended"/"not_suspended")
instead of boolean
- Update example output to use "not_suspended" string
- Backend already emits the correct string from Render API
Signed-off-by: vikramships <zenohkai@gmail.com>
|
Good catch on the Suspended field! Fixed it:
Tests passing! |
|
@vikramships Hey, thanks. I think that now you just need to regen the docs. (CI Failing) |
Thanks for pointing this out @forestileao , regenerated docs again. |
Signed-off-by: vikramships <zenohkai@gmail.com>
93f8362 to
d034d22
Compare
|
@vikramships All good and working, looking forward to update the other PR's with these changes too.
Thanks for contributing with SuperPlane <3 |
|
@forestileao Thanks for merging #3016! Should I wait for the other 2 PRs (#3017, #3018) to merge before claiming the bounty? Both have CI passing and are ready for review. |
|
@vikramships Probably it would be easier for you. The code looks good. just finishing testing on my Render org. but Render is delaying to send webhooks :) |
…3017) Implements #2989 (2/3) — depends on #3016 Adds two deploy management components to the Render integration: - **Cancel Deploy** — cancel an in-progress deploy - **Rollback Deploy** — rollback to a previous deploy by ID Both reuse `deployDataFromDeployResponse` from the shared `payloads.go` added in #3016. ## Video demo https://youtu.be/Ok8-S31hdbI --------- Signed-off-by: vikramships <zenohkai@gmail.com> Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com> Co-authored-by: Pedro F. Leao <pedroforestileao@gmail.com>
Implements #2989 (3/3) — depends on #3016, #3017 Adds two service management components to the Render integration: - **Purge Cache** — clear build cache for a service - **Update Env Var** — update environment variables with set or generate strategies ## Video demo https://youtu.be/Ok8-S31hdbI --------- Signed-off-by: vikramships <zenohkai@gmail.com> Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com> Co-authored-by: Pedro F. Leao <pedroforestileao@gmail.com>
…nehq#3016) Implements superplanehq#2989 (1/3) Adds two read-only components to the Render integration: - **Get Service** — retrieve service details by ID - **Get Deploy** — fetch deploy information by ID Also includes a fix for `Service.Suspended` field type (was `bool`, Render API actually returns a string like `"not_suspended"`). Shared code included: `payloads.go` (payload helpers used by subsequent PRs) and `base.ts` (shared frontend mapper base). ## Video demo https://youtu.be/Ok8-S31hdbI --------- Signed-off-by: vikramships <zenohkai@gmail.com> Signed-off-by: Aldo <aldo.abellto14@gmail.com>
…uperplanehq#3017) Implements superplanehq#2989 (2/3) — depends on superplanehq#3016 Adds two deploy management components to the Render integration: - **Cancel Deploy** — cancel an in-progress deploy - **Rollback Deploy** — rollback to a previous deploy by ID Both reuse `deployDataFromDeployResponse` from the shared `payloads.go` added in superplanehq#3016. ## Video demo https://youtu.be/Ok8-S31hdbI --------- Signed-off-by: vikramships <zenohkai@gmail.com> Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com> Co-authored-by: Pedro F. Leao <pedroforestileao@gmail.com> Signed-off-by: Aldo <aldo.abellto14@gmail.com>
…ehq#3018) Implements superplanehq#2989 (3/3) — depends on superplanehq#3016, superplanehq#3017 Adds two service management components to the Render integration: - **Purge Cache** — clear build cache for a service - **Update Env Var** — update environment variables with set or generate strategies ## Video demo https://youtu.be/Ok8-S31hdbI --------- Signed-off-by: vikramships <zenohkai@gmail.com> Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com> Co-authored-by: Pedro F. Leao <pedroforestileao@gmail.com> Signed-off-by: Aldo <aldo.abellto14@gmail.com>
…nehq#3016) Implements superplanehq#2989 (1/3) Adds two read-only components to the Render integration: - **Get Service** — retrieve service details by ID - **Get Deploy** — fetch deploy information by ID Also includes a fix for `Service.Suspended` field type (was `bool`, Render API actually returns a string like `"not_suspended"`). Shared code included: `payloads.go` (payload helpers used by subsequent PRs) and `base.ts` (shared frontend mapper base). ## Video demo https://youtu.be/Ok8-S31hdbI --------- Signed-off-by: vikramships <zenohkai@gmail.com>
…uperplanehq#3017) Implements superplanehq#2989 (2/3) — depends on superplanehq#3016 Adds two deploy management components to the Render integration: - **Cancel Deploy** — cancel an in-progress deploy - **Rollback Deploy** — rollback to a previous deploy by ID Both reuse `deployDataFromDeployResponse` from the shared `payloads.go` added in superplanehq#3016. ## Video demo https://youtu.be/Ok8-S31hdbI --------- Signed-off-by: vikramships <zenohkai@gmail.com> Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com> Co-authored-by: Pedro F. Leao <pedroforestileao@gmail.com>
…ehq#3018) Implements superplanehq#2989 (3/3) — depends on superplanehq#3016, superplanehq#3017 Adds two service management components to the Render integration: - **Purge Cache** — clear build cache for a service - **Update Env Var** — update environment variables with set or generate strategies ## Video demo https://youtu.be/Ok8-S31hdbI --------- Signed-off-by: vikramships <zenohkai@gmail.com> Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com> Co-authored-by: Pedro F. Leao <pedroforestileao@gmail.com>
…nehq#3016) Implements superplanehq#2989 (1/3) Adds two read-only components to the Render integration: - **Get Service** — retrieve service details by ID - **Get Deploy** — fetch deploy information by ID Also includes a fix for `Service.Suspended` field type (was `bool`, Render API actually returns a string like `"not_suspended"`). Shared code included: `payloads.go` (payload helpers used by subsequent PRs) and `base.ts` (shared frontend mapper base). ## Video demo https://youtu.be/Ok8-S31hdbI --------- Signed-off-by: vikramships <zenohkai@gmail.com> Signed-off-by: Muhammad Fuzail Zubari <mfuzail.zubari@gmail.com>
…uperplanehq#3017) Implements superplanehq#2989 (2/3) — depends on superplanehq#3016 Adds two deploy management components to the Render integration: - **Cancel Deploy** — cancel an in-progress deploy - **Rollback Deploy** — rollback to a previous deploy by ID Both reuse `deployDataFromDeployResponse` from the shared `payloads.go` added in superplanehq#3016. ## Video demo https://youtu.be/Ok8-S31hdbI --------- Signed-off-by: vikramships <zenohkai@gmail.com> Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com> Co-authored-by: Pedro F. Leao <pedroforestileao@gmail.com> Signed-off-by: Muhammad Fuzail Zubari <mfuzail.zubari@gmail.com>
…ehq#3018) Implements superplanehq#2989 (3/3) — depends on superplanehq#3016, superplanehq#3017 Adds two service management components to the Render integration: - **Purge Cache** — clear build cache for a service - **Update Env Var** — update environment variables with set or generate strategies ## Video demo https://youtu.be/Ok8-S31hdbI --------- Signed-off-by: vikramships <zenohkai@gmail.com> Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com> Co-authored-by: Pedro F. Leao <pedroforestileao@gmail.com> Signed-off-by: Muhammad Fuzail Zubari <mfuzail.zubari@gmail.com>
…nehq#3016) Implements superplanehq#2989 (1/3) Adds two read-only components to the Render integration: - **Get Service** — retrieve service details by ID - **Get Deploy** — fetch deploy information by ID Also includes a fix for `Service.Suspended` field type (was `bool`, Render API actually returns a string like `"not_suspended"`). Shared code included: `payloads.go` (payload helpers used by subsequent PRs) and `base.ts` (shared frontend mapper base). ## Video demo https://youtu.be/Ok8-S31hdbI --------- Signed-off-by: vikramships <zenohkai@gmail.com> Signed-off-by: Muhammad Fuzail Zubari <mfuzail.zubari@gmail.com>
…uperplanehq#3017) Implements superplanehq#2989 (2/3) — depends on superplanehq#3016 Adds two deploy management components to the Render integration: - **Cancel Deploy** — cancel an in-progress deploy - **Rollback Deploy** — rollback to a previous deploy by ID Both reuse `deployDataFromDeployResponse` from the shared `payloads.go` added in superplanehq#3016. ## Video demo https://youtu.be/Ok8-S31hdbI --------- Signed-off-by: vikramships <zenohkai@gmail.com> Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com> Co-authored-by: Pedro F. Leao <pedroforestileao@gmail.com> Signed-off-by: Muhammad Fuzail Zubari <mfuzail.zubari@gmail.com>
…ehq#3018) Implements superplanehq#2989 (3/3) — depends on superplanehq#3016, superplanehq#3017 Adds two service management components to the Render integration: - **Purge Cache** — clear build cache for a service - **Update Env Var** — update environment variables with set or generate strategies ## Video demo https://youtu.be/Ok8-S31hdbI --------- Signed-off-by: vikramships <zenohkai@gmail.com> Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com> Co-authored-by: Pedro F. Leao <pedroforestileao@gmail.com> Signed-off-by: Muhammad Fuzail Zubari <mfuzail.zubari@gmail.com>


Implements #2989 (1/3)
Adds two read-only components to the Render integration:
Also includes a fix for
Service.Suspendedfield type (wasbool, Render API actually returns a string like"not_suspended").Shared code included:
payloads.go(payload helpers used by subsequent PRs) andbase.ts(shared frontend mapper base).Video demo
https://youtu.be/Ok8-S31hdbI