Skip to content

Commit

Permalink
fix: use correct casing when generating markdown
Browse files Browse the repository at this point in the history
Update to use everywhere `federationLibrary` instead of `federationlibrary`.
  • Loading branch information
dariuszkuc committed Nov 28, 2023
1 parent 0cdd90a commit a519ff6
Show file tree
Hide file tree
Showing 20 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion implementations/_template_library_/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "<display name of core GraphQL library - ONLY INCLUDE THIS SECTION IF DIFFERENT THAN THE MAIN LIBRARY REPO>",
"link": "github repo | NPM link | other distribution link"
},
"federationlibrary": {
"federationLibrary": {
"name": "<display name of Federation library - ONLY INCLUDE THIS SECTION IF DIFFERENT THAN THE MAIN LIBRARY REPO>",
"link": "github repo | NPM link | other distribution link"
}
Expand Down
2 changes: 1 addition & 1 deletion implementations/absinthe-federation/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"owner": "absinthe-graphql",
"link": "https://github.com/absinthe-graphql/absinthe"
},
"federationlibrary": {
"federationLibrary": {
"name": "absinthe_federation",
"owner": "DivvyPayHQ",
"link": "https://github.com/DivvyPayHQ/absinthe_federation"
Expand Down
4 changes: 2 additions & 2 deletions implementations/apollo-server/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"repository": {
"name": "apollo-server",
"owner": "apollographql",
"maintainer" : "apollographql",
"maintainer": "apollographql",
"link": "https://github.com/apollographql/apollo-server"
},
"coreLibrary": {
"name": "GraphQL.js",
"link": "https://www.npmjs.com/package/graphql"
},
"federationlibrary": {
"federationLibrary": {
"name": "Apollo Subgraph",
"maintainer": "apollographql",
"link": "https://www.npmjs.com/package/@apollo/subgraph"
Expand Down
4 changes: 2 additions & 2 deletions implementations/dgs/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"name": "GraphQL Java",
"link": "https://github.com/graphql-java/graphql-java"
},
"federationlibrary": {
"federationLibrary": {
"name": "federation-jvm",
"owner": "apollographql",
"maintainer" : "apollographql",
"maintainer": "apollographql",
"link": "https://github.com/apollographql/federation-jvm"
}
}
4 changes: 2 additions & 2 deletions implementations/express-graphql/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"name": "GraphQL.js",
"link": "https://www.npmjs.com/package/graphql"
},
"federationlibrary": {
"federationLibrary": {
"name": "Apollo Subgraph",
"maintainer" : "apollographql",
"maintainer": "apollographql",
"link": "https://www.npmjs.com/package/@apollo/subgraph"
}
}
2 changes: 1 addition & 1 deletion implementations/graphene/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"name": "GraphQL-core 3",
"link": "https://github.com/graphql-python/graphql-core"
},
"federationlibrary": {
"federationLibrary": {
"name": "graphene-federation",
"owner": "graphql-python",
"link": "https://github.com/graphql-python/graphene-federation"
Expand Down
2 changes: 1 addition & 1 deletion implementations/graphql-java-kickstart/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"name": "GraphQL Java",
"link": "https://github.com/graphql-java/graphql-java"
},
"federationlibrary": {
"federationLibrary": {
"name": "federation-jvm",
"owner": "apollographql",
"maintainer": "apollographql",
Expand Down
4 changes: 2 additions & 2 deletions implementations/graphql-yoga/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"name": "GraphQL.js",
"link": "https://www.npmjs.com/package/graphql"
},
"federationlibrary": {
"federationLibrary": {
"name": "Apollo Subgraph",
"maintainer" : "apollographql",
"maintainer": "apollographql",
"link": "https://www.npmjs.com/package/@apollo/subgraph"
}
}
4 changes: 2 additions & 2 deletions implementations/helix/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"name": "GraphQL.js",
"link": "https://www.npmjs.com/package/graphql"
},
"federationlibrary": {
"federationLibrary": {
"name": "Apollo Subgraph",
"maintainer" : "apollographql",
"maintainer": "apollographql",
"link": "https://www.npmjs.com/package/@apollo/subgraph"
}
}
2 changes: 1 addition & 1 deletion implementations/hotchocolate/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"owner": "ChilliCream",
"link": "https://github.com/ChilliCream/graphql-platform"
},
"federationlibrary": {
"federationLibrary": {
"name": "federation-hotchocolate",
"owner": "apollographql",
"maintainer": "apollographql",
Expand Down
4 changes: 2 additions & 2 deletions implementations/mercurius/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"name": "GraphQL.js",
"link": "https://www.npmjs.com/package/graphql"
},
"federationlibrary": {
"federationLibrary": {
"name": "Apollo Subgraph",
"maintainer" : "apollographql",
"maintainer": "apollographql",
"link": "https://www.npmjs.com/package/@apollo/subgraph"
}
}
6 changes: 3 additions & 3 deletions implementations/neo4j-graphql/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"name": "GraphQL.js",
"link": "https://www.npmjs.com/package/graphql"
},
"federationlibrary": {
"federationLibrary": {
"name": "Apollo Subgraph",
"maintainer" : "apollographql",
"maintainer": "apollographql",
"link": "https://www.npmjs.com/package/@apollo/subgraph"
}
}
}
4 changes: 2 additions & 2 deletions implementations/nestjs-code-first/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"name": "GraphQL.js",
"link": "https://www.npmjs.com/package/graphql"
},
"federationlibrary": {
"federationLibrary": {
"name": "Apollo Subgraph",
"maintainer" : "apollographql",
"maintainer": "apollographql",
"link": "https://www.npmjs.com/package/@apollo/subgraph"
}
}
4 changes: 2 additions & 2 deletions implementations/nestjs/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"name": "GraphQL.js",
"link": "https://www.npmjs.com/package/graphql"
},
"federationlibrary": {
"federationLibrary": {
"name": "Apollo Subgraph",
"maintainer" : "apollographql",
"maintainer": "apollographql",
"link": "https://www.npmjs.com/package/@apollo/subgraph"
}
}
2 changes: 1 addition & 1 deletion implementations/php/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"owner": "webonyx",
"link": "https://github.com/webonyx/graphql-php"
},
"federationlibrary": {
"federationLibrary": {
"name": "apollo-federation-php",
"owner": "Skillshare",
"link": "https://github.com/Skillshare/apollo-federation-php"
Expand Down
2 changes: 1 addition & 1 deletion implementations/ruby/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"owner": "rmosolgo",
"link": "https://github.com/rmosolgo/graphql-ruby"
},
"federationlibrary": {
"federationLibrary": {
"name": "Gusto/apollo-federation-ruby",
"link": "https://github.com/Gusto/apollo-federation-ruby/"
}
Expand Down
4 changes: 2 additions & 2 deletions implementations/sangria/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"owner": "sangria-graphql",
"link": "https://github.com/sangria-graphql/sangria"
},
"federationlibrary": {
"federationLibrary": {
"name": "sangria-federated",
"owner": "sangria-graphql",
"link": "https://github.com/sangria-graphql/sangria-federated"
}
}
}
2 changes: 1 addition & 1 deletion implementations/spring-graphql/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"name": "GraphQL Java",
"link": "https://github.com/graphql-java/graphql-java"
},
"federationlibrary": {
"federationLibrary": {
"name": "federation-jvm",
"owner": "apollographql",
"maintainer": "apollographql",
Expand Down
2 changes: 1 addition & 1 deletion packages/compatibility/src/testRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export interface TestResultDetails {
}[];
repository?: RepositoryInformation;
coreLibrary?: RepositoryInformation;
federationlibrary?: RepositoryInformation;
federationLibrary?: RepositoryInformation;
started: boolean;
tests: TestResults;
}
Expand Down
16 changes: 8 additions & 8 deletions packages/compatibility/src/utils/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ Github: <a href="{{{link}}}">{{{name}}}{{#apolloIcon}}&nbsp;&nbsp;{{{apolloIcon}
{{#coreLibrary}}
Core Library: <a href="{{{link}}}">{{{name}}}{{#apolloIcon}}&nbsp;&nbsp;{{{apolloIcon}}}{{/apolloIcon}}</a><br/>
{{/coreLibrary}}
{{#federationlibrary}}
{{#federationLibrary}}
Federation Library: <a href="{{{link}}}">{{{name}}}{{#apolloIcon}}&nbsp;&nbsp;{{{apolloIcon}}}{{/apolloIcon}}</a>
{{/federationlibrary}}
{{/federationLibrary}}
</td>
{{#compatibilities}}
<td>
Expand Down Expand Up @@ -199,15 +199,15 @@ export function generateMarkdown(results: TestResultDetails[]) {
};
}

if (result.federationlibrary) {
let fedLibraryName = result.federationlibrary.owner
? `${result.federationlibrary.owner}/${result.federationlibrary.name}`
: result.federationlibrary.name;
if (result.federationLibrary) {
let fedLibraryName = result.federationLibrary.owner
? `${result.federationLibrary.owner}/${result.federationLibrary.name}`
: result.federationLibrary.name;
impl.federationLibrary = {
name: fedLibraryName,
link: result.federationlibrary.link,
link: result.federationLibrary.link,
apolloIcon:
apolloName == result.federationlibrary.maintainer ? apolloIcon : null,
apolloName == result.federationLibrary.maintainer ? apolloIcon : null,
};
}
current.implementations.push(impl);
Expand Down

0 comments on commit a519ff6

Please sign in to comment.