DataStore persistence not working

Describe the bug
While trying to maintain persistence in AWS DataStore by pushing to the cloud, Data is not persisted to AWS AppSync.
AMPLIFYCONFIGURATION.JSON
{
    "UserAgent": "aws-amplify-cli/2.0",
    "Version": "1.0",
    "api": {
        "plugins": {
            "awsAPIPlugin": {
                "equestlyride": {
                    "endpointType": "GraphQL",
                    "endpoint": "https://xxxxxx.appsync-api.us-east-1.amazonaws.com/graphql",
                    "region": "us-east-1",
                    "authorizationType": "AMAZON_COGNITO_USER_POOLS",
                    "apiKey": ""
                }
            }
        }
    },
    "auth": {
        "plugins": {
            "awsCognitoAuthPlugin": {
                "UserAgent": "aws-amplify/cli",
                "Version": "0.1.0",
                "IdentityManager": {
                    "Default": {}
                },
                "CredentialsProvider": {
                    "CognitoIdentity": {
                        "Default": {
                            "PoolId": "us-east-1:e1890af2-49dd-4250-b9fc-xxxxxxxx",
                            "Region": "us-east-1"
                        }
                    }
                },
                "CognitoUserPool": {
                    "Default": {
                        "PoolId": "us-east-xxxxxx",
                        "AppClientId": "xxxxxx",
                        "Region": "us-east-1"
                    }
                },
                "Auth": {
                    "Default": {
                        "authenticationFlowType": "USER_SRP_AUTH",
                        "socialProviders": [],
                        "usernameAttributes": [
                            "EMAIL"
                        ],
                        "signupAttributes": [
                            "EMAIL"
                        ],
                        "passwordProtectionSettings": {
                            "passwordPolicyMinLength": 8,
                            "passwordPolicyCharacters": []
                        },
                        "mfaConfiguration": "OFF",
                        "mfaTypes": [
                            "SMS"
                        ],
                        "verificationMechanisms": [
                            "EMAIL"
                        ]
                    }
                },
                "AppSync": {
                    "Default": {
                        "ApiUrl": "https://xxxxxx.appsync-api.us-east-1.amazonaws.com/graphql",
                        "Region": "us-east-1",
                        "AuthMode": "AMAZON_COGNITO_USER_POOLS",
                        "ClientDatabasePrefix": "equestlyride_AMAZON_COGNITO_USER_POOLS"
                    },
                    "equestlyride_API_KEY": {
                        "ApiUrl": "https://xxxxxx.appsync-api.us-east-1.amazonaws.com/graphql",
                        "Region": "us-east-1",
                        "AuthMode": "API_KEY",
                        "ApiKey": "",
                        "ClientDatabasePrefix": "equestlyride_API_KEY"
                    }
                }
            }
        }
    }
}

APP DELEGATE SET UP
import Foundation
import SwiftUI
import Amplify
import AWSCognitoAuthPlugin
import AWSDataStorePlugin
import AWSAPIPlugin

class AppDelegate: NSObject, UIApplicationDelegate {

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

        do {
            try Amplify.add(plugin: AWSCognitoAuthPlugin())
            try Amplify.add(plugin: AWSDataStorePlugin(modelRegistration: AmplifyModels()))
            try Amplify.add(plugin: AWSAPIPlugin())
            try Amplify.configure()
            Amplify.DataStore.start{ (result) in
                switch(result) {
                    case .success:
                        print("DataStore started")
                    case .failure(let error):
                        print("Error starting DataStore:\(error)")
                }
            }
            print("Amplify configured with auth plugin")
            print("Amplify configured with dataStore plugin")
            print("Amplify configured with API plugin")
        } catch {
            print("Failed to initialize Amplify with \(error)")
        }

        return true
    }
}

SCHEMA.GRAPHQL
# This "input" configures a global authorization rule to enable public access to
# all models in this schema. Learn more about authorization rules here: https://docs.amplify.aws/cli/graphql/authorization-rules

# input AMPLIFY { globalAuthRule: AuthRule = { allow: public } } # FOR TESTING ONLY!

type User @model @auth(rules: [{ allow: owner }]) {
  id: ID!
  username: String!
  firstName: String
  lastName: String
  subscriptionType: Int
  rides: [Ride] @hasMany
  calendarItems: [CalendarEvent] @hasMany
  cartID : ID
  cart: UserCart @hasOne (fields:["cartID"])
}

type Ride @model @auth(rules: [{ allow: owner }]) {
  id: ID!
  distance: Float!
  duration: Int!
  timestamp: AWSTimestamp!
  locations: [Location] @hasMany(indexName: "fromRide", fields: ["id"])
}

type Location @model @auth(rules: [{ allow: owner }]) {
  rideID: ID! @index(name: "fromRide")
  latitude: Float!
  longitude: Float!
  timestamp: AWSTimestamp!
  ride: Ride @belongsTo(fields: ["rideID"])
}

type CalendarEvent @model @auth(rules: [{ allow: owner }]){
  id: ID!
  title: String!
  timestamp: AWSTimestamp!
}

type UserCart @model @auth(rules: [{ allow: owner }]){
  id: ID!
  products: [SelectedProducts]
}

type SelectedProducts{
  id: ID!
  variantID: String!
}

When writing to CalendarEvent, I implemented a publisher to notify when changes were made as per documentation as shown below
func subscribeToPosts() {
        postsSubscription = Amplify.DataStore.publisher(for: CalendarEvent.self)
            .sink {
                if case let .failure(error) = $0 {
                    print("Subscription received error - \(error.localizedDescription)")
                }
            }
            receiveValue: { changes in
                // handle incoming changes
                print("Subscription received mutation: \(changes)")
            }
    }

I then receive:
Subscription received mutation: MutationEvent(id: "BF9F8445-4E9D-4048-876E-32FCEA79505C", modelId: "31AA572E-AAB8-40D9-873D-FB155B9769CE", modelName: "CalendarEvent", json: "{\"id\":\"31AA572E-AAB8-40D9-873D-FB155B9769CE\",\"title\":\"Eeer\",\"timestamp\":1646795797}", mutationType: "create", createdAt: Amplify.Temporal.DateTime(foundationDate: 2022-03-09 03:16:41 +0000), version: nil, inProcess: false, graphQLFilterJSON: nil)

But later, when querying AWS AppSync, there are no items. I have also verified against DynamoDB. No items are persisted.
Steps To Reproduce
Code Snipets + configuration files provided above

Expected behavior
I expect persistence to backend
Amplify Framework Version
1.21.0
Amplify Categories
API, DataStore
Dependency manager
Swift PM
Swift version
5.0
CLI version
7.6.23
Xcode version
13.2.1 (13C100)
Relevant log output
Not applicable

Is this a regression?
No
Regression additional context
No response
Device
Iphone 12ProMax
iOS Version
15.3.1
Specific to simulators
No
Additional context
No response

Thanks for opening this issue.  We will investigate and provide an update here when we have more information.

Hi @carl0sLOL, I updated your description and redacted the AWS resource information. Do you have any relevant logs you can show? In application(didFinishLaunchingWithOptions), you can enable verbose logging with
Amplify.Logging.logLevel = .verbose

From the configuration, it appears the ApiKey is missing. Did you redact this? if not, this looks like a problem.
From the schema and configuration, it also appears you are allowing owner auth. Have you built the auth flow to sign in the user? Only authenticated users will successfully pass data to AppSync and the rule is to deny-by-default

Hi @lawmicha thank you for your prompt response. I purposely redacted API keys. The user goes through an Authentication flow using Amplify.Auth.signIn(username:userName, password: pw). I turned on logging and received this:

