You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Put output below this linedef amplify_version ="1.28.0"
implementation 'com.amplifyframework:core-kotlin:0.12.0'
implementation "com.amplifyframework:aws-storage-s3:$amplify_version"
implementation "com.amplifyframework:aws-auth-cognito:$amplify_version"
implementation "com.amplifyframework:aws-api:$amplify_version"
implementation "com.amplifyframework:aws-datastore:$amplify_version"
Environment information
# Put output below this line
Please include any relevant guides or documentation you're referencing
AWSDataStorePlugin.java
Describe the bug
I have noticed an issue with AWSDataStorePlugin::observe when using a QueryPredicate where the changed item is not being returned to the observer due to the changed item being evaluated incorrectly
Reproduction steps (if applicable)
No response
Code Snippet
when using a predicate such as Inspection.ORG_ID.eq(organization) the observer is not returning the result of any changes that do match the predicate, I have had a look into the observe method and believe the reason is the evaluate parameter
selectionCriteria.evaluate(itemChange)
Removing the query predicate does return the result and I have used the evaluate method to see what the evaluation result should be:
Before opening, please confirm:
Language and Async Model
Kotlin
Amplify Categories
DataStore
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
AWSDataStorePlugin.java
Describe the bug
I have noticed an issue with AWSDataStorePlugin::observe when using a QueryPredicate where the changed item is not being returned to the observer due to the changed item being evaluated incorrectly
Reproduction steps (if applicable)
No response
Code Snippet
when using a predicate such as Inspection.ORG_ID.eq(organization) the observer is not returning the result of any changes that do match the predicate, I have had a look into the observe method and believe the reason is the evaluate parameter
Removing the query predicate does return the result and I have used the evaluate method to see what the evaluation result should be:
This is the AWSDataStorePlugin method being used:
Log output
No response
amplifyconfiguration.json
No response
GraphQL Schema
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: