Assigned
Status Update
Comments
ds...@google.com <ds...@google.com>
ds...@google.com <ds...@google.com> #2
- Application get crashed when Recylerview reach at end(last page). Inside GithubRemoteMediator.kt I have set val endOfPaginationReached = page > 2 to allow maximum 2 pages for testing. So, the problem is when I reach at the last page of list, application get crashed as remoteKeys.nextKey is null(as we have set nextKey=null for last page of list).
Do you have a stack trace for the crash you could share?
- Offline cache broken How to support caching when application is open without internet connection. currently it is showing retry button. How to show previously loaded data. I have tried to fix this by removing
This might be due to loadStateFlow / listener logic on the PagingDataAdapter which hides / shows UI elements based on load state. You'll want to modify that logic to only listen to remote errors and not the local ones as well.
Description
Please describe your requested enhancement. Good feature requests will solve common problems or enable new use cases.
#What you would like to accomplish:
Currently, to use Bigquery ML model in the Vertex AI batch prediction, need to use the REST function with the configuration [1]. However, we would like to use the model directly in the console menu.
[1]instanceConfig.instanceType="object"
#How this might work:
if the above configuration could be set in the console UI, it should be work.
#If applicable, reasons why alternative solutions are not sufficient:
complicated workflow until initiating it
#Other information (workarounds you have tried, documentation consulted, etc):
example of currently used REST command
PROJECT_ID="project_id"
PROJECT_NUMBER="project_number"
REGION="us-central1"
ENDPOINT="${REGION}-
API_VERSION="v1beta1"
BP_JOB_NAME="BP_testing_`date +%Y%m%d_%H%M%S`"
MODEL_URI="projects/${PROJECT_NUMBER}/locations/${REGION}/models/{MODEL_ID}"
INPUT_PATH="bq://{project}.{dataset}.{table}"
OUTPUT_PATH="bq://{project}.{dataset}.{table}"
curl \
-X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json" \
https://${ENDPOINT}/${API_VERSION}/projects/${PROJECT_ID}/locations/${REGION}/batchPredictionJobs \
-d '{
"name": "'${BP_JOB_NAME}'",
"displayName": "'${BP_JOB_NAME}'",
"model": "'${MODEL_URI}'",
"inputConfig": {
"instancesFormat":"Bigquery",
"BigquerySource":{
"inputUri" : "'${INPUT_PATH}'"
}
},
"outputConfig": {
"predictionsFormat":"Bigquery",
"BigqueryDestination":{
"outputUri" : "'${OUTPUT_PATH}'"
}
},
"dedicatedResources": {
"machineSpec":{
"machineType":"n1-standard-2"
}
},
"instanceConfig": {
"instanceType":"object"
}
}'