Skip to content

SourceLocations can be turned off#2439

Merged
bbakerman merged 4 commits intomasterfrom
no_source_location
Jul 15, 2021
Merged

SourceLocations can be turned off#2439
bbakerman merged 4 commits intomasterfrom
no_source_location

Conversation

@bbakerman
Copy link
Copy Markdown
Member

By default they are LEFT ON - but if some one is determined to save memory OR we decide in the future, then we can turn them off (say just for SDL)

Dependent on #2438

@bbakerman bbakerman added this to the 17.0 milestone Jul 9, 2021
@bbakerman
Copy link
Copy Markdown
Member Author

DataFetcherWithErrorsAndDataTest
ExecutableDefinitionsTest
GraphqlErrorBuilderTest
GraphQLTest
InterfacesImplementingInterfacesTest
IssueNonNullDefaultAttribute
LineNumberingTest
OverlappingFieldsCanBeMergedTest
ParserTest
SchemaGeneratorTest
SchemaTypeCheckerTest
SchemaTypeDirectivesCheckerTest
SDLParserTest
UniqueDirectiveNamesPerLocationTest
UniqueFragmentNamesTest
UniqueOperationNamesTest

are the tests that break if SourceLocations are naively turned off. Most are asserting on a SourceLocation being the source of the error for test assertion reasons.

Looking at the runtime code, SourceLocation is treated as a read only thing. I cant see much code that deconstructs a SourceLocation

# Conflicts:
#	src/main/java/graphql/parser/ParserOptions.java
# Conflicts:
#	src/test/groovy/graphql/parser/ParserTest.groovy
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