Skip to content
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

Update apollo to 4.0.0 #92

Merged
merged 3 commits into from
Sep 23, 2024
Merged

Update apollo to 4.0.0 #92

merged 3 commits into from
Sep 23, 2024

Conversation

xmadera
Copy link
Member

@xmadera xmadera commented Sep 12, 2024

No description provided.

Copy link
Member

@matejsemancik matejsemancik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One little tweak needed, otherwise I think we should be fine. We need to test this on real project with normalized cache.

Comment on lines 131 to 143
if (response.hasErrors()) {
throw NetworkError.CloudError(
code = errorResponseParser.getErrorResponseCode(response),
message = errorResponseParser.getErrorMessage(response) ?: "",
message = errorResponseParser.getErrorMessage(response),
)
}

// Non-compliant server, if data is null, there should be at least one error
throw NetworkError.CloudError(
code = errorResponseParser.getErrorResponseCode(response),
message = errorResponseParser.getErrorMessage(response),
)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This two throws are duplicated and can be merged into single throw

// Non-compliant server, if data is null, there should be at least one error, or
// A GraphQL request error happened or a Graph field error bubbled up.
throw NetworkError.CloudError(
    code = errorResponseParser.getErrorResponseCode(response),
    message = errorResponseParser.getErrorMessage(response)
)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed ✅

matejsemancik
matejsemancik previously approved these changes Sep 23, 2024
Base automatically changed from feature/update-libs to develop September 23, 2024 08:15
@matejsemancik matejsemancik dismissed their stale review September 23, 2024 08:15

The base branch was changed.

Copy link

5 Warnings
⚠️ Feature or fix PR title should include JIRA-ID and short description.
⚠️ Feature or fix PR branch name should include JIRA-ID and short description.
⚠️ KLIB resolver: The same 'unique_name=resources_commonMain' found in more than one library: /Users/runnerm1/actions-runner/_work/kmp-futured-template/kmp-futured-template/shared/feature/build/kotlinTransformedMetadataLibraries/commonMain/dev.icerock.moko-resources-0.24.0-commonMain-3vAcDQ.klib, /Users/runnerm1/actions-runner/_work/kmp-futured-template/kmp-futured-template/shared/resources/build/classes/kotlin/metadata/commonMain
⚠️ KLIB resolver: The same 'unique_name=runtime_commonMain' found in more than one library: /Users/runnerm1/actions-runner/_work/kmp-futured-template/kmp-futured-template/shared/feature/build/kotlinTransformedMetadataLibraries/nativeMain/app.cash.sqldelight-runtime-2.0.1-commonMain-wyRdBg.klib, /Users/runnerm1/actions-runner/_work/kmp-futured-template/kmp-futured-template/shared/feature/build/kotlinTransformedMetadataLibraries/nativeMain/org.jetbrains.compose.runtime-runtime-1.6.11-commonMain-CVJWAg.klib
⚠️ Search path '/Users/runnerm1/actions-runner/_work/kmp-futured-template/kmp-futured-template/iosApp/../shared/app/build/xcode-frameworks/Debug/iphonesimulator17.5' not found
2 Messages
📖 iosAppTests: Executed 1 test, with 0 failures (0 expected) in 0.001 (0.002) seconds
📖 iosAppUITests: Executed 1 test, with 0 failures (0 expected) in 29.676 (29.678) seconds

Generated by 🚫 Danger

@matejsemancik matejsemancik merged commit d293f58 into develop Sep 23, 2024
5 checks passed
@matejsemancik matejsemancik deleted the feature/update-apollo branch September 23, 2024 13:54
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