Skip to content

Commit d5a71af

Browse files
tyao1meta-codesync[bot]
authored andcommitted
Revert D97396237: Fix incremental build missing mutation field return type changes
Differential Revision: D97396237 Original commit changeset: a810c53cc55e Original Phabricator Diff: D97396237 fbshipit-source-id: 66da642bbfc5d1c5edfca163bb9fd6f1e25c597c
1 parent f22ed80 commit d5a71af

File tree

4 files changed

+1
-202
lines changed

4 files changed

+1
-202
lines changed

compiler/crates/dependency-analyzer/src/schema_change_analyzer.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,6 @@ impl Visitor for SchemaChangeDefinitionFinder<'_, '_> {
257257
const VISIT_ARGUMENTS: bool = true;
258258
const VISIT_DIRECTIVES: bool = true;
259259

260-
fn visit_operation(&mut self, operation: &OperationDefinition) {
261-
self.add_type_changes(operation.type_);
262-
self.default_visit_operation(operation);
263-
}
264-
265260
fn visit_linked_field(&mut self, field: &LinkedField) {
266261
let id = field.definition.item;
267262
let type_ = self.schema.field(id).type_.inner();

compiler/crates/relay-compiler/tests/relay_compiler_integration/fixtures/incremental_mutation_field_return_type_change.expected

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

compiler/crates/relay-compiler/tests/relay_compiler_integration/fixtures/incremental_mutation_field_return_type_change.input

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

compiler/crates/relay-compiler/tests/relay_compiler_integration_test.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<ec420c2ce9c33bcedd2ab80b8b83f4a3>>
7+
* @generated SignedSource<<ecd8eb6892f4e4f149adb77cb2b3ef0a>>
88
*/
99

1010
mod relay_compiler_integration;
@@ -250,13 +250,6 @@ async fn incremental_input_object_removed() {
250250
test_fixture(transform_fixture, file!(), "incremental_input_object_removed.input", "relay_compiler_integration/fixtures/incremental_input_object_removed.expected", input, expected).await;
251251
}
252252

253-
#[tokio::test]
254-
async fn incremental_mutation_field_return_type_change() {
255-
let input = include_str!("relay_compiler_integration/fixtures/incremental_mutation_field_return_type_change.input");
256-
let expected = include_str!("relay_compiler_integration/fixtures/incremental_mutation_field_return_type_change.expected");
257-
test_fixture(transform_fixture, file!(), "incremental_mutation_field_return_type_change.input", "relay_compiler_integration/fixtures/incremental_mutation_field_return_type_change.expected", input, expected).await;
258-
}
259-
260253
#[tokio::test]
261254
async fn incremental_object_added_with_interface() {
262255
let input = include_str!("relay_compiler_integration/fixtures/incremental_object_added_with_interface.input");

0 commit comments

Comments
 (0)