Skip to content

Commit a0d1f7f

Browse files
authored
Remove gemfile and ruby code (github#19910)
1 parent 4c9b421 commit a0d1f7f

5 files changed

Lines changed: 4 additions & 161 deletions

File tree

Gemfile

Lines changed: 0 additions & 5 deletions
This file was deleted.

Gemfile.lock

Lines changed: 0 additions & 20 deletions
This file was deleted.

script/README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,6 @@ Given: /enterprise/admin/installation/upgrading-github-enterprise Returns: /ente
265265
### [`graphql/utils/process-upcoming-changes.js`](graphql/utils/process-upcoming-changes.js)
266266

267267

268-
269-
---
270-
271-
272-
### [`graphql/utils/remove-hidden-schema-members.rb`](graphql/utils/remove-hidden-schema-members.rb)
273-
274-
275-
276268
---
277269

278270

@@ -503,4 +495,4 @@ This script crawls the script directory, hooks on special comment markers in eac
503495

504496

505497

506-
---
498+
---

script/graphql/update-files.js

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ try {
3232
process.exit(1)
3333
}
3434

35-
// TODO this step is only required as long as we support GHE versions *OLDER THAN* 2.21
36-
// as soon as 2.20 is deprecated on 2021-02-11, we can remove all graphql-ruby filtering
37-
const removeHiddenMembersScript = path.join(__dirname, './utils/remove-hidden-schema-members.rb')
38-
3935
const versionsToBuild = Object.keys(allVersions)
4036

4137
const currentLanguage = 'en'
@@ -81,9 +77,8 @@ async function main () {
8177
const schemaPath = getDataFilepath('schemas', graphqlVersion)
8278
const previousSchemaString = fs.readFileSync(schemaPath, 'utf8')
8379
const latestSchema = await getRemoteRawContent(schemaPath, graphqlVersion)
84-
const safeForPublicSchema = removeHiddenMembers(schemaPath, latestSchema)
85-
updateFile(schemaPath, safeForPublicSchema)
86-
const schemaJsonPerVersion = await processSchemas(safeForPublicSchema, safeForPublicPreviews)
80+
updateFile(schemaPath, latestSchema)
81+
const schemaJsonPerVersion = await processSchemas(latestSchema, safeForPublicPreviews)
8782
updateStaticFile(schemaJsonPerVersion, path.join(graphqlStaticDir, `schema-${graphqlVersion}.json`))
8883

8984
// Add some version specific data to the context
@@ -103,7 +98,7 @@ async function main () {
10398
// The Changelog is only build for free-pro-team@latest
10499
const changelogEntry = await createChangelogEntry(
105100
previousSchemaString,
106-
safeForPublicSchema,
101+
latestSchema,
107102
safeForPublicPreviews,
108103
previousUpcomingChanges.upcoming_changes,
109104
yaml.load(safeForPublicChanges).upcoming_changes
@@ -196,14 +191,3 @@ function updateStaticFile (json, filepath) {
196191
const jsonString = JSON.stringify(json, null, 2)
197192
updateFile(filepath, jsonString)
198193
}
199-
200-
// run Ruby script to remove featureFlagged directives and other hidden members
201-
function removeHiddenMembers (schemaPath, latestSchema) {
202-
// have to write a temp file because the schema is too big to store in memory
203-
const tempSchemaFilePath = `${schemaPath}-TEMP`
204-
fs.writeFileSync(tempSchemaFilePath, latestSchema)
205-
const remoteClean = execSync(`${removeHiddenMembersScript} ${tempSchemaFilePath}`).toString()
206-
fs.unlinkSync(tempSchemaFilePath)
207-
208-
return remoteClean
209-
}

script/graphql/utils/remove-hidden-schema-members.rb

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)