Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extensions.pg to proc resources; RENAME EVERYTHING #271

Merged
merged 17 commits into from
Apr 11, 2023

Conversation

benjie
Copy link
Member

@benjie benjie commented Apr 11, 2023

Rename opPlan -> operationPlan throughout (internally).


Add extensions.pg to Postgres function resources (makes it easier for plugins to
hook them).


🚨 RENAME ALL THE THINGS

The term 'source' was overloaded, and 'configs' was too vague, and
'databaseName' was misleading, and 'source' behaviours actually applied to
resources, and more. So, we've renamed lots of things as part of the API
stabilization work. You're probably only affected by the first 2 bullet points.

  • pgConfigs -> pgServices (also applies to related pgConfig terms such as
    makePgConfig -> makePgService, MakePgConfigOptions ->
    MakePgServiceOptions, etc) - see your graphile.config.ts or equivalent
    file
  • All *:source:* behaviors are now *:resource:* behaviors (use regexp
    /:source\b|\bsource:[a-z$]/ to find the places that need updating)
  • PgDatabaseConfiguration -> PgServiceConfiguration
  • databaseName -> serviceName (because it's not the name of the database,
    it's the name of the pgServices (which was pgConfigs) entry)
  • PgResourceConfig::source -> PgResourceConfig.from ('source' is overloaded,
    so use a more direct term)
  • PgResource::source -> PgResource.from
  • PgSelectPlanJoin::source -> PgSelectPlanJoin.from
  • helpers.pgIntrospection.getDatabase -> helpers.pgIntrospection.getService
  • helpers.pgIntrospection.getExecutorForDatabase ->
    helpers.pgIntrospection.getExecutorForService

The term 'source' was overloaded, and 'configs' was too vague, and
'databaseName' was misleading, and 'source' behaviours actually applied to
resources, and more. So, we've renamed lots of things as part of the API
stabilization work. You're probably only affected by the first 2 bullet points.

- `pgConfigs` -> `pgServices` (also applies to related `pgConfig` terms such as `makePgConfig` -> `makePgService`, `MakePgConfigOptions` -> `MakePgServiceOptions`, etc) - see your `graphile.config.ts` or equivalent file
- All `*:source:*` behaviors are now `*:resource:*` behaviors (use regexp `/:source\b|\bsource:[a-z$]/` to find the places that need updating)
- `PgDatabaseConfiguration` -> `PgServiceConfiguration`
- `databaseName` -> `serviceName` (because it's not the name of the database, it's the name of the `pgServices` (which was `pgConfigs`) entry)
- `PgResourceConfig::source` -> `PgResourceConfig.from` ('source' is overloaded, so use a more direct term)
- `PgResource::source` -> `PgResource.from`
- `PgSelectPlanJoin::source` -> `PgSelectPlanJoin.from`
- `helpers.pgIntrospection.getDatabase` -> `helpers.pgIntrospection.getService`
- `helpers.pgIntrospection.getExecutorForDatabase` -> `helpers.pgIntrospection.getExecutorForService`
@benjie benjie merged commit 43f97a3 into planning Apr 11, 2023
@benjie benjie deleted the rename-everything branch April 11, 2023 12:20
@benjie benjie added this to the V5 alpha milestone Apr 13, 2023
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.

None yet

1 participant