-
Notifications
You must be signed in to change notification settings - Fork 651
dataconnect: DataConnectExecutableVersions.json updated with versions 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.6.0, 2.6.1, and 2.6.2 #7003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.6.0, 2.6.1, and 2.6.2
Adding `@check` to a field with side effects became illegal since cl/756896487. The fix in this commit adds a "query" field (which has no side effects) and, instead, attaches the `@check` directive to that. This fixes the following 2 test failures in `OperationExecutionErrorsIntegrationTest`: * `executeMutationFailsWithNonNullDataNonEmptyErrorsDecodingSucceeds` * `executeMutationFailsWithNonNullDataNonEmptyErrorsDecodingFails` The test failures looked like this: ``` io.kotest.assertions.MultiAssertionError: The following 2 assertions failed: 1) exception.message "operation encountered errors during execution: [mutation.createPersonWithPartialFailure.person2: @check is disallowed on side-effect fields unless the operation has @transaction]" should contain the substring "ecxpjy4qfy" with non-abutting text at com.google.firebase.dataconnect.testutil.TestUtilsKt.shouldContainWithNonAbuttingText(TestUtils.kt:79) 2) exception.response.rawData Expected [("person1", [("id", "com.google.firebase.dataconnect.OperationExecutionErrorsIntegrationTest.executeMutationFailsWithNonNullDataNonEmptyErrorsDecodingFails_vNGzY61U2l3DkpBiK4s1")]), ("person2", <null>)] but actual was null at com.google.firebase.dataconnect.testutil.DataConnectOperationExceptionTestUtilsKt.shouldSatisfy(DataConnectOperationExceptionTestUtils.kt:74) at com.google.firebase.dataconnect.testutil.DataConnectOperationExceptionTestUtilsKt.shouldSatisfy(DataConnectOperationExceptionTestUtils.kt:266) at com.google.firebase.dataconnect.OperationExecutionErrorsIntegrationTest$executeMutationFailsWithNonNullDataNonEmptyErrorsDecodingFails$1.invokeSuspend(OperationExecutionErrorsIntegrationTest.kt:224) ```
…ansaction: `executeMutationFailsWithNonNullDataNonEmptyErrorsDecodingFailsInTransaction`
📝 PRs merging into main branchOur main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released. |
Size Report 1Affected ProductsNo changes between base commit (b2fe881) and merge commit (f189871).Test Logs |
Coverage Report 1Affected Products
Test Logs |
DataConnectExecutableVersions.json updated with versions 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.6.0, 2.6.1, and 2.6.2 by running:
As part of this upgrade, 2 test failures needed to be fixed because the
@checkdirective on a field with side effects became illegal since cl/756896487. The fix in this PR adds a "query" field (which has no side effects) and, instead, attaches the@checkdirective to that.This fixes the following 2 test failures in
OperationExecutionErrorsIntegrationTest:executeMutationFailsWithNonNullDataNonEmptyErrorsDecodingSucceedsexecuteMutationFailsWithNonNullDataNonEmptyErrorsDecodingFailsThe test failures looked like this: