[BUG] The incorrect splicing of the GitHub API results in empty data from the request.
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
Research direction
Start with advanced/start/app/src/main/java/com/example/android/codelabs/paging/data/GithubRepository.kt and advanced/end/app/src/main/java/com/example/android/codelabs/paging/data/GithubRemoteMediator.kt, then compare their apiQuery construction with IN_QUALIFIER in the corresponding GithubService.kt files. Verify that a query such as “Android” produces the documented GitHub search URL and returns repository items in both projects.
Written by the indexing model from the issue text.
Description
Hey there, I recently tried the demo codelab-android-paging/tree/main/advanced/start, and found the list always empty, according to the latest official document the reason is the apiQuery used in both start and end project missed a + between query and IN_QUALIFIER:
as in the start project:
IN_QUALIFIER:
apiQuery:
Same code in [codelab-android-paging/tree/main/advanced/end](https://github.com/android/codelab-android-paging/tree/main/advanced/end)
if we input a query as "Android", the final network request URL will be "https://api.github.com/search/repositories?sort=stars&q=Androidin%3Aname%2Cdescription&page=1&per_page=30"
and the result:
{
"total_count": 0,
"incomplete_results": false,
"items": [
]
}
after we add a + :
and the result:
{
"total_count": 64,
"incomplete_results": false,
"items": [
...
]
}
- Dominant language
- Kotlin
- Stars
- 509
- Forks
- 268
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from android/codelab-android-paging
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
android/codelab-android-paging#236 · 3 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
Difficulty 2/5 1-2 days Newbie friendliness 35/100
android/codelab-android-paging#241 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 15/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
All issues in android/codelab-android-paging
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·
-
Issue: Bug
Difficulty 1/5 Under an hour Newbie friendliness 91/100
OpenAPITools/openapi-generator#24978 ·
-
helsemelding-json-schema json-schema-core
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
contributor: external needs review
Difficulty 2/5 1-3 hours Newbie friendliness 82/100