History

Refactor scope config boundary

Rhys Sullivan committed 7 months ago

Commit 2d004cd1 parent 3f52c6036 files · +1834 −360Browse files

Showing the changes to plugins/graphql (1 of 36 files). Show all

Unified · Split

plugins/graphql/sdk/index.ts+7−7
@@ -12,7 +12,7 @@ import { · 11 unmodified lines
1212 createSourceCatalogSyncResult,
1313 } from "@executor/source-core";
1414 import type {
15− LocalExecutorConfig,
15+ ExecutorScopeConfig,
1616 Source,
1717 } from "@executor/platform-sdk/schema";
1818 import {
@@ -23,8 +23,8 @@ import { · 4 unmodified lines
2323 } from "@executor/platform-sdk/plugins";
2424 import {
2525 SecretMaterialResolverService,
26− createPluginLocalConfigEntrySchema,
27− pluginLocalConfigSourceFromConfig,
26+ createPluginScopeConfigEntrySchema,
27+ pluginScopeConfigSourceFromConfig,
2828 provideExecutorRuntime,
2929 runtimeEffectError,
3030 } from "@executor/platform-sdk/runtime";
@@ -151,7 +151,7 @@ const asStringRecord = (value: unknown): Record<string, string> => · 120 unmodified lines
151151 );
152152
153153 const decodeGraphqlCurrentLocalConfigOption = Schema.decodeUnknownOption(
154− createPluginLocalConfigEntrySchema({
154+ createPluginScopeConfigEntrySchema({
155155 kind: "graphql",
156156 config: GraphqlStoredSourceDataSchema,
157157 }),
@@ -336,7 +336,7 @@ const graphqlConnectInputFromAddInput = ( · 178 unmodified lines
336336
337337 const graphqlStoredSourceDataFromLocalConfig = (input: {
338338 config: unknown;
339− loadedConfig: LocalExecutorConfig | null;
339+ loadedConfig: ExecutorScopeConfig | null;
340340 }): GraphqlStoredSourceData => {
341341 const current = decodeGraphqlCurrentLocalConfigOption(input.config);
342342 if (Option.isSome(current)) {
@@ -397,9 +397,9 @@ export const graphqlSdkPlugin = (options: { · 54 unmodified lines
397397 toConfig: ({ source, stored }) =>
398398 sourceConfigFromStored(source, normalizeStoredSourceData(stored)),
399399 },
400− localConfig: {
400+ scopeConfig: {
401401 toConfigSource: ({ source, stored }) =>
402− pluginLocalConfigSourceFromConfig({
402+ pluginScopeConfigSourceFromConfig({
403403 source,
404404 config: normalizeStoredSourceData(stored),
405405 }),

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t