aws-amplify / aws-amplify/amplify-android
Include mutationType property for SUBSCRIPTION_DATA_PROCESSED event
- Dominant language
- Java
- Stars
- 287
- Forks
- 132
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 45
Description
### Before opening, please confirm:
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-android/issues?q=is%3Aissue+) and [discussions](https://github.com/aws-amplify/amplify-android/discussions).
### Language and Async Model
Kotlin
### Amplify Categories
Authentication, GraphQL API, DataStore, Storage
### Gradle script dependencies
```groovy
// Put output below this line
implementation 'com.amplifyframework:core:1.22.0'
implementation 'com.amplifyframework:aws-auth-cognito:1.22.0'
implementation 'com.amplifyframework:aws-storage-s3:1.22.0'
implementation 'com.amplifyframework:aws-datastore:1.22.0'
implementation 'com.amplifyframework:aws-api:1.22.0'
```
### Environment information
```
# Put output below this line
------------------------------------------------------------
Gradle 6.1.1
------------------------------------------------------------
Build time: 2020-01-24 22:30:24 UTC
Revision: a8c3750babb99d1894378073499d6716a1a1fa5d
Kotlin: 1.3.61
Groovy: 2.5.8
Ant: Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM: 1.8.0_192 (Oracle Corporation 25.192-b12)
OS: Mac OS X 10.16 x86_64
```
### Please include any relevant guides or documentation you're referencing
_No response_
### Describe the bug
In the Amplify iOS SDK there is the `HubPayload.EventName.DataStore.syncReceived` event, with a `mutationType` property.
The corresponding Android event is `DataStoreChannelEventName.SUBSCRIPTION_DATA_PROCESSED`, which is missing the `mutationType` property.
Would it be possible to add it please?
### Reproduction steps (if applicable)
_No response_
### Code Snippet
```java
// Put your code below this line.
```
### Log output
```
// Put your logs below this line
```
### amplifyconfiguration.json
_No response_
### GraphQL Schema
```graphql
// Put your schema below this line
```
### Additional information and screenshots
_No response_
Contributor guide
Research direction
The issue identifies DataStoreChannelEventName.SUBSCRIPTION_DATA_PROCESSED and its missing mutationType property; start by locating that event's definition and payload construction. Compare the Android event with the iOS DataStore syncReceived behavior described here, then inspect related tests. Done means subscribers can read mutationType from the Android event.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- api, databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100