Skip to content

feat: Add Heroku source plugin#1598

Merged
hermanschaaf merged 23 commits intocloudquery:mainfrom
hermanschaaf:heroku-plugin-new-codegen
Aug 31, 2022
Merged

feat: Add Heroku source plugin#1598
hermanschaaf merged 23 commits intocloudquery:mainfrom
hermanschaaf:heroku-plugin-new-codegen

Conversation

@hermanschaaf
Copy link
Copy Markdown
Contributor

This adds a new source plugin for the Heroku Platform API. The following resources are supported in this initial version:

  • account_features
  • add_on_attachments
  • add_on_configs
  • add_on_region_capabilities
  • add_on_services
  • add_on_webhook_deliveries
  • add_on_webhook_events
  • add_on_webhooks
  • add_ons
  • app_features
  • app_transfers
  • app_webhook_deliveries
  • app_webhook_events
  • app_webhooks
  • apps
  • buildpack_installations
  • builds
  • collaborators
  • credits
  • domains
  • dyno_sizes
  • dynos
  • enterprise_account_members
  • enterprise_accounts
  • formations
  • inbound_rulesets
  • invoices
  • keys
  • log_drains
  • oauth_authorizations
  • oauth_clients
  • outbound_rulesets
  • peerings
  • permission_entities
  • pipeline_builds
  • pipeline_couplings
  • pipeline_deployments
  • pipeline_releases
  • pipelines
  • regions
  • releases
  • review_apps
  • space_app_accesses
  • spaces
  • stacks
  • team_app_permissions
  • team_features
  • team_invitations
  • team_invoices
  • team_members
  • team_spaces
  • teams
  • vpn_connections

and the following are not supported right now, but support can be added for most of them with some additional work:

  • archives
  • audit_trail_events
  • pipeline_promotions
  • sni_endpoints
  • ssl_endpoints
  • team_app
  • team_app_collaborator
  • team_preferences
  • test_case
  • test_node
  • test_run
  • user_preferences

Notes for reviewers

  • As the official Heroku Go SDK does not support pagination, support was added by adding custom http.RoundTripper middleware that reports on the next range that should be fetched via the request context.

@hermanschaaf hermanschaaf requested review from a team and candiduslynx and removed request for a team August 29, 2022 15:18
Copy link
Copy Markdown
Member

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

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

Looks great pending a rebase to get the tests passing.
You'll need to add it in a few places for setting up the release and other workflows:

  1. "plugins/source/terraform": { "component": "plugins/source/terraform" }
  2. - Linter (plugins/source/terraform)
  3. - name: Mark as pre-release

I think I got them all 🙃 .
We should do another iteration on simplifying those and/or documenting adding a new module to the monorepo

kodiakhq bot pushed a commit that referenced this pull request Sep 21, 2022
🤖 I have created a release *beep* *boop*
---


## [0.1.0-pre.0](plugins/source/heroku-v0.0.1-pre.0...plugins/source/heroku/v0.1.0-pre.0) (2022-09-21)


### ⚠ BREAKING CHANGES

* CloudQuery V2. (#1463)

### Features

* Add Heroku source plugin ([#1598](#1598)) ([710d7da](710d7da))
* Add Sentry DSN ([#1913](#1913)) ([5cc036e](5cc036e))
* CloudQuery V2. ([#1463](#1463)) ([d1799f3](d1799f3))
* Generate auto-filled config ([#1764](#1764)) ([2255404](2255404))
* Heroku plugin v2 ([#1745](#1745)) ([23d4bd7](23d4bd7))


### Bug Fixes

* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.0.11 ([#1711](#1711)) ([22eb2f9](22eb2f9))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.0.5 ([#1630](#1630)) ([9af1e86](9af1e86))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.0.6 ([#1643](#1643)) ([d4fe65b](d4fe65b))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.0.7 ([#1646](#1646)) ([765a307](765a307))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.0.8 ([#1669](#1669)) ([87024e5](87024e5))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.0.9 ([#1670](#1670)) ([722cf18](722cf18))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.1.0 ([#1712](#1712)) ([c94d964](c94d964))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.1.1 ([#1740](#1740)) ([20d5f7b](20d5f7b))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.1.2 ([#1750](#1750)) ([fbe1b78](fbe1b78))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.2.4 ([#1761](#1761)) ([7a83a65](7a83a65))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.2.5 ([#1769](#1769)) ([c9c8c05](c9c8c05))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.2.6 ([#1770](#1770)) ([5bc205e](5bc205e))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.2.7 ([#1783](#1783)) ([c291499](c291499))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.2.8 ([#1784](#1784)) ([b64e2d1](b64e2d1))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.2.9 ([#1785](#1785)) ([c6e8cb0](c6e8cb0))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.4.0 ([#1786](#1786)) ([cba274b](cba274b))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.4.1 ([#1787](#1787)) ([bad385c](bad385c))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.4.2 ([#1789](#1789)) ([79a46a2](79a46a2))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.5.0 ([#1792](#1792)) ([0b4834e](0b4834e))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.5.2 ([#1793](#1793)) ([36fd6a1](36fd6a1))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.6.0 ([#1817](#1817)) ([bd68a9c](bd68a9c))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.6.1 ([#1820](#1820)) ([2613e23](2613e23))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.6.2 ([#1838](#1838)) ([5b16c59](5b16c59))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.6.3 ([#1858](#1858)) ([9e3ace7](9e3ace7))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.6.4 ([#1862](#1862)) ([5d141cf](5d141cf))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.7.2 ([#1872](#1872)) ([49ed26d](49ed26d))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.7.3 ([#1886](#1886)) ([7435d59](7435d59))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.7.4 ([#1889](#1889)) ([63a5362](63a5362))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.7.9 ([#1891](#1891)) ([3469f20](3469f20))
* Heroku plugin - add missing columns to some tables ([#1674](#1674)) ([6836c4f](6836c4f))
* Unify plugin package structure ([#1735](#1735)) ([897d8f4](897d8f4))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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.

2 participants