DataStore started
Amplify configured with auth plugin
Amplify configured with dataStore plugin
Amplify configured with API plugin
2022-03-09 12:10:59.452503-0500 Equestly Ride[2393:805836] [RetryableGraphQLSubscriptionOperation<MutationSync>] [90AC6E96-8032-4C2A-A550-ACB7E9C228C4] - Try [1/1]
2022-03-09 12:10:59.463604-0500 Equestly Ride[2393:805838] [IncomingAsyncSubscriptionEventPublisher] onCreateValueListener: connection(Amplify.SubscriptionConnectionState.connecting)
2022-03-09 12:10:59.464778-0500 Equestly Ride[2393:805836] [RetryableGraphQLSubscriptionOperation<MutationSync>] [5DF056BE-0C4D-4AB5-BC86-A864C864A9BF] - Try [1/1]
2022-03-09 12:10:59.464926-0500 Equestly Ride[2393:805839] [IncomingAsyncSubscriptionEventPublisher] onUpdateValueListener: connection(Amplify.SubscriptionConnectionState.connecting)
Got user cart
2022-03-09 12:10:59.476508-0500 Equestly Ride[2393:805836] [RetryableGraphQLSubscriptionOperation<MutationSync>] [34EE0CFF-9492-4B10-B629-6B8AAE4AF97B] - Try [1/1]
2022-03-09 12:10:59.476978-0500 Equestly Ride[2393:805838] [IncomingAsyncSubscriptionEventPublisher] onDeleteValueListener: connection(Amplify.SubscriptionConnectionState.connecting)
2022-03-09 12:10:59.478046-0500 Equestly Ride[2393:805836] [IncomingAsyncSubscriptionEventToAnyModelMapper] Received subscription: PassthroughSubject
2022-03-09 12:10:59.482964-0500 Equestly Ride[2393:805836] [RetryableGraphQLSubscriptionOperation<MutationSync>] [64ED81A0-AFDE-4CD2-B95E-904A767BC245] - Try [1/1]
2022-03-09 12:10:59.483435-0500 Equestly Ride[2393:805843] [IncomingAsyncSubscriptionEventPublisher] onCreateValueListener: connection(Amplify.SubscriptionConnectionState.connecting)
2022-03-09 12:10:59.486659-0500 Equestly Ride[2393:805836] [RetryableGraphQLSubscriptionOperation<MutationSync>] [53B9CFFC-1DAB-4C2A-A935-865D430D15BC] - Try [1/1]
2022-03-09 12:10:59.486864-0500 Equestly Ride[2393:805843] [IncomingAsyncSubscriptionEventPublisher] onUpdateValueListener: connection(Amplify.SubscriptionConnectionState.connecting)
2022-03-09 12:10:59.490177-0500 Equestly Ride[2393:805836] [RetryableGraphQLSubscriptionOperation<MutationSync>] [F7F47F83-4572-4D94-9F18-CF12333130FF] - Try [1/1]
2022-03-09 12:10:59.490246-0500 Equestly Ride[2393:805836] [IncomingAsyncSubscriptionEventToAnyModelMapper] Received subscription: PassthroughSubject
2022-03-09 12:10:59.490552-0500 Equestly Ride[2393:805863] [IncomingAsyncSubscriptionEventPublisher] onDeleteValueListener: connection(Amplify.SubscriptionConnectionState.connecting)
2022-03-09 12:10:59.494469-0500 Equestly Ride[2393:805836] [RetryableGraphQLSubscriptionOperation<MutationSync>] [5DD4AAE6-0157-4160-82C5-BC12511C6957] - Try [1/1]
2022-03-09 12:10:59.494640-0500 Equestly Ride[2393:805862] [IncomingAsyncSubscriptionEventPublisher] onCreateValueListener: connection(Amplify.SubscriptionConnectionState.connecting)
2022-03-09 12:10:59.505545-0500 Equestly Ride[2393:805836] [RetryableGraphQLSubscriptionOperation<MutationSync>] [2316C8F1-0CBC-4FFD-AB47-59D484096D52] - Try [1/1]
2022-03-09 12:10:59.505909-0500 Equestly Ride[2393:805862] [IncomingAsyncSubscriptionEventPublisher] onUpdateValueListener: connection(Amplify.SubscriptionConnectionState.connecting)
2022-03-09 12:10:59.510814-0500 Equestly Ride[2393:805836] [RetryableGraphQLSubscriptionOperation<MutationSync>] [0CEC8C51-E917-4860-8DAF-288EABB370A8] - Try [1/1]
2022-03-09 12:10:59.510954-0500 Equestly Ride[2393:805836] [IncomingAsyncSubscriptionEventToAnyModelMapper] Received subscription: PassthroughSubject
2022-03-09 12:10:59.511189-0500 Equestly Ride[2393:805843] [IncomingAsyncSubscriptionEventPublisher] onDeleteValueListener: connection(Amplify.SubscriptionConnectionState.connecting)
2022-03-09 12:10:59.515643-0500 Equestly Ride[2393:805836] [RetryableGraphQLSubscriptionOperation<MutationSync>] [8C1A6C26-8F6F-449D-9CFB-AB68711F4616] - Try [1/1]
2022-03-09 12:10:59.515847-0500 Equestly Ride[2393:805843] [IncomingAsyncSubscriptionEventPublisher] onCreateValueListener: connection(Amplify.SubscriptionConnectionState.connecting)
2022-03-09 12:10:59.520023-0500 Equestly Ride[2393:805836] [RetryableGraphQLSubscriptionOperation<MutationSync>] [F57D7C37-0721-4A31-B3D5-7896F35DD728] - Try [1/1]
2022-03-09 12:10:59.520231-0500 Equestly Ride[2393:805864] [IncomingAsyncSubscriptionEventPublisher] onUpdateValueListener: connection(Amplify.SubscriptionConnectionState.connecting)
2022-03-09 12:10:59.523785-0500 Equestly Ride[2393:805836] [RetryableGraphQLSubscriptionOperation<MutationSync>] [E4B9D2D0-120C-4D3E-879D-89480365CAEF] - Try [1/1]
2022-03-09 12:10:59.523832-0500 Equestly Ride[2393:805836] [IncomingAsyncSubscriptionEventToAnyModelMapper] Received subscription: PassthroughSubject
2022-03-09 12:10:59.523992-0500 Equestly Ride[2393:805841] [IncomingAsyncSubscriptionEventPublisher] onDeleteValueListener: connection(Amplify.SubscriptionConnectionState.connecting)
2022-03-09 12:10:59.526753-0500 Equestly Ride[2393:805836] [RetryableGraphQLSubscriptionOperation<MutationSync>] [CA7C3314-BAFB-4C12-A0E8-84B310CE8E53] - Try [1/1]
2022-03-09 12:10:59.526885-0500 Equestly Ride[2393:805862] [IncomingAsyncSubscriptionEventPublisher] onCreateValueListener: connection(Amplify.SubscriptionConnectionState.connecting)
2022-03-09 12:10:59.530307-0500 Equestly Ride[2393:805836] [RetryableGraphQLSubscriptionOperation<MutationSync>] [49EB50DF-B17A-4311-BB5D-7C4417ECB909] - Try [1/1]
2022-03-09 12:10:59.530601-0500 Equestly Ride[2393:805841] [IncomingAsyncSubscriptionEventPublisher] onUpdateValueListener: connection(Amplify.SubscriptionConnectionState.connecting)
2022-03-09 12:10:59.533310-0500 Equestly Ride[2393:805836] [RetryableGraphQLSubscriptionOperation<MutationSync>] [BCAFC662-78D9-401D-AFA3-649B8011566B] - Try [1/1]
2022-03-09 12:10:59.533377-0500 Equestly Ride[2393:805836] [IncomingAsyncSubscriptionEventToAnyModelMapper] Received subscription: PassthroughSubject
2022-03-09 12:10:59.533502-0500 Equestly Ride[2393:805837] [IncomingAsyncSubscriptionEventPublisher] onDeleteValueListener: connection(Amplify.SubscriptionConnectionState.connecting)
2022-03-09 12:11:00.193653-0500 Equestly Ride[2393:805839] [IncomingAsyncSubscriptionEventPublisher] onCreateValueListener: connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.193941-0500 Equestly Ride[2393:805842] [IncomingAsyncSubscriptionEventPublisher] onUpdateValueListener: connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.194041-0500 Equestly Ride[2393:805842] [IncomingAsyncSubscriptionEventPublisher] onDeleteValueListener: connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.194218-0500 Equestly Ride[2393:805839] [IncomingAsyncSubscriptionEventPublisher] onCreateValueListener: connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.194484-0500 Equestly Ride[2393:805843] [IncomingAsyncSubscriptionEventPublisher] onDeleteValueListener: connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.194610-0500 Equestly Ride[2393:805837] [IncomingAsyncSubscriptionEventPublisher] onUpdateValueListener: connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.194675-0500 Equestly Ride[2393:805863] [IncomingAsyncSubscriptionEventPublisher] onUpdateValueListener: connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.194885-0500 Equestly Ride[2393:805842] [IncomingAsyncSubscriptionEventPublisher] onCreateValueListener: connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.194936-0500 Equestly Ride[2393:805842] [IncomingAsyncSubscriptionEventToAnyModelMapper] receive(:): connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.194949-0500 Equestly Ride[2393:805842] [IncomingAsyncSubscriptionEventToAnyModelMapper] dispose(of subscriptionEvent): connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.194957-0500 Equestly Ride[2393:805842] [IncomingAsyncSubscriptionEventToAnyModelMapper] connectionState now connected
2022-03-09 12:11:00.195207-0500 Equestly Ride[2393:805863] [IncomingAsyncSubscriptionEventPublisher] onDeleteValueListener: connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.195283-0500 Equestly Ride[2393:805837] [IncomingAsyncSubscriptionEventPublisher] onUpdateValueListener: connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.195407-0500 Equestly Ride[2393:805841] [IncomingAsyncSubscriptionEventPublisher] onCreateValueListener: connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.195426-0500 Equestly Ride[2393:805841] [IncomingAsyncSubscriptionEventToAnyModelMapper] receive(:): connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.195463-0500 Equestly Ride[2393:805841] [IncomingAsyncSubscriptionEventToAnyModelMapper] dispose(of subscriptionEvent): connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.195554-0500 Equestly Ride[2393:805841] [IncomingAsyncSubscriptionEventToAnyModelMapper] connectionState now connected
2022-03-09 12:11:00.195568-0500 Equestly Ride[2393:805843] [IncomingAsyncSubscriptionEventPublisher] onDeleteValueListener: connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.195584-0500 Equestly Ride[2393:805843] [IncomingAsyncSubscriptionEventToAnyModelMapper] receive(:): connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.195594-0500 Equestly Ride[2393:805843] [IncomingAsyncSubscriptionEventToAnyModelMapper] dispose(of subscriptionEvent): connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.195601-0500 Equestly Ride[2393:805843] [IncomingAsyncSubscriptionEventToAnyModelMapper] connectionState now connected
2022-03-09 12:11:00.284766-0500 Equestly Ride[2393:805841] [IncomingAsyncSubscriptionEventPublisher] onUpdateValueListener: connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.308149-0500 Equestly Ride[2393:805836] [IncomingAsyncSubscriptionEventPublisher] onDeleteValueListener: connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.308219-0500 Equestly Ride[2393:805836] [IncomingAsyncSubscriptionEventToAnyModelMapper] receive(:): connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.308236-0500 Equestly Ride[2393:805836] [IncomingAsyncSubscriptionEventToAnyModelMapper] dispose(of subscriptionEvent): connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.308246-0500 Equestly Ride[2393:805836] [IncomingAsyncSubscriptionEventToAnyModelMapper] connectionState now connected
2022-03-09 12:11:00.358216-0500 Equestly Ride[2393:805836] [IncomingAsyncSubscriptionEventPublisher] onCreateValueListener: connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.358300-0500 Equestly Ride[2393:805836] [IncomingAsyncSubscriptionEventToAnyModelMapper] receive(_:): connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.358339-0500 Equestly Ride[2393:805836] [IncomingAsyncSubscriptionEventToAnyModelMapper] dispose(of subscriptionEvent): connection(Amplify.SubscriptionConnectionState.connected)
2022-03-09 12:11:00.358364-0500 Equestly Ride[2393:805836] [IncomingAsyncSubscriptionEventToAnyModelMapper] connectionState now connected
2022-03-09 12:11:00.360745-0500 Equestly Ride[2393:805841] [StateMachine<State, Action>] Notifying: initializedSubscriptions
2022-03-09 12:11:00.362816-0500 Equestly Ride[2393:805841] [StateMachine<State, Action>] resolve(initializingSubscriptions(<AWSAPIPlugin.AWSAPIPlugin: 0x281018c00>, AWSDataStorePlugin.SQLiteStorageEngineAdapter), initializedSubscriptions) -> performingInitialSync
2022-03-09 12:11:00.362856-0500 Equestly Ride[2393:805841] [RemoteSyncEngine] New state: performingInitialSync
2022-03-09 12:11:00.362897-0500 Equestly Ride[2393:805836] [RemoteSyncEngine] respond(to:): performingInitialSync
2022-03-09 12:11:00.362909-0500 Equestly Ride[2393:805836] [RemoteSyncEngine] performInitialSync()
2022-03-09 12:11:00.364896-0500 Equestly Ride[2393:805841] [AWSInitialSyncOrchestrator] Beginning initial sync
2022-03-09 12:11:00.366054-0500 Equestly Ride[2393:805841] [InitialSyncOperation] Beginning sync for CalendarEvent
2022-03-09 12:11:00.367587-0500 Equestly Ride[2393:805841] [RetryableGraphQLOperation<PaginatedList>] [7631BF15-6AC8-4A29-8246-11C8A2417E96] - Try [1/1]
2022-03-09 12:11:00.368238-0500 Equestly Ride[2393:805843] [API] Starting query 217DB955-3DA2-4459-AE62-06C520785B3F
2022-03-09 12:11:00.368296-0500 Equestly Ride[2393:805843] [API] {
"query" : "query SyncCalendarEvents($lastSync: AWSTimestamp, $limit: Int) {\n  syncCalendarEvents(lastSync: $lastSync, limit: $limit) {\n    items {\n      id\n      createdAt\n      timestamp\n      title\n      updatedAt\n      userCalendarItemsId\n      __typename\n      _version\n      _deleted\n      lastChangedAt\n      owner\n    }\n    nextToken\n    startedAt\n  }\n}",
"variables" : {
"limit" : 1000,
"lastSync" :<PHONE_NUMBER>809
}
}
2022-03-09 12:11:00.372307-0500 Equestly Ride[2393:805843] [API] Starting network task for query 217DB955-3DA2-4459-AE62-06C520785B3F
2022-03-09 12:11:00.754150-0500 Equestly Ride[2393:805843] [RetryableGraphQLOperation<PaginatedList>] [Operation 7631BF15-6AC8-4A29-8246-11C8A2417E96] - Success
2022-03-09 12:11:00.755600-0500 Equestly Ride[2393:805843] [AWSModelReconciliationQueue] enqueue(:) skipping reconciliation, no models to enqueue.
2022-03-09 12:11:00.759253-0500 Equestly Ride[2393:805863] [InitialSyncOperation] Beginning sync for Ride
2022-03-09 12:11:00.760011-0500 Equestly Ride[2393:805863] [RetryableGraphQLOperation<PaginatedList>] [DE04B4BE-FEE4-414E-AD2C-5E6B1874A55E] - Try [1/1]
2022-03-09 12:11:00.760184-0500 Equestly Ride[2393:805837] [API] Starting query 27A549CD-7918-4577-A9D8-0CFB9E917418
2022-03-09 12:11:00.760299-0500 Equestly Ride[2393:805837] [API] {
"query" : "query SyncRides($lastSync: AWSTimestamp, $limit: Int) {\n  syncRides(lastSync: $lastSync, limit: $limit) {\n    items {\n      id\n      createdAt\n      distance\n      duration\n      timestamp\n      updatedAt\n      userRidesId\n      __typename\n      _version\n      _deleted\n      lastChangedAt\n      owner\n    }\n    nextToken\n    startedAt\n  }\n}",
"variables" : {
"lastSync" :<PHONE_NUMBER>122,
"limit" : 1000
}
}
2022-03-09 12:11:00.769548-0500 Equestly Ride[2393:805837] [API] Starting network task for query 27A549CD-7918-4577-A9D8-0CFB9E917418
2022-03-09 12:11:01.053774-0500 Equestly Ride[2393:805863] [RetryableGraphQLOperation<PaginatedList>] [Operation DE04B4BE-FEE4-414E-AD2C-5E6B1874A55E] - Success
2022-03-09 12:11:01.053846-0500 Equestly Ride[2393:805863] [AWSModelReconciliationQueue] enqueue(:) skipping reconciliation, no models to enqueue.
2022-03-09 12:11:01.056701-0500 Equestly Ride[2393:805837] [InitialSyncOperation] Beginning sync for Location
2022-03-09 12:11:01.057609-0500 Equestly Ride[2393:805837] [RetryableGraphQLOperation<PaginatedList>] [A1D939CE-A9AB-4D0B-972E-61A9B2E0801B] - Try [1/1]
2022-03-09 12:11:01.057808-0500 Equestly Ride[2393:805839] [API] Starting query 86A4541E-6381-454F-A3C8-742C4C1D5C17
2022-03-09 12:11:01.057905-0500 Equestly Ride[2393:805839] [API] {
"variables" : {
"lastSync" :<PHONE_NUMBER>411,
"limit" : 1000
},
"query" : "query SyncLocations($lastSync: AWSTimestamp, $limit: Int) {\n  syncLocations(lastSync: $lastSync, limit: $limit) {\n    items {\n      id\n      createdAt\n      latitude\n      longitude\n      timestamp\n      updatedAt\n      ride {\n        id\n        createdAt\n        distance\n        duration\n        timestamp\n        updatedAt\n        userRidesId\n        __typename\n        _version\n        _deleted\n        _lastChangedAt\n      }\n      __typename\n      _version\n      _deleted\n      lastChangedAt\n      owner\n    }\n    nextToken\n    startedAt\n  }\n}"
}
2022-03-09 12:11:01.067452-0500 Equestly Ride[2393:805839] [API] Starting network task for query 86A4541E-6381-454F-A3C8-742C4C1D5C17
2022-03-09 12:11:01.354084-0500 Equestly Ride[2393:805842] [RetryableGraphQLOperation<PaginatedList>] [Operation A1D939CE-A9AB-4D0B-972E-61A9B2E0801B] - Success
2022-03-09 12:11:01.354145-0500 Equestly Ride[2393:805842] [AWSModelReconciliationQueue] enqueue(:) skipping reconciliation, no models to enqueue.
2022-03-09 12:11:01.390560-0500 Equestly Ride[2393:805862] [InitialSyncOperation] Beginning sync for User
2022-03-09 12:11:01.391301-0500 Equestly Ride[2393:805862] [RetryableGraphQLOperation<PaginatedList>] [2C072C21-FE22-41B6-92A9-F206638157D5] - Try [1/1]
2022-03-09 12:11:01.391442-0500 Equestly Ride[2393:805863] [API] Starting query 7164751F-7CC2-4552-A1FE-D971982AFFAC
2022-03-09 12:11:01.391524-0500 Equestly Ride[2393:805863] [API] {
"variables" : {
"lastSync" :<PHONE_NUMBER>846,
"limit" : 1000
},
"query" : "query SyncUsers($lastSync: AWSTimestamp, $limit: Int) {\n  syncUsers(lastSync: $lastSync, limit: $limit) {\n    items {\n      id\n      cartID\n      createdAt\n      firstName\n      lastName\n      subscriptionType\n      updatedAt\n      username\n      __typename\n      _version\n      _deleted\n      lastChangedAt\n      owner\n    }\n    nextToken\n    startedAt\n  }\n}"
}
2022-03-09 12:11:01.402378-0500 Equestly Ride[2393:805863] [API] Starting network task for query 7164751F-7CC2-4552-A1FE-D971982AFFAC
2022-03-09 12:11:01.656730-0500 Equestly Ride[2393:805842] [RetryableGraphQLOperation<PaginatedList>] [Operation 2C072C21-FE22-41B6-92A9-F206638157D5] - Success
2022-03-09 12:11:01.656790-0500 Equestly Ride[2393:805842] [AWSModelReconciliationQueue] enqueue(:) skipping reconciliation, no models to enqueue.
2022-03-09 12:11:01.685361-0500 Equestly Ride[2393:805862] [InitialSyncOperation] Beginning sync for UserCart
2022-03-09 12:11:01.686052-0500 Equestly Ride[2393:805862] [RetryableGraphQLOperation<PaginatedList>] [E82AF2DA-A264-4C1A-A91E-2422B0B10654] - Try [1/1]
2022-03-09 12:11:01.686193-0500 Equestly Ride[2393:805843] [API] Starting query 241C74AE-F072-4966-9DE1-B19A793FD7C0
2022-03-09 12:11:01.686280-0500 Equestly Ride[2393:805843] [API] {
"variables" : {
"lastSync" :<PHONE_NUMBER>124,
"limit" : 1000
},
"query" : "query SyncUserCarts($lastSync: AWSTimestamp, $limit: Int) {\n  syncUserCarts(lastSync: $lastSync, limit: $limit) {\n    items {\n      id\n      createdAt\n      products {\n        id\n        variantID\n        __typename\n      }\n      updatedAt\n      __typename\n      _version\n      _deleted\n      lastChangedAt\n      owner\n    }\n    nextToken\n    startedAt\n  }\n}"
}
2022-03-09 12:11:01.778670-0500 Equestly Ride[2393:805843] [API] Starting network task for query 241C74AE-F072-4966-9DE1-B19A793FD7C0
2022-03-09 12:11:02.025018-0500 Equestly Ride[2393:805862] [RetryableGraphQLOperation<PaginatedList>] [Operation E82AF2DA-A264-4C1A-A91E-2422B0B10654] - Success
2022-03-09 12:11:02.025080-0500 Equestly Ride[2393:805862] [AWSModelReconciliationQueue] enqueue(:) skipping reconciliation, no models to enqueue.
2022-03-09 12:11:02.027738-0500 Equestly Ride[2393:805862] [RemoteSyncEngine] Successfully finished sync
2022-03-09 12:11:02.027795-0500 Equestly Ride[2393:805862] [StateMachine<State, Action>] Notifying: performedInitialSync
2022-03-09 12:11:02.027857-0500 Equestly Ride[2393:805862] [StateMachine<State, Action>] resolve(performingInitialSync, performedInitialSync) -> activatingCloudSubscriptions
2022-03-09 12:11:02.027894-0500 Equestly Ride[2393:805862] [RemoteSyncEngine] New state: activatingCloudSubscriptions
2022-03-09 12:11:02.027971-0500 Equestly Ride[2393:805836] [RemoteSyncEngine] respond(to:): activatingCloudSubscriptions
2022-03-09 12:11:02.027991-0500 Equestly Ride[2393:805836] [RemoteSyncEngine] activateCloudSubscriptions()
2022-03-09 12:11:02.035092-0500 Equestly Ride[2393:805836] [StateMachine<State, Action>] Notifying: activatedCloudSubscriptions(<AWSAPIPlugin.AWSAPIPlugin: 0x281018c00>, AWSDataStorePlugin.AWSMutationEventPublisher)
2022-03-09 12:11:02.035276-0500 Equestly Ride[2393:805836] [StateMachine<State, Action>] resolve(activatingCloudSubscriptions, activatedCloudSubscriptions(<AWSAPIPlugin.AWSAPIPlugin: 0x281018c00>, AWSDataStorePlugin.AWSMutationEventPublisher)) -> activatingMutationQueue(<AWSAPIPlugin.AWSAPIPlugin: 0x281018c00>, AWSDataStorePlugin.AWSMutationEventPublisher)
2022-03-09 12:11:02.035353-0500 Equestly Ride[2393:805836] [RemoteSyncEngine] New state: activatingMutationQueue(<AWSAPIPlugin.AWSAPIPlugin: 0x281018c00>, AWSDataStorePlugin.AWSMutationEventPublisher)
2022-03-09 12:11:02.035465-0500 Equestly Ride[2393:805836] [RemoteSyncEngine] respond(to:): activatingMutationQueue(<AWSAPIPlugin.AWSAPIPlugin: 0x281018c00>, AWSDataStorePlugin.AWSMutationEventPublisher)
2022-03-09 12:11:02.035741-0500 Equestly Ride[2393:805836] [RemoteSyncEngine] startMutationQueue(api:mutationEventPublisher:)
2022-03-09 12:11:02.035763-0500 Equestly Ride[2393:805836] [OutgoingMutationQueue] startSyncingToCloud(api:mutationEventPublisher:)
2022-03-09 12:11:02.036976-0500 Equestly Ride[2393:805836] [StateMachine<State, Action>] Notifying: receivedStart(<AWSAPIPlugin.AWSAPIPlugin: 0x281018c00>, AWSDataStorePlugin.AWSMutationEventPublisher)
2022-03-09 12:11:02.038171-0500 Equestly Ride[2393:805836] [StateMachine<State, Action>] resolve(stopped, receivedStart(<AWSAPIPlugin.AWSAPIPlugin: 0x281018c00>, AWSDataStorePlugin.AWSMutationEventPublisher)) -> starting(<AWSAPIPlugin.AWSAPIPlugin: 0x281018c00>, AWSDataStorePlugin.AWSMutationEventPublisher)
2022-03-09 12:11:02.038264-0500 Equestly Ride[2393:805836] [OutgoingMutationQueue] New state: starting(<AWSAPIPlugin.AWSAPIPlugin: 0x281018c00>, AWSDataStorePlugin.AWSMutationEventPublisher)
2022-03-09 12:11:02.038324-0500 Equestly Ride[2393:805836] [StateMachine<State, Action>] Notifying: activatedMutationQueue
2022-03-09 12:11:02.038388-0500 Equestly Ride[2393:805863] [OutgoingMutationQueue] respond(to:): starting(<AWSAPIPlugin.AWSAPIPlugin: 0x281018c00>, AWSDataStorePlugin.AWSMutationEventPublisher)
2022-03-09 12:11:02.040158-0500 Equestly Ride[2393:805863] [OutgoingMutationQueue] doStart(api:mutationEventPublisher:)
2022-03-09 12:11:02.040236-0500 Equestly Ride[2393:805836] [StateMachine<State, Action>] resolve(activatingMutationQueue(<AWSAPIPlugin.AWSAPIPlugin: 0x281018c00>, AWSDataStorePlugin.AWSMutationEventPublisher), activatedMutationQueue) -> notifyingSyncStarted
2022-03-09 12:11:02.040296-0500 Equestly Ride[2393:805836] [RemoteSyncEngine] New state: notifyingSyncStarted
2022-03-09 12:11:02.040339-0500 Equestly Ride[2393:805836] [RemoteSyncEngine] respond(to:): notifyingSyncStarted
2022-03-09 12:11:02.040485-0500 Equestly Ride[2393:805836] [StateMachine<State, Action>] Notifying: notifiedSyncStarted
2022-03-09 12:11:02.040527-0500 Equestly Ride[2393:805836] [StateMachine<State, Action>] resolve(notifyingSyncStarted, notifiedSyncStarted) -> syncEngineActive
2022-03-09 12:11:02.041183-0500 Equestly Ride[2393:805836] [RemoteSyncEngine] New state: syncEngineActive
2022-03-09 12:11:02.041236-0500 Equestly Ride[2393:805836] [RemoteSyncEngine] respond(to:): syncEngineActive
2022-03-09 12:11:02.041260-0500 Equestly Ride[2393:805863] [AWSMutationEventPublisher] receive(subscriber:)
2022-03-09 12:11:02.041303-0500 Equestly Ride[2393:805863] [OutgoingMutationQueue] receive(subscription:)
2022-03-09 12:11:02.041333-0500 Equestly Ride[2393:805863] [StateMachine<State, Action>] Notifying: receivedSubscription
2022-03-09 12:11:02.041435-0500 Equestly Ride[2393:805863] [StateMachine<State, Action>] resolve(starting(<AWSAPIPlugin.AWSAPIPlugin: 0x281018c00>, AWSDataStorePlugin.AWSMutationEventPublisher), receivedSubscription) -> requestingEvent
2022-03-09 12:11:02.041473-0500 Equestly Ride[2393:805863] [OutgoingMutationQueue] New state: requestingEvent
2022-03-09 12:11:02.041525-0500 Equestly Ride[2393:805863] [OutgoingMutationQueue] respond(to:): requestingEvent
2022-03-09 12:11:02.041546-0500 Equestly Ride[2393:805863] [OutgoingMutationQueue] requestEvent()
2022-03-09 12:11:02.042036-0500 Equestly Ride[2393:805863] [AWSMutationEventPublisher] requestNextEvent()
2022-03-09 12:11:02.042117-0500 Equestly Ride[2393:805862] [AWSMutationDatabaseAdapter] getNextMutationEvent(completion:)

It is stating that the user does not have authorization, yet, the user is signed in using. I attempted to signOut and signIn again and recieved:

2022-03-09 12:18:43.041287-0500 Equestly Ride[2393:811529] [Amplify] AWSMobileClient Event listener - signedOut
Log In Attempted
2022-03-09 12:19:00.393348-0500 Equestly Ride[2393:811663] [Amplify] AWSMobileClient Event listener - signedIn
Sign in succeeded
Got user cart
2022-03-09 12:19:13.913023-0500 Equestly Ride[2393:805531] [SwiftUI] No symbol named '' found in system symbol set
2022-03-09 12:19:17.365328-0500 Equestly Ride[2393:805531] [AWSDataStorePlugin] Saving: CalendarEvent(id: "B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6", title: "test3", timestamp:<PHONE_NUMBER>, createdAt: nil, updatedAt: nil, userCalendarItemsId: nil) with condition: nil
2022-03-09 12:19:17.378685-0500 Equestly Ride[2393:805531] [StorageEngine] save(:modelSchema:condition:completion:) syncing mutation for CalendarEvent(id: "B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6", title: "test3", timestamp:<PHONE_NUMBER>, createdAt: nil, updatedAt: nil, userCalendarItemsId: nil)
2022-03-09 12:19:17.379453-0500 Equestly Ride[2393:805531] [AWSMutationDatabaseAdapter] submit(mutationEvent:): MutationEvent(id: "951C7C93-FEF2-4D16-B9C0-C8807FD6E46A", modelId: "B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6", modelName: "CalendarEvent", json: "{"id":"B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6","title":"test3","timestamp":1647054540}", mutationType: "update", createdAt: Amplify.Temporal.DateTime(foundationDate: 2022-03-09 17:19:17 +0000), version: nil, inProcess: false, graphQLFilterJSON: nil)
2022-03-09 12:19:17.381402-0500 Equestly Ride[2393:805531] [AWSMutationDatabaseAdapter] disposition(for:given:) no local events, saving candidate
2022-03-09 12:19:17.381501-0500 Equestly Ride[2393:805531] [AWSMutationDatabaseAdapter] resolve(candidate:localEvents:per:storageAdapter:completionPromise:) disposition saveCandidate
2022-03-09 12:19:17.381734-0500 Equestly Ride[2393:805531] [AWSMutationDatabaseAdapter] save(mutationEvent:storageAdapter:completionPromise:) mutationEvent: MutationEvent(id: "951C7C93-FEF2-4D16-B9C0-C8807FD6E46A", modelId: "B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6", modelName: "CalendarEvent", json: "{"id":"B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6","title":"test3","timestamp":1647054540}", mutationType: "update", createdAt: Amplify.Temporal.DateTime(foundationDate: 2022-03-09 17:19:17 +0000), version: nil, inProcess: false, graphQLFilterJSON: nil)
2022-03-09 12:19:17.388425-0500 Equestly Ride[2393:805531] [AWSMutationDatabaseAdapter] save(mutationEvent:storageAdapter:completionPromise:): saved MutationEvent(id: "951C7C93-FEF2-4D16-B9C0-C8807FD6E46A", modelId: "B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6", modelName: "CalendarEvent", json: "{"id":"B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6","title":"test3","timestamp":1647054540}", mutationType: "update", createdAt: Amplify.Temporal.DateTime(foundationDate: 2022-03-09 17:19:17 +0000), version: nil, inProcess: true, graphQLFilterJSON: nil)
2022-03-09 12:19:17.388575-0500 Equestly Ride[2393:805531] [AWSMutationDatabaseAdapter] save(mutationEvent:storageAdapter:completionPromise:): invoking nextEventPromise with MutationEvent(id: "951C7C93-FEF2-4D16-B9C0-C8807FD6E46A", modelId: "B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6", modelName: "CalendarEvent", json: "{"id":"B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6","title":"test3","timestamp":1647054540}", mutationType: "update", createdAt: Amplify.Temporal.DateTime(foundationDate: 2022-03-09 17:19:17 +0000), version: nil, inProcess: true, graphQLFilterJSON: nil)
2022-03-09 12:19:17.388668-0500 Equestly Ride[2393:805531] [OutgoingMutationQueue] receive(:)
2022-03-09 12:19:17.388698-0500 Equestly Ride[2393:805531] [OutgoingMutationQueue] enqueue(_:)
2022-03-09 12:19:17.388999-0500 Equestly Ride[2393:805531] [StateMachine<State, Action>] Notifying: enqueuedEvent
2022-03-09 12:19:17.389105-0500 Equestly Ride[2393:805531] [StateMachine<State, Action>] resolve(requestingEvent, enqueuedEvent) -> waitingForEventToProcess
2022-03-09 12:19:17.389162-0500 Equestly Ride[2393:811890] [SyncMutationToCloudOperation] main()
2022-03-09 12:19:17.389166-0500 Equestly Ride[2393:805531] [OutgoingMutationQueue] New state: waitingForEventToProcess
2022-03-09 12:19:17.389303-0500 Equestly Ride[2393:811890] [SyncMutationToCloudOperation] sendMutationToCloud(withAuthType:)
2022-03-09 12:19:17.389390-0500 Equestly Ride[2393:805531] [AWSMutationDatabaseAdapter] save(mutationEvent:storageAdapter:completionPromise:): invoking completionPromise with success(Amplify.MutationEvent(id: "951C7C93-FEF2-4D16-B9C0-C8807FD6E46A", modelId: "B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6", modelName: "CalendarEvent", json: "{"id":"B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6","title":"test3","timestamp":1647054540}", mutationType: "update", createdAt: Amplify.Temporal.DateTime(foundationDate: 2022-03-09 17:19:17 +0000), version: nil, inProcess: true, graphQLFilterJSON: nil))
2022-03-09 12:19:17.389636-0500 Equestly Ride[2393:805531] [StorageEngine] submitToSyncEngine(mutationEvent:syncEngine:completion:) saved mutation event: MutationEvent(id: "951C7C93-FEF2-4D16-B9C0-C8807FD6E46A", modelId: "B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6", modelName: "CalendarEvent", json: "{"id":"B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6","title":"test3","timestamp":1647054540}", mutationType: "update", createdAt: Amplify.Temporal.DateTime(foundationDate: 2022-03-09 17:19:17 +0000), version: nil, inProcess: true, graphQLFilterJSON: nil)
2022-03-09 12:19:17.389776-0500 Equestly Ride[2393:805531] [StorageEngine] syncMutation(of:modelSchema:mutationType:predicate:syncEngine:completion:) successfully submitted to sync engine MutationEvent(id: "951C7C93-FEF2-4D16-B9C0-C8807FD6E46A", modelId: "B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6", modelName: "CalendarEvent", json: "{"id":"B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6","title":"test3","timestamp":1647054540}", mutationType: "update", createdAt: Amplify.Temporal.DateTime(foundationDate: 2022-03-09 17:19:17 +0000), version: nil, inProcess: true, graphQLFilterJSON: nil)
2022-03-09 12:19:17.390236-0500 Equestly Ride[2393:811890] [SyncMutationToCloudOperation] sendMutation(describedBy:) sending mutation with sync data: GraphQLRequest<MutationSync>(apiName: nil, document: "mutation UpdateCalendarEvent($input: UpdateCalendarEventInput!) {\n  updateCalendarEvent(input: $input) {\n    id\n    createdAt\n    timestamp\n    title\n    updatedAt\n    userCalendarItemsId\n    __typename\n    _version\n    _deleted\n    _lastChangedAt\n    owner\n  }\n}", variables: Optional(["input": ["title": Optional("test3"), "timestamp": Optional(1647054540), "id": Optional("B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6"), "userCalendarItemsId": nil]]), responseType: AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>, decodePath: Optional("updateCalendarEvent"), options: Optional(Amplify.GraphQLRequest<AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>>.Options(pluginOptions: Optional(AWSPluginsCore.AWSPluginOptions(authType: nil)))))
2022-03-09 12:19:17.390529-0500 Equestly Ride[2393:811890] [OutgoingMutationQueue] respond(to:): waitingForEventToProcess
2022-03-09 12:19:17.390633-0500 Equestly Ride[2393:810904] [API] Starting mutation F7CFFD7F-C2E6-4892-B53F-65109BE1E6E5
Subscription received mutation: MutationEvent(id: "2F4AB4EA-C40F-4C4F-B65F-DD93282BBE42", modelId: "B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6", modelName: "CalendarEvent", json: "{"id":"B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6","title":"test3","timestamp":1647054540}", mutationType: "update", createdAt: Amplify.Temporal.DateTime(foundationDate: 2022-03-09 17:19:17 +0000), version: nil, inProcess: false, graphQLFilterJSON: nil)
Created a new CalendarEvent successfully
2022-03-09 12:19:17.390711-0500 Equestly Ride[2393:805531] [StorageEngine] submitToSyncEngine(mutationEvent:syncEngine:completion:) Received successful completion
2022-03-09 12:19:17.390793-0500 Equestly Ride[2393:810904] [API] {
"query" : "mutation UpdateCalendarEvent($input: UpdateCalendarEventInput!) {\n  updateCalendarEvent(input: $input) {\n    id\n    createdAt\n    timestamp\n    title\n    updatedAt\n    userCalendarItemsId\n    __typename\n    _version\n    _deleted\n    _lastChangedAt\n    owner\n  }\n}",
"variables" : {
"input" : {
"title" : "test3",
"timestamp" :<PHONE_NUMBER>,
"id" : "B47AB84F-3D46-4B1D-B82B-B70A0C39CDA6",
"userCalendarItemsId" : null
}
}
}
2022-03-09 12:19:17.401776-0500 Equestly Ride[2393:810904] [API] Starting network task for mutation F7CFFD7F-C2E6-4892-B53F-65109BE1E6E5
2022-03-09 12:19:18.006545-0500 Equestly Ride[2393:810904] [SyncMutationToCloudOperation] GraphQL mutation operation received result: success(Swift.Result<AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>, Amplify.GraphQLResponseError<AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>>>.failure(GraphQLResponseError<MutationSync>: GraphQL service returned a successful response containing errors: [Amplify.GraphQLError(message: "Not Authorized to access updateCalendarEvent on type Mutation", locations: Optional([Amplify.GraphQLError.Location(line: 2, column: 3)]), path: Optional([Amplify.JSONValue.string("updateCalendarEvent")]), extensions: Optional(["data": Amplify.JSONValue.null, "errorType": Amplify.JSONValue.string("Unauthorized"), "errorInfo": Amplify.JSONValue.null]))]
Recovery suggestion: The list of GraphQLError contains service-specific messages))
2022-03-09 12:19:18.006640-0500 Equestly Ride[2393:810904] [SyncMutationToCloudOperation] finish(result:)
2022-03-09 12:19:18.007035-0500 Equestly Ride[2393:811984] [OutgoingMutationQueue] [SyncMutationToCloudOperation] mutationEvent finished: 951C7C93-FEF2-4D16-B9C0-C8807FD6E46A; result: success(Swift.Result<AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>, Amplify.GraphQLResponseError<AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>>>.failure(GraphQLResponseError<MutationSync>: GraphQL service returned a successful response containing errors: [Amplify.GraphQLError(message: "Not Authorized to access updateCalendarEvent on type Mutation", locations: Optional([Amplify.GraphQLError.Location(line: 2, column: 3)]), path: Optional([Amplify.JSONValue.string("updateCalendarEvent")]), extensions: Optional(["data": Amplify.JSONValue.null, "errorType": Amplify.JSONValue.string("Unauthorized"), "errorInfo": Amplify.JSONValue.null]))]
Recovery suggestion: The list of GraphQLError contains service-specific messages))
2022-03-09 12:19:18.007263-0500 Equestly Ride[2393:810904] [ProcessMutationErrorFromCloudOperation] main()
2022-03-09 12:19:18.007332-0500 Equestly Ride[2393:810904] [ProcessMutationErrorFromCloudOperation] Unauthorized mutation unauthorized
2022-03-09 12:19:18.007474-0500 Equestly Ride[2393:811984] [OutgoingMutationQueue] [ProcessMutationErrorFromCloudOperation] result: success(nil)
2022-03-09 12:19:18.018360-0500 Equestly Ride[2393:811984] [OutgoingMutationQueue] mutationEvent deleted successfully
2022-03-09 12:19:18.018867-0500 Equestly Ride[2393:811984] [StateMachine<State, Action>] Notifying: processedEvent
2022-03-09 12:19:18.018974-0500 Equestly Ride[2393:811984] [StateMachine<State, Action>] resolve(waitingForEventToProcess, processedEvent) -> requestingEvent
2022-03-09 12:19:18.019029-0500 Equestly Ride[2393:811984] [OutgoingMutationQueue] New state: requestingEvent
2022-03-09 12:19:18.019117-0500 Equestly Ride[2393:811662] [OutgoingMutationQueue] respond(to:): requestingEvent
2022-03-09 12:19:18.019143-0500 Equestly Ride[2393:811662] [OutgoingMutationQueue] requestEvent()
2022-03-09 12:19:18.019168-0500 Equestly Ride[2393:811662] [AWSMutationEventPublisher] requestNextEvent()
2022-03-09 12:19:18.019210-0500 Equestly Ride[2393:811662] [AWSMutationDatabaseAdapter] getNextMutationEvent(completion:)

Thanks for the logs, Not Authorized to access updateCalendarEvent on type Mutation isn't expected if the user is signed in. We'll give the schema a try and provide an update

@lawmicha  I appreciate your prompt response and look forward to hearing from you

Hi @carl0sLOL, please let us know if you have any questions regarding the details below
1. Signed in User unauthorized issue
Please make sure that the user is confirmed as well. You can verify this from the reuslt of the Amplify.Auth.signIn, the user in the Cognito User Pool is in a confirmed state, or when you log the user in through the AppSync console, you can also perform GraphQL operations successfully.
I did bypass creating a user through the auth flows by running these two commands
aws cognito-idp admin-create-user --user-pool-id [POOL_ID] --username [USERNAME]
aws cognito-idp admin-set-user-password --user-pool-id [POOL_ID] --username [USERNAME] --password [PASSWORD] --permanent
// POOL_ID from amplifyconfiguration.json under `auth.plugins.awsCognitoAuthPlugin.CognitoUserPool.Default.PoolId`

The first will create the user and second will confirm the user.
The next set of issues I saw with respect to your schema is due to the library not yet supporting all the scenarios with the different variations of schemas. I'll try to describe the following changes to your schema with what we know works and provide you with a path forward for your use cases, while marking these as a bug for the team to address.
2. Has-Many with Belongs-to
Currently, a User has-many CalendarEvent's, while the CalendarEvent does not have an explicit reference back to the User. Having an explicit reference would make it easier to get the user when querying for a CalendarEvent. You'll be able to traverse up to the User object like this, ie.
Amplify.DataStore.query(CalendarEvent.self, byId: "calendarEventID") { result in
  switch result {
      case .success(let calendarEvent):
        let user: User = calendarEvent.user // retrieve the user object `User`
        ...
  }
}

The recommended schema update on CalendarEvent is to have userID index and explicitly define the user: User! object that the CalendarEvent that it belongs to the user.
type User {
    ...
    calendarItems: [CalendarEvent] @hasMany(indexName: "byUser", fields: ["id"])
}

type CalendarEvent @model @auth(rules: [{ allow: owner }]){
  id: ID!
  title: String!
  timestamp: AWSTimestamp!
  userID: ID! @index(name: "byUser")
  user: User! @belongsTo(fields: ["userID"])
}

You'll save the user first, and then when you save a calendar event, you can pass the entire user object to assign which user it belongs to:
// 1. First save the user,
let user = User(...)

// 2. On succces, save the CalendarEvent with the user object
let calendar = CalendarEvent(title: "title", timestamp: 1, user: user)
Amplify.DataStore.save(calendar) { result in

This is change made for the Ride model
type User {
    ...
    rides: [Ride] @hasMany(indexName: "byUser", fields: ["id"])
}
type Ride @model @auth(rules: [{ allow: owner }]) {
  id: ID!
  distance: Float!
  duration: Int!
  timestamp: AWSTimestamp!
  locations: [Location] @hasMany(indexName: "fromRide", fields: ["id"])
  userID: ID! @index(name: "byUser")
  user: User! @belongsTo(fields: ["userID"])
}

After creating the User, Ride, and CalendarEvent, you can confirm that the data is in DynamoDB from the AppSync console -> Data Sources -> respective model tables -> Explore table items
Issue for the Amplify team: Explore one-directional one-to-many relationship support in DataStore
2. (Optional) Explicit id on the Location
Although the primary key id will be generated on the Location, i think it's clearer to define it explicitly:
type Location @model @auth(rules: [{ allow: owner }]) {
  id: ID!
  ...

I don't think this is completely necessary and continues to work without it (since it is automatically added anyways)
3. Has-One UserCart
There is a known issue that we are currently working on where saving a User with hasOne UserCart is currently not persisting the UserCart. We're actively looking into this and will provide an update when we can. One workaround is to remove the @model from UserCart and have it embedded in the User model, much like how the SelectedProducts is an embedded type inside the UserCart. FYI @diegocstn
Updated schema
type User @model @auth(rules: [{ allow: owner }]) {
  id: ID!
  username: String!
  firstName: String
  lastName: String
  subscriptionType: Int
  rides: [Ride] @hasMany(indexName: "byUser", fields: ["id"])
  calendarItems: [CalendarEvent] @hasMany(indexName: "byUser", fields: ["id"])
  cart: UserCart
}

type Ride @model @auth(rules: [{ allow: owner }]) {
  id: ID!
  distance: Float!
  duration: Int!
  timestamp: AWSTimestamp!
  locations: [Location] @hasMany(indexName: "fromRide", fields: ["id"])
  userID: ID! @index(name: "byUser")
  user: User! @belongsTo(fields: ["userID"])
}

type Location @model @auth(rules: [{ allow: owner }]) {
  id: ID!
  rideID: ID! @index(name: "fromRide")
  latitude: Float!
  longitude: Float!
  timestamp: AWSTimestamp!
  ride: Ride @belongsTo(fields: ["rideID"])
}

type CalendarEvent @model @auth(rules: [{ allow: owner }]){
  id: ID!
  title: String!
  timestamp: AWSTimestamp!
  userID: ID! @index(name: "byUser")
  user: User! @belongsTo(fields: ["userID"])
}

type UserCart {
  id: ID!
  products: [SelectedProducts]
}

type SelectedProducts {
  id: ID!
  variantID: String!
}

@lawmicha Thank you for your response. My confusion comes with the first point. If the Auth Session still exists, the user should be authenticated. How could I verify that the user is "confirmed"? Also what does "confirmation" mean? This is not highlighted in the documentation.
In verifying that the user session is active, you can see below (I will delete this user Auth so no worries on redaction):

success(AWSCognitoAuthPlugin.AWSAuthCognitoSession(isSignedIn: true, userSubResult: Swift.Result<Swift.String, Amplify.AuthError>.success("e1ad533a-bb0e-434d-9a7d-4ab923aa6f13"), identityIdResult: Swift.Result<Swift.String, Amplify.AuthError>.success("us-east-1:65dca9cb-de6a-41c6-b978-8d6df778687e"), awsCredentialsResult: Swift.Result<AWSPluginsCore.AuthAWSCredentials, Amplify.AuthError>.success(AWSCognitoAuthPlugin.AuthAWSCognitoCredentials(accessKey: "ASIARJVSFPNANXD6QMTO", secretKey: "09fb/cjr/iuUX5yALD2VjtQ8j7TkenQhzeIc9mVp", sessionKey: "IQoJb3JpZ2luX2VjEHkaCXVzLWVhc3QtMSJHME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pMmp8HNKN8/vm1TI2ZusSUvVfN6l4Uza7PgTJFfS3NdJSeLxnp9nr0Nnyzs3LqUlS82iUaBoI3a7ucUUM7s/wsXmjDqTqwlZtcOPbgocEgjgD4zD1DFnr2Lm0Mg0nTmlFhCaDOTEGQaQjy+DYL1C5oy", expiration: 2022-03-10 01:57:19 +0000)), cognitoTokensResult: Swift.Result<AWSPluginsCore.AuthCognitoTokens, Amplify.AuthError>.success(AWSCognitoAuthPlugin.AWSCognitoUserPoolTokens(idToken: "eyJraWQiOiJSMm8rRm5Bb2g3bUxlVURwQlFRQ21oczdFQktBOTFVd09lUkpCQkk0N2hBPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiJlMWFkNTMzYS1iYjBlLTQzNGQtOWE3ZC00YWI5MjNhYTZmMTMiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfekFxREJHazBuIiwiY29nbml0bzp1c2VybmFtZSI6ImUxYWQ1MzNhLWJiMGUtNDM0ZC05YTdkLTRhYjkyM2FhNmYxMyIsIm9yaWdpbl9qdGkiOiJjMTMwZDcyMS01NmIwLTQ0OGEtOTQ1ZS04YjNmM2FlZmU1MTMiLCJhdWQiOiI5bHMzczlxNGVidHE0Mzd0ODVjazllaTVhIiwiZXZlbnRfaWQiOiJmMTVjZDFlYy05YjNjLTQ5MTctOWQ1NS02YTVhY2RkOGNjYWMiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY0Njg0NjM0MCwiZXhwIjoxNjQ2ODc3NDM5LCJpYXQiOjE2NDY4NzM4MzksImp0aSI6ImU2NDBkY2E0LWFlNDgtNDY1NS1iNTU5LWFjYjQyMWY3OGJmYyIsImVtYWlsIjoiRXF1ZXN0bHlAZXF1ZXN0bHkuY28ifQ.rjJWI4zoas2HWXV6WuqxH2xKXaVv81BgY-h-sZK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8T5IHxoaFQWuZ2hCOVUCtf-FoxGlDij43mzSa7f6hPiCJNERqw6wYRL2-bRIYkOvSIcGilZMOzadZo2DvEs0sF4XAzGyUs5ujhnT-X9xYPYhvLm368xVWqkqxBZ8ltuYr6NrcP29zCuVjrw12cqzU4VCp3IvSBFQLzxYebiAhVI-Uo4xSkx6sO7HUqP8gEUhrKasIoJCKrWj1-MgEE-SxjoBNjMW61NvTX5D7fJiyb0jgj4cce3ALM1_3Xz5ShuCRS1muY5_Ing-DEVMWGc5Evjg2Zbj4JAdcZmKRsjjM3riqzDSrve8gFgaeilXnDW4Eg-fhv2ThH04Mrnto92xvrDg_gMytmO1yNz1FXdnemSvJ7MnAcUcUo6-PBzZ-v2LZR_TScOambRyQQaqp7OhW4_JJXmY4knIGxEV40xlIT15RC-w2xTs0A850ygItkyK-ZirtWwRG1LElm10ott3NXvqoEKVnfEfYxSd5z-3S8oi5LxkrOGoW8_damm2Q1UCLkOheGl6wYco0b---FSZbWyZ0FKjzpbSYuc9J89uML9F1d3sI41h3YhwtxYjtm_13cAF8AsU4NQl7pTYFMD_lSSm1PyFfs-ydqCKo6Ye2jHst7fM8mWZqvIGRvfcrVFncRomv9Fgvxx1MkSJIkCtHBnK1Pq3hpw3v8gmueUX3luCU9iMpyt_hd_8TuWmb-DVuGnKw3GU_j4-7e8MI0yOJXHajzZJFyQUy1TWSaxf63pQVrJjR9_59JapckMv_ud6VW2XDExQ3diAf952cQlY_14In2ewMUlCUvMMRRNfAl0MMOHrNN1BISW8a4pBcM6Y_6FI6yYjUaj0-7NuhCSOp3f-qA4CVfUZsyz3yQyHeNg86OLDsDBXy3WtRd1js-PmJZ7gP_40S_fuZ80Qj7iUsmJqkT_fkmhKF46B9QEYZc8LicyUQJzV0FidAHT2shNiycF6l5E8e6pc5gQq5ybVFb_eR-GnllKAsonF3ZzxJIA.K30fsbbrjdNxSJRH_uQ0aA"))))

It clearly states that user "isSignedIn: true". Furthermore, when I log the user out and later log them back in, the only result from Amplify.Auth.signIn is :

success(Amplify.AuthSignInResult(nextStep: Amplify.AuthSignInStep.done))

This does not give any additional details about the user being "Confirmed State" - could you please elaborate on this? Would I have to change the parameters of Auth in Amplify CLI?

@lawmicha could this all be an error due to lack of Cognito User Pool being not enabled?

@lawmicha after turning on Cognito User Pool, the data persists to the backend - but only for the User schema. The CalendarEvent schema fails with:

ATTEMPTING TO ADD AND PERSIST CALENDAREVENT
2022-03-09 20:35:16.423989-0500 Equestly Ride[3181:1068288] [AWSDataStorePlugin] Saving: CalendarEvent(id: "316E4421-4B06-4E35-A68B-9679CD5FFFF6", title: "Test Today", timestamp:<PHONE_NUMBER>, createdAt: nil, updatedAt: nil, userCalendarItemsId: nil) with condition: nil
2022-03-09 20:35:16.436605-0500 Equestly Ride[3181:1068288] [StorageEngine] save(:modelSchema:condition:completion:) syncing mutation for CalendarEvent(id: "316E4421-4B06-4E35-A68B-9679CD5FFFF6", title: "Test Today", timestamp:<PHONE_NUMBER>, createdAt: nil, updatedAt: nil, userCalendarItemsId: nil)
2022-03-09 20:35:16.441571-0500 Equestly Ride[3181:1068288] [AWSMutationDatabaseAdapter] submit(mutationEvent:): MutationEvent(id: "E9BEA4D3-8A1B-4667-88E6-29E382E5F3BF", modelId: "316E4421-4B06-4E35-A68B-9679CD5FFFF6", modelName: "CalendarEvent", json: "{"id":"316E4421-4B06-4E35-A68B-9679CD5FFFF6","title":"Test Today","timestamp":1646876107}", mutationType: "create", createdAt: Amplify.Temporal.DateTime(foundationDate: 2022-03-10 01:35:16 +0000), version: nil, inProcess: false, graphQLFilterJSON: nil)
2022-03-09 20:35:16.444444-0500 Equestly Ride[3181:1068288] [AWSMutationDatabaseAdapter] disposition(for:given:) no local events, saving candidate
2022-03-09 20:35:16.445728-0500 Equestly Ride[3181:1068288] [AWSMutationDatabaseAdapter] resolve(candidate:localEvents:per:storageAdapter:completionPromise:) disposition saveCandidate
2022-03-09 20:35:16.446048-0500 Equestly Ride[3181:1068288] [AWSMutationDatabaseAdapter] save(mutationEvent:storageAdapter:completionPromise:) mutationEvent: MutationEvent(id: "E9BEA4D3-8A1B-4667-88E6-29E382E5F3BF", modelId: "316E4421-4B06-4E35-A68B-9679CD5FFFF6", modelName: "CalendarEvent", json: "{"id":"316E4421-4B06-4E35-A68B-9679CD5FFFF6","title":"Test Today","timestamp":1646876107}", mutationType: "create", createdAt: Amplify.Temporal.DateTime(foundationDate: 2022-03-10 01:35:16 +0000), version: nil, inProcess: false, graphQLFilterJSON: nil)
2022-03-09 20:35:16.453088-0500 Equestly Ride[3181:1068288] [AWSMutationDatabaseAdapter] save(mutationEvent:storageAdapter:completionPromise:): saved MutationEvent(id: "E9BEA4D3-8A1B-4667-88E6-29E382E5F3BF", modelId: "316E4421-4B06-4E35-A68B-9679CD5FFFF6", modelName: "CalendarEvent", json: "{"id":"316E4421-4B06-4E35-A68B-9679CD5FFFF6","title":"Test Today","timestamp":1646876107}", mutationType: "create", createdAt: Amplify.Temporal.DateTime(foundationDate: 2022-03-10 01:35:16 +0000), version: nil, inProcess: true, graphQLFilterJSON: nil)
2022-03-09 20:35:16.453234-0500 Equestly Ride[3181:1068288] [AWSMutationDatabaseAdapter] save(mutationEvent:storageAdapter:completionPromise:): invoking nextEventPromise with MutationEvent(id: "E9BEA4D3-8A1B-4667-88E6-29E382E5F3BF", modelId: "316E4421-4B06-4E35-A68B-9679CD5FFFF6", modelName: "CalendarEvent", json: "{"id":"316E4421-4B06-4E35-A68B-9679CD5FFFF6","title":"Test Today","timestamp":1646876107}", mutationType: "create", createdAt: Amplify.Temporal.DateTime(foundationDate: 2022-03-10 01:35:16 +0000), version: nil, inProcess: true, graphQLFilterJSON: nil)
2022-03-09 20:35:16.453271-0500 Equestly Ride[3181:1068288] [OutgoingMutationQueue] receive(:)
2022-03-09 20:35:16.453293-0500 Equestly Ride[3181:1068288] [OutgoingMutationQueue] enqueue(_:)
2022-03-09 20:35:16.454985-0500 Equestly Ride[3181:1068288] [StateMachine<State, Action>] Notifying: enqueuedEvent
2022-03-09 20:35:16.455059-0500 Equestly Ride[3181:1068288] [StateMachine<State, Action>] resolve(requestingEvent, enqueuedEvent) -> waitingForEventToProcess
2022-03-09 20:35:16.455100-0500 Equestly Ride[3181:1068288] [OutgoingMutationQueue] New state: waitingForEventToProcess
2022-03-09 20:35:16.456071-0500 Equestly Ride[3181:1068560] [SyncMutationToCloudOperation] main()
2022-03-09 20:35:16.456125-0500 Equestly Ride[3181:1068288] [AWSMutationDatabaseAdapter] save(mutationEvent:storageAdapter:completionPromise:): invoking completionPromise with success(Amplify.MutationEvent(id: "E9BEA4D3-8A1B-4667-88E6-29E382E5F3BF", modelId: "316E4421-4B06-4E35-A68B-9679CD5FFFF6", modelName: "CalendarEvent", json: "{"id":"316E4421-4B06-4E35-A68B-9679CD5FFFF6","title":"Test Today","timestamp":1646876107}", mutationType: "create", createdAt: Amplify.Temporal.DateTime(foundationDate: 2022-03-10 01:35:16 +0000), version: nil, inProcess: true, graphQLFilterJSON: nil))
2022-03-09 20:35:16.456130-0500 Equestly Ride[3181:1068560] [SyncMutationToCloudOperation] sendMutationToCloud(withAuthType:)
2022-03-09 20:35:16.456283-0500 Equestly Ride[3181:1068288] [StorageEngine] submitToSyncEngine(mutationEvent:syncEngine:completion:) saved mutation event: MutationEvent(id: "E9BEA4D3-8A1B-4667-88E6-29E382E5F3BF", modelId: "316E4421-4B06-4E35-A68B-9679CD5FFFF6", modelName: "CalendarEvent", json: "{"id":"316E4421-4B06-4E35-A68B-9679CD5FFFF6","title":"Test Today","timestamp":1646876107}", mutationType: "create", createdAt: Amplify.Temporal.DateTime(foundationDate: 2022-03-10 01:35:16 +0000), version: nil, inProcess: true, graphQLFilterJSON: nil)
2022-03-09 20:35:16.456359-0500 Equestly Ride[3181:1068288] [StorageEngine] syncMutation(of:modelSchema:mutationType:predicate:syncEngine:completion:) successfully submitted to sync engine MutationEvent(id: "E9BEA4D3-8A1B-4667-88E6-29E382E5F3BF", modelId: "316E4421-4B06-4E35-A68B-9679CD5FFFF6", modelName: "CalendarEvent", json: "{"id":"316E4421-4B06-4E35-A68B-9679CD5FFFF6","title":"Test Today","timestamp":1646876107}", mutationType: "create", createdAt: Amplify.Temporal.DateTime(foundationDate: 2022-03-10 01:35:16 +0000), version: nil, inProcess: true, graphQLFilterJSON: nil)
Created a new CalendarEvent successfully
2022-03-09 20:35:16.456927-0500 Equestly Ride[3181:1068288] [StorageEngine] submitToSyncEngine(mutationEvent:syncEngine:completion:) Received successful completion
Clicked
2022-03-09 20:35:16.458974-0500 Equestly Ride[3181:1068560] [SyncMutationToCloudOperation] sendMutation(describedBy:) sending mutation with sync data: GraphQLRequest<MutationSync>(apiName: nil, document: "mutation CreateCalendarEvent($input: CreateCalendarEventInput!) {\n  createCalendarEvent(input: $input) {\n    id\n    createdAt\n    timestamp\n    title\n    updatedAt\n    userCalendarItemsId\n    __typename\n    _version\n    _deleted\n    _lastChangedAt\n    owner\n  }\n}", variables: Optional(["input": ["title": Optional("Test Today"), "userCalendarItemsId": nil, "id": Optional("316E4421-4B06-4E35-A68B-9679CD5FFFF6"), "timestamp": Optional(1646876107)]]), responseType: AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>, decodePath: Optional("createCalendarEvent"), options: Optional(Amplify.GraphQLRequest<AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>>.Options(pluginOptions: Optional(AWSPluginsCore.AWSPluginOptions(authType: nil)))))
2022-03-09 20:35:16.459700-0500 Equestly Ride[3181:1068560] [OutgoingMutationQueue] respond(to:): waitingForEventToProcess
2022-03-09 20:35:16.459780-0500 Equestly Ride[3181:1068560] [API] Starting mutation EFA7E803-508D-4CDA-B501-9B404540F29F
2022-03-09 20:35:16.459906-0500 Equestly Ride[3181:1068560] [API] {
"query" : "mutation CreateCalendarEvent($input: CreateCalendarEventInput!) {\n  createCalendarEvent(input: $input) {\n    id\n    createdAt\n    timestamp\n    title\n    updatedAt\n    userCalendarItemsId\n    __typename\n    _version\n    _deleted\n    _lastChangedAt\n    owner\n  }\n}",
"variables" : {
"input" : {
"title" : "Test Today",
"userCalendarItemsId" : null,
"id" : "316E4421-4B06-4E35-A68B-9679CD5FFFF6",
"timestamp" :<PHONE_NUMBER>
}
}
}
2022-03-09 20:35:16.469856-0500 Equestly Ride[3181:1068560] [API] Starting network task for mutation EFA7E803-508D-4CDA-B501-9B404540F29F
2022-03-09 20:35:16.867586-0500 Equestly Ride[3181:1068560] [SyncMutationToCloudOperation] GraphQL mutation operation received result: success(Swift.Result<AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>, Amplify.GraphQLResponseError<AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>>>.failure(GraphQLResponseError<MutationSync>: GraphQL service returned a successful response containing errors: [Amplify.GraphQLError(message: "One or more parameter values were invalid: Type mismatch for Index Key userCalendarItemsId Expected: S Actual: NULL IndexName: gsi-User.calendarItems (Service: DynamoDb, Status Code: 400, Request ID: 6LSVV2T6AA9NDBVAP57C91STFJVV4KQNSO5AEMVJF66Q9ASUAAJG)", locations: Optional([Amplify.GraphQLError.Location(line: 2, column: 3)]), path: Optional([Amplify.JSONValue.string("createCalendarEvent")]), extensions: Optional(["errorInfo": Amplify.JSONValue.null, "data": Amplify.JSONValue.null, "errorType": Amplify.JSONValue.string("DynamoDB:DynamoDbException")]))]
Recovery suggestion: The list of GraphQLError contains service-specific messages))
2022-03-09 20:35:16.867739-0500 Equestly Ride[3181:1068560] [SyncMutationToCloudOperation] finish(result:)
2022-03-09 20:35:16.868217-0500 Equestly Ride[3181:1068689] [OutgoingMutationQueue] [SyncMutationToCloudOperation] mutationEvent finished: E9BEA4D3-8A1B-4667-88E6-29E382E5F3BF; result: success(Swift.Result<AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>, Amplify.GraphQLResponseError<AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>>>.failure(GraphQLResponseError<MutationSync>: GraphQL service returned a successful response containing errors: [Amplify.GraphQLError(message: "One or more parameter values were invalid: Type mismatch for Index Key userCalendarItemsId Expected: S Actual: NULL IndexName: gsi-User.calendarItems (Service: DynamoDb, Status Code: 400, Request ID: 6LSVV2T6AA9NDBVAP57C91STFJVV4KQNSO5AEMVJF66Q9ASUAAJG)", locations: Optional([Amplify.GraphQLError.Location(line: 2, column: 3)]), path: Optional([Amplify.JSONValue.string("createCalendarEvent")]), extensions: Optional(["errorInfo": Amplify.JSONValue.null, "data": Amplify.JSONValue.null, "errorType": Amplify.JSONValue.string("DynamoDB:DynamoDbException")]))]
Recovery suggestion: The list of GraphQLError contains service-specific messages))
2022-03-09 20:35:16.873451-0500 Equestly Ride[3181:1068689] [ProcessMutationErrorFromCloudOperation] main()
2022-03-09 20:35:16.873547-0500 Equestly Ride[3181:1068689] [ProcessMutationErrorFromCloudOperation] Unhandled error with errorType DynamoDB:DynamoDbException
2022-03-09 20:35:16.874748-0500 Equestly Ride[3181:1068560] [OutgoingMutationQueue] [ProcessMutationErrorFromCloudOperation] result: success(nil)
2022-03-09 20:35:16.885739-0500 Equestly Ride[3181:1068560] [OutgoingMutationQueue] mutationEvent deleted successfully
2022-03-09 20:35:16.886256-0500 Equestly Ride[3181:1068560] [StateMachine<State, Action>] Notifying: processedEvent
2022-03-09 20:35:16.886326-0500 Equestly Ride[3181:1068560] [StateMachine<State, Action>] resolve(waitingForEventToProcess, processedEvent) -> requestingEvent
2022-03-09 20:35:16.886367-0500 Equestly Ride[3181:1068560] [OutgoingMutationQueue] New state: requestingEvent
2022-03-09 20:35:16.886469-0500 Equestly Ride[3181:1068689] [OutgoingMutationQueue] respond(to:): requestingEvent
2022-03-09 20:35:16.886504-0500 Equestly Ride[3181:1068689] [OutgoingMutationQueue] requestEvent()
2022-03-09 20:35:16.886529-0500 Equestly Ride[3181:1068689] [AWSMutationEventPublisher] requestNextEvent()
2022-03-09 20:35:16.886573-0500 Equestly Ride[3181:1068689] [AWSMutationDatabaseAdapter] getNextMutationEvent(completion:)

It seems a field called: "userCalendarItemsId" which was not created in my original schema, results in nil value. My secondary confusion is: why is this field created? if it is not included in the original schema? Was this what you were referencing in point #2?

Hi @carl0sLOL, what I meant by a user that needs to be confirmed is if your signIn API call returns a AuthSignInStep other than done. In your case, you have done the correct flow to confirm the user that has signed up. I can also see the tokens in your logs, DataStore uses either accessToken or idToken when constructing the request for AppSync that has UserPool auth enabled, when syncing the save's. I checked my User Pools console and my app client also doesn't have Cognito User Pool checked off under Enable Identity Providers so I feel that might not be what made it work. You can reduce this step down just starting DataStore to reduce the logging and further debug, ie.
func signInAndStart() {
        Amplify.Auth.signIn(username: "[USERNAME]", password: "[PASSWORD]") { result in
            switch result {
            case .success(let result):
                guard result.isSignedIn else {
                    print("Not signed in")
                    return
                }

                guard case .done = result.nextStep else {
                    print("sign in not .done: \(result)")
                    return
                }
                Amplify.DataStore.start { result in
                    print(result)
                }
            case .failure(let error):
                print("\(error)")
            }
        }
    }

Please see the updated schema in https://github.com/aws-amplify/amplify-ios/issues/1673#issuecomment-1063496504 at the bottom, i've made an explicit belongs-to relationship from the CalendarEvent to the user. one directional has-many isn't something fully tested/supported by DataStore on iOS at the moment. The field that is generated but not explicit in the schema userCalendarItemsId stores the userId which the calendarEvent belongs to

@lawmicha Thank you for explaining. This has been instrumental in getting a huge portion of the app to properly persist data. One final error that I am running into is: AWS Cognito determining that a User Session is active... yet the user is not signed in. How could the session be active without the user being signed in?

@lawmicha  As an example
We run the following function
`if let user = Amplify.Auth.getCurrentUser(){
        Amplify.Auth.fetchAuthSession { result in
            switch result {
            case .success(let session):
                DispatchQueue.main.async {
                    self.authState = .session(user: user)
                }
            case .failure(let error):
                print("Fetch session failed with error \(error)")
                self.sessionError = error.errorDescription
            }
        }

    } else {
        authState = .signUp
    }`

The logged result is as follows:

success(AWSCognitoAuthPlugin.AWSAuthCognitoSession(isSignedIn: true, userSubResult: Swift.Result<Swift.String, Amplify.AuthError>.success("5b88dab0-f1b9-44a7-ad6d-4e31314a9e6a"), identityIdResult: Swift.Result<Swift.String, Amplify.AuthError>.success("us-east-1:6988e60c-1812-4b44-91de-142a7d9565bd"), awsCredentialsResult: Swift.Result<AWSPluginsCore.AuthAWSCredentials, Amplify.AuthError>.success(AWSCognitoAuthPlugin.AuthAWSCognitoCredentials(accessKey: "ASIARJVSFPNADW6HR6XE", secretKey: "2qaSOd5T/BZpPgTu0cia11mqcv4ZL1jLvL3JfsTw", sessionKey: "IQoJb3JpZ2luX2VjEO7//////////wEaCXVzLWVhc3QtMSJIMEYCIQDRouB0qLrj77qgrwmADqEIcQmIjgBn4b8jrDSjB5tgQwIhAJHqtwA1lGhxAPhT3f+SdLSWXWO+y8WhgZH8xzzaA6VnKsQECHcQARoMMDg5NDk0MjIzNjgwIgxcTtEEibnMOUUmL94qoQT/JlZd1bur5wc2tXu5x+CmOhvAnjYmQjPTvncwPusgTq0OEAcAp8CJae+0ZsKlYBAloQg2MF2J9dp3BfJraxpLCe+CHugzSrD2CLUc1nUl3XSgQEOSuUnKgHnVySZql+LLYJbwD3gvcrcOagAlPuCxNfHgbXAoflTEkWfUejbScZ8CwbeHqdlcjWhhXpT+yF7AAdbtttunWWNFLF9VBVWg1cwxL3sCIrXyGE9RPQS09uPiGpmOyUI87rdcmA3SXMe1h1c5fZw6wKRn6HbsBPLSzvrS4ig5r5zp0OG/X83RmM8+OkQZOyPrDahfotNGAUlT+Nzcsg9LOYYTnLfVt92lzsTRSAaDe+PbeMjSLPIyziL17wHmr6yMYCixPMoB4PQc927LsG1eM5SvJdlUJUpanveRFXARe+X5ZkXDCrWBBfwHyDcYbJiQtwbxNnk+8tbt2DSbsKC9gg+eDCb51ZaqfpriIke4RkMBpjjf9+RY4JRK3M8naQ0MahCUaEW6ntvWoVI76A61cPs88rXuYIRyNXcj5p09KTIGm81Q++PHIwePHaicuhqZl9Xqyt6iO2yj/T82/rogh7kCwG71ftmZBrDJ06P9rylH9+bn8rzDt4ObD/DqhDTU9pgLDj772Yvah7kC7qMTMkgHNj5NyZES3pwu3zGKGXFNedArx5V9Vi5OiFSEFurgJ9tJbHIxYRRiP3G9vW4sn+lYEy6jkcn3RDC6k/eRBjqEAs3VH5iGQRf7fDhPN0kXCtAzkgoymJVpoSc2JwSlU1k6JWyR7m0LPL0SZa0TDgQib9ewFe6ltsJTfEMGj+0YqhHQLVnFsDPY5KKzM1EKR1t2lgioCrHBDJC4mMl/noKva8M13Rv5rRPViukYV7xVCAk4XMq8UfwD/vs94js5htv0zKBu9YWmDAvH3jO5Yev1acVLiV0GCnchLZMFlavZKep3Apum+zi1wqCMqIHibx1NQQ0jfjqZwUgnjs+mCcdeY7VF7hMP3pbktrpw/2EGwK9vdk6McpW0krAL8wFCcEVDvWeDbsWEhoyCkln6BWZVRSfeBrK9ifEK9sjwa/rN87KSA9qq", expiration: 2022-03-25 14:55:06 +0000)), cognitoTokensResult: Swift.Result<AWSPluginsCore.AuthCognitoTokens, Amplify.AuthError>.success(AWSCognitoAuthPlugin.AWSCognitoUserPoolTokens(idToken: "eyJraWQiOiJSMm8rRm5Bb2g3bUxlVURwQlFRQ21oczdFQktBOTFVd09lUkpCQkk0N2hBPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiI1Yjg4ZGFiMC1mMWI5LTQ0YTctYWQ2ZC00ZTMxMzE0YTllNmEiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfekFxREJHazBuIiwiY29nbml0bzp1c2VybmFtZSI6IjViODhkYWIwLWYxYjktNDRhNy1hZDZkLTRlMzEzMTRhOWU2YSIsIm9yaWdpbl9qdGkiOiJlYTkwOTAzMy02MTlkLTQzMjMtOWFkYy0yMDQwNDk4ZmQ0MmIiLCJhdWQiOiI5bHMzczlxNGVidHE0Mzd0ODVjazllaTVhIiwiZXZlbnRfaWQiOiIwMTdiMDQ0My1lYWY3LTQ2NzgtOTM2Ny00Y2MyYmU4MjI0ZWUiLCJ0b2tlbl91c2UiOiJpZCIsImF1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DPceSJBZG1qRkBLVGeB1UqksTWfHKItQHncNQAl4I3-0Gzd-rnMhl-WyJWiSVXLMxv9lATcSDU1F_oJHGk4eNz80ESS_vTrUgHKCuNQN8y3h2zHJVpZEZNCMgQToMg5_LUIspFbRRCGC0_hvyuX_rD1Qp1FNZsuws_3nhRQg.JkcK2jM_s-ribAwsdUsw3g"))))

Once the app initializes, it realizes that the user is in fact not signed in - although we returned "isSignedIn = True". This doesnt allow the data to pull from DataStore. Now, I try to log the user out and receive:

success(AWSCognitoAuthPlugin.AWSAuthCognitoSession(isSignedIn: false, userSubResult: Swift.Result<Swift.String, Amplify.AuthError>.failure(AuthError: There is no user signed in to retreive user sub
Recovery suggestion: Call Auth.signIn to sign in a user and then call Auth.fetchSession), identityIdResult: Swift.Result<Swift.String, Amplify.AuthError>.failure(AuthError: There is no user signed in to retreive identity id
Recovery suggestion: Call Auth.signIn to sign in a user or enable unauthenticated access in AWS Cognito Identity Pool
Caused by:
invalidAccountTypeException), awsCredentialsResult: Swift.Result<AWSPluginsCore.AuthAWSCredentials, Amplify.AuthError>.failure(AuthError: There is no user signed in to retreive AWS credentials
Recovery suggestion: Call Auth.signIn to sign in a user or enable unauthenticated access in AWS Cognito Identity Pool
Caused by:
invalidAccountTypeException), cognitoTokensResult: Swift.Result<AWSPluginsCore.AuthCognitoTokens, Amplify.AuthError>.failure(AuthError: There is no user signed in to retreive cognito tokens
Recovery suggestion: Call Auth.signIn to sign in a user and then call Auth.fetchSession)))
Is user signed in - false
2022-03-25 10:02:39.608608-0400 Equestly Ride[4827:1182633] [tcp] tcp_output [C25.1.1:3] flags=[R.] seq=1996136293, ack=3128598318, win=2047 state=CLOSED rcv_nxt=3128598318, snd_una=1996136216
2022-03-25 10:02:39.852703-0400 Equestly Ride[4827:1182633] [tcp] tcp_output [C26.1.1:3] flags=[R.] seq=470509924, ack=4083996884, win=2047 state=CLOSED rcv_nxt=4083996884, snd_una=470509847

Stating that no user was signed in to be able to log them out... i am very confused

To further investigate the issue you are facing with Auth, I would need to ask some clarifying questions.

I would like to understand your application flow.. specifically in more details about the calls to getCurrentUser, fetchAuthSession, signIn and signOut?
Can you elaborate what you mean by "Once the app initializes"?
Since the logout fails, is it blocking you from doing all other operations using amplify?

getCurrentUserAuthState lives inside of a SessionManager. This session manager is instantiated, and is then sessionManager.getCurrentUserAuthState() is called to verify a user's auth state. We have an Enum for the users state:
getCurrentUserAuthState():
`if let user = Amplify.Auth.getCurrentUser(){
  Amplify.Auth.fetchAuthSession { result in
      switch result {
      case .success(let session):
          DispatchQueue.main.async {
              self.authState = .session(user: user)
          }
      case .failure(let error):
          print("Fetch session failed with error \(error)")
          self.sessionError = error.errorDescription
      }
  }

} else {
authState = .signUp
}`
Enum:
enum AuthState {     case signUp     case login     case confirmCode(username: String)     case session(user: AuthUser) }
signIn():
func signIn(username: String, password: String) {         Amplify.Auth.signIn(username: username, password: password) { result in             switch result {             case .success:                 print("Sign in suceeeded:")                 print(result)                 DispatchQueue.main.async {                     self.sessionUsername = username                     self.getCurrentUserAuthState()                 }             case .failure(let error):                 print("Sign in failed \(error)")                 self.sessionError = error.errorDescription             }         }     }
logout/login is not necessarily the issue. The issue is that the response from DataStore states that the user isSignedIn = true when in fact, the user is not signed in at all as DataStore rejects the request to sync.

@harsh62 please see response above

@carl0sLOL Can you also post an example of the DataStore request that you are making?


[ ART ] Obstacles Sprites

Sprites for the various obstacles that can show up.

Going to delete this. Doderlaine is working using another issue.


header_xdr not set in ledgers endpoint

Call one of the ledgers endpoints (single ledger or multiple ledgers).
For example: https://www.stellar.org/laboratory/#explorer?resource=ledgers&endpoint=all&values=eyJvcmRlciI6ImRlc2MifQ%3D%3D&network=public
the field header_xdr seems to be all 0s
expected:
actual header that was ingested.
  "header_xdr": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"

And it's not present at all in testnet: https://horizon-testnet.stellar.org/ledgers?order=desc&limit=1
I checked if maybe it's a bug in https://github.com/stellar/go/pull/338 but it's not related.


Peers don't see each other

Hi, I couldn't make the app show the cameras for each other. I tried on 2 different phones ios8.3. I installed the podfile corrently as well if I didn't have to change anything in the podfile. The app opens and asks for camera usage permission but doesn't show the cameras for each other (or themselves).  In addition, XCTest.framework seems missing (red) in the project for me. And I get this log:
2015-05-14 16:00:11.622 ios-demo[10558:2360515] WARNING: -[<AVCaptureConnection: 0x16f84e40> setVideoMinFrameDuration:] is deprecated.  Please use AVCaptureDevice setActiveVideoMinFrameDuration
2015-05-14 16:00:11.625 ios-demo[10558:2360515] WARNING: -[<AVCaptureConnection: 0x16f84e40> setVideoMaxFrameDuration:] is deprecated.  Please use AVCaptureDevice setActiveVideoMaxFrameDuration
2015-05-14 16:00:11.637 ios-demo[10558:2360302] connect success
2015-05-14 16:00:11.933 ios-demo[10558:2360302] join success
Am I doing something wrong?

Hi,
I have the same error, Have you any solution?

try to separate the local view from the remote view on the storyboard, then you have to make some changes on the viewcontroller.m:
1)add those lines on the viewdidload where you have NSLog(@"connect success"); :
////////////////////////////////////////////////////////////////////////
RTCVideoTrack * localVideoTrack1 = self.signaling.localMediaStream.videoTracks[0];
self.localVideoTrack = localVideoTrack1;
[self.localVideoTrack addRenderer:self.localView];
////////////////////////////////////////////////////////////////////////
2)replace the addedStream void with this:
////////////////////////////////////////////////////////////////////////
#pragma mark - TLKSocketIOSignalingDelegate
-(void)socketIOSignaling:(TLKSocketIOSignaling *)socketIOSignaling addedStream:(TLKMediaStream *)stream {
NSLog(@"addedStream");
RTCVideoTrack * remoteVideoTrack = stream.stream.videoTracks[0];
self.remoteVideoTrack = remoteVideoTrack;
[self.remoteVideoTrack addRenderer:self.remoteView];
}
////////////////////////////////////////////////////////////////////////
it should works now

Hi mohamedguembri:
I used the method you mentioned, but i still can not get the remote video on my phone.
I use this iOS demo to communicate with chrome browser which runs the code from SimpleWebRTC, and i can see both pc video and phone video from browser, but only phone video on my iphone,
Can you help me?

Hi, for me the demo works perfectly with iPhone-Chrome, but a white screen appears on iPhone-Firefox (the connection seems to be succesful, but the remote image no appear both on iPhone and on Firefox)

Hi @totiherms , what code did you use to get simpleWebRTC (was it from github?) in a PC Chrome browser working with ios-Demo? It had to be over an HTTPS connection on the PC to work correct?


wallet api

How do I get the address balance and the exact transaction fee

The wallet doesn't seem to provide an API at this time

Hi @satonz,

Address Balance There is currently no API to get the balance at a single address. You can get the balance for the entire wallet, or for a single account of the wallet. You may be able to work around this by using the transaction history API endpoint, and calculating the address balance yourself.

Exact transaction fee The transaction fee can vary, so the API only provides an estimate. The reason is that cardano-wallet uses random coin selection to build transactions. This is actually the best coin selection method to minimize dust coins (and therefore average fees). But the fee depends on which coins are randomly selected to fund the transaction.
If you absolutely need to know the exact fee ahead of time, the /v2/wallets/{walletId}/coin-selections/random endpoint can give you a coin selection for the payment. Then you can build and sign the transaction with the cardano-tx CLI. Then you can submit it with the /v2/proxy/transactions endpoint.

cardano-graphql The relevant information is available, but I find that the repository is constantly changing and may be unstable

@rvl

Hi @satonz, cardano-graphql may be more stable if you stay with released versions.

cardano-graphql is a stable product and we are doing our best to minimize the amount of changes in the API from a release to another.

I find that the repository is constantly changing

That is the case for cardano-wallet too :). Both repositories, as any project in Cardano, is changing at a frenetic pace. Yet again, we do our best to limit the integration efforts from the user's side.
@satonz , do you mind if I close this ticket now?


When I go through portals my items in my hotbar and creative menu go invisible???

I use 1.17.1 version and the newest stuff.

Are you using other mods such as optifine?

This occurs to me as well, even with literally only three mods: Fabric API, Mod Menu, and Immersive Portals. It looks to me like it maybe everything's clipping very poorly once you look into a portal? F3+T fixes the inventory issue, but it doesn't stop the player model's clipping issues.
Seeing player/held item models being cut off and what is cut off changing (it's as if a plane is intersecting the player and items, forcing faces and parts of faces between it and the camera to not render) change while rotating the camera in third person leads me to believe that it is a clipping issue. I'm not sure how much I can help past this, but it's the same whether 3 mods or 87, which makes me think it's between Minecraft, Immersive Portals, and Fabric.

@lunathir I made some change of clipping code that may fix it https://github.com/qouteall/ImmersivePortalsMod/releases/tag/v0.27-1.17

First person and the inventory do still seem to be a bit buggy, but it certainly helps a lot. The hand/inventory still do disappear, but a workaround is as easy as looking away from the portal and switching to third person and back, whereas release 0.26 doesn't change anything if you do the same thing, and the only thing to fix it is if you walk out from a looping portal in a very specific way. Third person looks to be fixed otherwise, though.
The following folder has a video showing the issues in the current prerelease in a little more detail though, since GH doesn't particularly enjoy files over 10mb.
https://drive.google.com/file/d/12RLbXT32nq-1v-62p0M7CkwuH7zgnfUx/view?usp=sharing

@lunathir The video is not being shared.

Oh, I probably set up the folder wrong. Maybe try again, and if it doesn't work maybe use this link?
https://drive.google.com/file/d/12RLbXT32nq-1v-62p0M7CkwuH7zgnfUx/view?usp=drivesdk

@lunathir  I can see the video now. I cannot reproduce the issue, can you upload the world? And I made some rendering changes in this version https://github.com/qouteall/ImmersivePortalsMod/releases/tag/v0.28-1.17  which may affect the issue

OKAY OKAY OKAY
So I did a bit of testing on my desktop, which has an nVidia card, while my laptop has Intel HD 4000... and it really looks like it's an Intel issue for some reason?

Merged to https://github.com/qouteall/ImmersivePortalsMod/issues/916


Enable CUD operations for layers

This adds a LayerEditForm to enable creation, updating and deletion of layers.
Please review @terrestris/devs.

Thanks for the review.


Forester 23 fingerprint from FutureGhost

8db3f557a1e70a1a|2023-06-09--13-02-15
fwd camera did not reply, probably similar to the 23 ascent issues

Thanks, I already added fw values before I saw the PR. We will need to figure out the eyesight fw version query issue.


Make performance trackable over time

We need some sort of place to store the metrics over time, e.g. a storage blob, or a cloud workspace or something like that.

This is complete as of yesterday's check-in. We now have support for tracking performance through AzureML workspaces if users choose to use them. They can still run everything locally and store results in blobs somewhere, but AzureML is now a first-class supported execution platform. If anyone wants to add others please submit a PR. The "execution" directory is intentionally left open to other platforms.


registry_key missing slashes

If you create a 'registry_key' it creates with missing slashes
  registry_key 'HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionname_of_registry_key' do
    values [{:name => 'NewRegistryKeyValue', :type => :string, :data => 'C:WindowsSystem32ile_name.bmp'}]
    action :create
  end

The bug is here:
https://github.com/darron/language-chef/blob/master/snippets/language-chef.cson#L257-L259
It isn't clear to me how to fix this since it appears that the bug exists regardless if using single slashes or double slashes.
Perhaps the slashes need to be double escaped?
'body': 'registry_key \'${1:HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\name_of_registry_key}\' do\n  values [{:name => \'${2:NewRegistryKeyValue}\', :type => :${3:string}, :data => ${4:\'C:\\\\Windows\\\\System32\\\\file_name.bmp\'}}]\n  action :${5:create}\nend'

For posterity, the way to troubleshoot this is to use atom in development mode
apm develop language-chef
cd ~/.atom/dev/packages/languages-chef
atom -d

The backslashes do need to be quadruple quoted. PR incoming.


Docs should be sync with latest commit

Docs are not rendering the latest commit from https://github.com/envoyproxy/envoy/commit/18db4c90e3295fb2c39bfc7b2ce641cfd6c3fbed

cc @phlax

I think the issue is the netlify config is broken from master -> main switch. I will take a look.

Fixed


Make most fields in big query diagnostic schema as optional

While working on product-management#72, it was observed that we might miss some diagnostic reports due to schema validation of required fields.
We don't want to miss diagnostic reports if some of the current mandatory fields are malformed or missing due to hardware/software issues. Except for timestamp, there isn't any need to mark fields as required.
In case of errors, this might lead to diag not being uploaded and thus problem being masked. Even if there is no large problem being masked, the diag upload frequency which we use to calculate uptime becomes unreliable.
Required Fields as of date that need conversion to optional:
"BN",
"ID",
"BA",
"FR",
"FW",
"VA",
"serial_number",
"PK",
"OK"
"AN",
Acceptance Criterion

Make all fields except timestamp optional.

@marvinmarnold This will require making changes to the table. @htsili can probably do it. I have checked. Converting previously required fields to optional is allowed by big query. I can make the device side changes after that.

@pritamghanghas i think this is now done. Can you please check it?

@htsili LGTM I will work on rest of it.

We are seeing diagnostics coming through again so I think this is production already. Is any additional work needed or can this be closed @pritamghanghas ?

@marvinmarnold No, this is in QA now. I will check a few devices from testnet tomorrow and close the ticket.

@pritamghanghas This must be in production already. We are getting around 470k upload per day since Jul 28th

@pritamghanghas can you make sure this gets into production before the end of the sprint.
@KevinWassermann94 this has changes in two places - Google Cloud schema and code. Changing the cloud schema is in prod and restored uploads for most devices. The code change still needs to be deployed but will prob not have a big impact.