We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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:
apiQuery
+
query
IN_QUALIFIER
as in the start project:
IN_QUALIFIER:
codelab-android-paging/advanced/start/app/src/main/java/com/example/android/codelabs/paging/api/GithubService.kt
Line 27 in d1f28e0
apiQuery:
codelab-android-paging/advanced/start/app/src/main/java/com/example/android/codelabs/paging/data/GithubRepository.kt
Line 80 in d1f28e0
codelab-android-paging/advanced/end/app/src/main/java/com/example/android/codelabs/paging/api/GithubService.kt
codelab-android-paging/advanced/end/app/src/main/java/com/example/android/codelabs/paging/data/GithubRemoteMediator.kt
Line 85 in d1f28e0
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 + :
"https://api.github.com/search/repositories?sort=stars&q=Android%2Bin%3Aname%2Cdescription&page=1&per_page=30"
{ "total_count": 64, "incomplete_results": false, "items": [ ... ] }
The text was updated successfully, but these errors were encountered:
fix: BUG android#243 The incorrect splicing of the GitHub API results…
ab4a757
… in empty data from the request.
another option, is to have a space between the query and the IN_QUALIFIER:
val apiQuery = "$query $IN_QUALIFIER"
Sorry, something went wrong.
No branches or pull requests
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+
betweenquery
andIN_QUALIFIER
:as in the start project:
IN_QUALIFIER:
codelab-android-paging/advanced/start/app/src/main/java/com/example/android/codelabs/paging/api/GithubService.kt
Line 27 in d1f28e0
apiQuery
:codelab-android-paging/advanced/start/app/src/main/java/com/example/android/codelabs/paging/data/GithubRepository.kt
Line 80 in d1f28e0
Same code in [codelab-android-paging/tree/main/advanced/end](https://github.com/android/codelab-android-paging/tree/main/advanced/end)
codelab-android-paging/advanced/end/app/src/main/java/com/example/android/codelabs/paging/api/GithubService.kt
Line 27 in d1f28e0
codelab-android-paging/advanced/end/app/src/main/java/com/example/android/codelabs/paging/data/GithubRemoteMediator.kt
Line 85 in d1f28e0
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:
after we add a
+
:"https://api.github.com/search/repositories?sort=stars&q=Android%2Bin%3Aname%2Cdescription&page=1&per_page=30"
and the result:
The text was updated successfully, but these errors were encountered: