{"action":"created","comment":{"url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/pulls/comments/242244736","pull_request_review_id":185710909,"id":242244736,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MjI0NDczNg==","diff_hunk":"@@ -0,0 +1,596 @@\n+//\n+//  AppSyncSubscriptionWithSync.swift\n+//  AWSAppSync\n+//\n+\n+import Foundation\n+\n+public typealias DeltaQueryResultHandler<Operation: GraphQLQuery> = (_ result: GraphQLResult<Operation.Data>?, _ transaction: ApolloStore.ReadWriteTransaction?, _ error: Error?) -> Void\n+\n+class AppSyncSubscriptionWithSync<Subscription: GraphQLSubscription, BaseQuery: GraphQLQuery, DeltaQuery: GraphQLQuery>: Cancellable {\n+\n+    // Incoming configuration options\n+    private weak var appSyncClient: AWSAppSyncClient?\n+    private weak var subscriptionMetadataCache: AWSSubscriptionMetaDataCache?\n+    private weak var handlerQueue: DispatchQueue?\n+\n+    // Incoming queries & handlers\n+    private var baseQuery: BaseQuery\n+    private var baseQueryHandler: OperationResultHandler<BaseQuery>\n+\n+    private var subscription: Subscription?\n+    private var subscriptionHandler: SubscriptionResultHandler<Subscription>?\n+\n+    private var deltaQuery: DeltaQuery?\n+    private var deltaQueryHandler: DeltaQueryResultHandler<DeltaQuery>?\n+\n+    // Internal state\n+    private var syncStrategy: SyncStrategy\n+    private var subscriptionWatcher: AWSAppSyncSubscriptionWatcher<Subscription>?\n+\n+    private var currentSyncAttempts = 0\n+\n+    /// Serializes sync setup, query, and teardown operations to ensure a consistent ordering of invocations.\n+    private var internalStateSyncQueue: OperationQueue\n+\n+    /// Serializes processing of subscription messages received from service to ensure we process them in the order they were\n+    /// received. Note that this queue is private to this subscription instance, and does not guarantee consistent ordering with\n+    /// other subscriptions.\n+    ///\n+    /// This property is lazily initialized to allow us to declare the result handler with a `weak self`\n+    /// in the capture list.\n+    private lazy var subscriptionMessagesQueue: SubscriptionMessagesQueue<Subscription> = {\n+        return SubscriptionMessagesQueue<Subscription>(for: getOperationHash()) { [weak self] (result, date, transaction) in\n+            self?.deliverSubscriptionResult(result: result, date: date, transaction: transaction)\n+        }\n+    }()\n+\n+    private var nextSyncTimer: DispatchSourceTimer?\n+\n+    internal init(appsyncClient: AWSAppSyncClient,\n+                  baseQuery: BaseQuery,\n+                  deltaQuery: DeltaQuery,\n+                  subscription: Subscription,\n+                  baseQueryHandler: @escaping OperationResultHandler<BaseQuery>,\n+                  deltaQueryHandler: @escaping DeltaQueryResultHandler<DeltaQuery>,\n+                  subscriptionResultHandler: @escaping SubscriptionResultHandler<Subscription>,\n+                  subscriptionMetadataCache: AWSSubscriptionMetaDataCache?,\n+                  syncConfiguration: SyncConfiguration,\n+                  handlerQueue: DispatchQueue) {\n+\n+        self.appSyncClient = appsyncClient\n+        self.subscriptionMetadataCache = subscriptionMetadataCache\n+        self.handlerQueue = handlerQueue\n+\n+        self.baseQuery = baseQuery\n+        self.baseQueryHandler = baseQueryHandler\n+\n+        // We check if subscription and delta query are not internal no-op operations before setting them\n+        // This is done since Swift compiler can't infer generic types for these operations.\n+        if Subscription.operationString != NoOpOperationString {\n+            self.subscription = subscription\n+            self.subscriptionHandler = subscriptionResultHandler\n+        }\n+\n+        if DeltaQuery.operationString != NoOpOperationString {\n+            self.deltaQuery = deltaQuery\n+            self.deltaQueryHandler = deltaQueryHandler\n+        }\n+\n+        syncStrategy = SyncStrategy(\n+            hasDeltaQuery: self.deltaQuery != nil,\n+            syncRefreshIntervalInSeconds: syncConfiguration.syncIntervalInSeconds\n+        )\n+\n+        internalStateSyncQueue = OperationQueue()\n+        internalStateSyncQueue.maxConcurrentOperationCount = 1\n+        internalStateSyncQueue.name = \"AppSync.DeltaSyncOperationQueue.\\(getOperationHash())\"\n+\n+        performInitialSync()\n+    }\n+\n+    // MARK: - Cancellable\n+\n+    /// Cancel the subscription sync. This releases all internal resources and unregisters for system notifications.\n+    ///\n+    /// Callers must invoke `cancel` on subscription sync in order to release resources. Failure to do so will cause\n+    /// memory leaks.\n+    func cancel() {\n+        // perform user-cancellation tasks, if any, then internal ones.\n+        internalCancel()\n+    }\n+\n+    // MARK: - Setup\n+\n+    private func performInitialSync() {\n+        AppSyncLog.debug(\"Queuing operations for initial sync\")\n+        internalStateSyncQueue.addOperation {\n+            self.registerForNotifications()\n+            self.initializeLastSyncTimeFromCache()\n+            self.initializeBaseQueryResultsFromCache()\n+            self.performSync()\n+        }\n+    }\n+\n+    // MARK: - Sync time\n+\n+    /// Fetches last sync time from local cache and updates `syncStrategy` with the retrieved value\n+    private func initializeLastSyncTimeFromCache() {\n+        do {\n+            let lastSyncTime = try self.subscriptionMetadataCache?.getLastSyncTime(operationHash: getOperationHash())\n+            syncStrategy.lastSyncTime = lastSyncTime\n+            AppSyncLog.debug(\"Loaded lastSyncTime from cache: \\(lastSyncTime.debugDescription)\")\n+        } catch {\n+            // could not find it in cache, assume no sync was done previously\n+        }\n+    }\n+\n+    /// Updates the last sync time and persists it to `subscriptionMetadataCache` if present. Expected to\n+    /// be called when subscription message is given to the caller, or if base query or delta query is run.\n+    ///\n+    /// - Parameters:\n+    ///   - date: The date at which the last sync was successfully performed\n+    private func setLastSyncTime(date: Date) {\n+        do {\n+            let adjustedDate = date.addingTimeInterval(TimeInterval.init(exactly: -2)!)\n+            AppSyncLog.debug(\"Updating lastSync time \\(adjustedDate)\")\n+            self.syncStrategy.lastSyncTime = adjustedDate\n+            try subscriptionMetadataCache?.updateLastSyncTime(for: getOperationHash(), with: adjustedDate)\n+        } catch {\n+            // ignore cache write failure, be updated in next operation, is backed up by in-memory cache\n+        }\n+    }\n+\n+    // MARK: - Base query handling\n+\n+    /// Load base query results from cache, to quickly provide callers with the most recent results\n+    private func initializeBaseQueryResultsFromCache() {\n+        guard let appSyncClient = appSyncClient else {\n+            return\n+        }\n+\n+        let dispatchGroup = DispatchGroup()\n+        dispatchGroup.enter()\n+        AppSyncLog.info(\"Initializing base query results from cache\")\n+        appSyncClient.fetch(query: baseQuery, cachePolicy: CachePolicy.returnCacheDataDontFetch) { [weak self] (result, error) in\n+            self?.baseQueryHandler(result, error)\n+            dispatchGroup.leave()\n+        }\n+        dispatchGroup.wait()\n+    }\n+\n+    /// Load base query results from service, forcing a bypass of the local cache\n+    private func runBaseQueryFromService() -> Bool {\n+        guard let appSyncClient = appSyncClient else {\n+            return false\n+        }\n+\n+        var success: Bool = true\n+\n+        AppSyncLog.info(\"Refreshing base query results from service\")\n+\n+        let semaphore = DispatchSemaphore(value: 0)\n+\n+        let networkFetchTime = Date()\n+\n+        appSyncClient.fetch(query: baseQuery, cachePolicy: .fetchIgnoringCacheData) { [weak self] (result, error) in\n+\n+            defer {\n+                semaphore.signal()\n+            }\n+\n+            guard let self = self else {\n+                return\n+            }\n+\n+            // call customer if successful or error","path":"AWSAppSyncClient/Internal/AppSyncSubscriptionWithSync.swift","position":186,"original_position":186,"commit_id":"68f8f5d05e051f89919750a711ebd0f31ee864d6","original_commit_id":"68f8f5d05e051f89919750a711ebd0f31ee864d6","user":{"login":"palpatim","id":227982,"node_id":"MDQ6VXNlcjIyNzk4Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/227982?v=4","gravatar_id":"","url":"https://api.github.com/users/palpatim","html_url":"https://github.com/palpatim","followers_url":"https://api.github.com/users/palpatim/followers","following_url":"https://api.github.com/users/palpatim/following{/other_user}","gists_url":"https://api.github.com/users/palpatim/gists{/gist_id}","starred_url":"https://api.github.com/users/palpatim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palpatim/subscriptions","organizations_url":"https://api.github.com/users/palpatim/orgs","repos_url":"https://api.github.com/users/palpatim/repos","events_url":"https://api.github.com/users/palpatim/events{/privacy}","received_events_url":"https://api.github.com/users/palpatim/received_events","type":"User","site_admin":false},"body":"Simplified the call and obviated the comment :)","created_at":"2018-12-17T17:34:14Z","updated_at":"2018-12-17T17:34:14Z","html_url":"https://github.com/awslabs/aws-mobile-appsync-sdk-ios/pull/132#discussion_r242244736","pull_request_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/pulls/132","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/pulls/comments/242244736"},"html":{"href":"https://github.com/awslabs/aws-mobile-appsync-sdk-ios/pull/132#discussion_r242244736"},"pull_request":{"href":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/pulls/132"}},"in_reply_to_id":242029943},"pull_request":{"url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/pulls/132","id":238479731,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4NDc5NzMx","html_url":"https://github.com/awslabs/aws-mobile-appsync-sdk-ios/pull/132","diff_url":"https://github.com/awslabs/aws-mobile-appsync-sdk-ios/pull/132.diff","patch_url":"https://github.com/awslabs/aws-mobile-appsync-sdk-ios/pull/132.patch","issue_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/issues/132","number":132,"state":"open","locked":false,"title":"Refactored AppSyncSubscriptionWithSync","user":{"login":"palpatim","id":227982,"node_id":"MDQ6VXNlcjIyNzk4Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/227982?v=4","gravatar_id":"","url":"https://api.github.com/users/palpatim","html_url":"https://github.com/palpatim","followers_url":"https://api.github.com/users/palpatim/followers","following_url":"https://api.github.com/users/palpatim/following{/other_user}","gists_url":"https://api.github.com/users/palpatim/gists{/gist_id}","starred_url":"https://api.github.com/users/palpatim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palpatim/subscriptions","organizations_url":"https://api.github.com/users/palpatim/orgs","repos_url":"https://api.github.com/users/palpatim/repos","events_url":"https://api.github.com/users/palpatim/events{/privacy}","received_events_url":"https://api.github.com/users/palpatim/received_events","type":"User","site_admin":false},"body":"- Fix data races in AppSyncSubscriptionWithSync (Implicated in #124)\r\n- Removed unused properties\r\n- Updated project organization\r\n- Added tests for refactored units\r\n\r\n*Issue #, if available:*\r\n\r\nImplicated in #124, but there are more and deeper races that we need to continue to work with.\r\n\r\n*Description of changes:*\r\n\r\n\r\nBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.\r\n","created_at":"2018-12-13T17:56:35Z","updated_at":"2018-12-17T17:34:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ad2b8ee72e50a3b287de602e449d3090090c2c5","assignee":{"login":"palpatim","id":227982,"node_id":"MDQ6VXNlcjIyNzk4Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/227982?v=4","gravatar_id":"","url":"https://api.github.com/users/palpatim","html_url":"https://github.com/palpatim","followers_url":"https://api.github.com/users/palpatim/followers","following_url":"https://api.github.com/users/palpatim/following{/other_user}","gists_url":"https://api.github.com/users/palpatim/gists{/gist_id}","starred_url":"https://api.github.com/users/palpatim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palpatim/subscriptions","organizations_url":"https://api.github.com/users/palpatim/orgs","repos_url":"https://api.github.com/users/palpatim/repos","events_url":"https://api.github.com/users/palpatim/events{/privacy}","received_events_url":"https://api.github.com/users/palpatim/received_events","type":"User","site_admin":false},"assignees":[{"login":"palpatim","id":227982,"node_id":"MDQ6VXNlcjIyNzk4Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/227982?v=4","gravatar_id":"","url":"https://api.github.com/users/palpatim","html_url":"https://github.com/palpatim","followers_url":"https://api.github.com/users/palpatim/followers","following_url":"https://api.github.com/users/palpatim/following{/other_user}","gists_url":"https://api.github.com/users/palpatim/gists{/gist_id}","starred_url":"https://api.github.com/users/palpatim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palpatim/subscriptions","organizations_url":"https://api.github.com/users/palpatim/orgs","repos_url":"https://api.github.com/users/palpatim/repos","events_url":"https://api.github.com/users/palpatim/events{/privacy}","received_events_url":"https://api.github.com/users/palpatim/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1072755811,"node_id":"MDU6TGFiZWwxMDcyNzU1ODEx","url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/labels/AppSync","name":"AppSync","color":"dabaf4","default":false},{"id":1072888738,"node_id":"MDU6TGFiZWwxMDcyODg4NzM4","url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/labels/pull%20request","name":"pull request","color":"61f4b5","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/pulls/132/commits","review_comments_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/pulls/132/comments","review_comment_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/issues/132/comments","statuses_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/statuses/68f8f5d05e051f89919750a711ebd0f31ee864d6","head":{"label":"awslabs:palpatim/AppSyncSubscriptionWithSync-refactor","ref":"palpatim/AppSyncSubscriptionWithSync-refactor","sha":"68f8f5d05e051f89919750a711ebd0f31ee864d6","user":{"login":"awslabs","id":3299148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTkxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/3299148?v=4","gravatar_id":"","url":"https://api.github.com/users/awslabs","html_url":"https://github.com/awslabs","followers_url":"https://api.github.com/users/awslabs/followers","following_url":"https://api.github.com/users/awslabs/following{/other_user}","gists_url":"https://api.github.com/users/awslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/awslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awslabs/subscriptions","organizations_url":"https://api.github.com/users/awslabs/orgs","repos_url":"https://api.github.com/users/awslabs/repos","events_url":"https://api.github.com/users/awslabs/events{/privacy}","received_events_url":"https://api.github.com/users/awslabs/received_events","type":"Organization","site_admin":false},"repo":{"id":108313472,"node_id":"MDEwOlJlcG9zaXRvcnkxMDgzMTM0NzI=","name":"aws-mobile-appsync-sdk-ios","full_name":"awslabs/aws-mobile-appsync-sdk-ios","private":false,"owner":{"login":"awslabs","id":3299148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTkxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/3299148?v=4","gravatar_id":"","url":"https://api.github.com/users/awslabs","html_url":"https://github.com/awslabs","followers_url":"https://api.github.com/users/awslabs/followers","following_url":"https://api.github.com/users/awslabs/following{/other_user}","gists_url":"https://api.github.com/users/awslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/awslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awslabs/subscriptions","organizations_url":"https://api.github.com/users/awslabs/orgs","repos_url":"https://api.github.com/users/awslabs/repos","events_url":"https://api.github.com/users/awslabs/events{/privacy}","received_events_url":"https://api.github.com/users/awslabs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/awslabs/aws-mobile-appsync-sdk-ios","description":"iOS SDK for AWS AppSync.","fork":false,"url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios","forks_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/forks","keys_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/teams","hooks_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/hooks","issue_events_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/issues/events{/number}","events_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/events","assignees_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/assignees{/user}","branches_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/branches{/branch}","tags_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/tags","blobs_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/languages","stargazers_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/stargazers","contributors_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/contributors","subscribers_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/subscribers","subscription_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/subscription","commits_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/contents/{+path}","compare_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/merges","archive_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/downloads","issues_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/issues{/number}","pulls_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/labels{/name}","releases_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/releases{/id}","deployments_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/deployments","created_at":"2017-10-25T19:03:00Z","updated_at":"2018-12-16T21:12:32Z","pushed_at":"2018-12-14T07:54:16Z","git_url":"git://github.com/awslabs/aws-mobile-appsync-sdk-ios.git","ssh_url":"git@github.com:awslabs/aws-mobile-appsync-sdk-ios.git","clone_url":"https://github.com/awslabs/aws-mobile-appsync-sdk-ios.git","svn_url":"https://github.com/awslabs/aws-mobile-appsync-sdk-ios","homepage":"https://awslabs.github.io/aws-mobile-appsync-sdk-ios/","size":578,"stargazers_count":77,"watchers_count":77,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":45,"mirror_url":null,"archived":false,"open_issues_count":34,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":45,"open_issues":34,"watchers":77,"default_branch":"master"}},"base":{"label":"awslabs:master","ref":"master","sha":"906e068b115facf3fe62547f517280ab33f53dcc","user":{"login":"awslabs","id":3299148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTkxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/3299148?v=4","gravatar_id":"","url":"https://api.github.com/users/awslabs","html_url":"https://github.com/awslabs","followers_url":"https://api.github.com/users/awslabs/followers","following_url":"https://api.github.com/users/awslabs/following{/other_user}","gists_url":"https://api.github.com/users/awslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/awslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awslabs/subscriptions","organizations_url":"https://api.github.com/users/awslabs/orgs","repos_url":"https://api.github.com/users/awslabs/repos","events_url":"https://api.github.com/users/awslabs/events{/privacy}","received_events_url":"https://api.github.com/users/awslabs/received_events","type":"Organization","site_admin":false},"repo":{"id":108313472,"node_id":"MDEwOlJlcG9zaXRvcnkxMDgzMTM0NzI=","name":"aws-mobile-appsync-sdk-ios","full_name":"awslabs/aws-mobile-appsync-sdk-ios","private":false,"owner":{"login":"awslabs","id":3299148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTkxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/3299148?v=4","gravatar_id":"","url":"https://api.github.com/users/awslabs","html_url":"https://github.com/awslabs","followers_url":"https://api.github.com/users/awslabs/followers","following_url":"https://api.github.com/users/awslabs/following{/other_user}","gists_url":"https://api.github.com/users/awslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/awslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awslabs/subscriptions","organizations_url":"https://api.github.com/users/awslabs/orgs","repos_url":"https://api.github.com/users/awslabs/repos","events_url":"https://api.github.com/users/awslabs/events{/privacy}","received_events_url":"https://api.github.com/users/awslabs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/awslabs/aws-mobile-appsync-sdk-ios","description":"iOS SDK for AWS AppSync.","fork":false,"url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios","forks_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/forks","keys_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/teams","hooks_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/hooks","issue_events_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/issues/events{/number}","events_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/events","assignees_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/assignees{/user}","branches_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/branches{/branch}","tags_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/tags","blobs_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/languages","stargazers_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/stargazers","contributors_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/contributors","subscribers_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/subscribers","subscription_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/subscription","commits_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/contents/{+path}","compare_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/merges","archive_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/downloads","issues_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/issues{/number}","pulls_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/labels{/name}","releases_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/releases{/id}","deployments_url":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/deployments","created_at":"2017-10-25T19:03:00Z","updated_at":"2018-12-16T21:12:32Z","pushed_at":"2018-12-14T07:54:16Z","git_url":"git://github.com/awslabs/aws-mobile-appsync-sdk-ios.git","ssh_url":"git@github.com:awslabs/aws-mobile-appsync-sdk-ios.git","clone_url":"https://github.com/awslabs/aws-mobile-appsync-sdk-ios.git","svn_url":"https://github.com/awslabs/aws-mobile-appsync-sdk-ios","homepage":"https://awslabs.github.io/aws-mobile-appsync-sdk-ios/","size":578,"stargazers_count":77,"watchers_count":77,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":45,"mirror_url":null,"archived":false,"open_issues_count":34,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":45,"open_issues":34,"watchers":77,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/pulls/132"},"html":{"href":"https://github.com/awslabs/aws-mobile-appsync-sdk-ios/pull/132"},"issue":{"href":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/issues/132"},"comments":{"href":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/issues/132/comments"},"review_comments":{"href":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/pulls/132/comments"},"review_comment":{"href":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/pulls/132/commits"},"statuses":{"href":"https://api.github.com/repos/awslabs/aws-mobile-appsync-sdk-ios/statuses/68f8f5d05e051f89919750a711ebd0f31ee864d6"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"palpatim"}}