Skip to content

Instantly share code, notes, and snippets.

@locskot
Created March 10, 2021 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save locskot/e85634f95d925d95fd89443b7e4a5e22 to your computer and use it in GitHub Desktop.
Save locskot/e85634f95d925d95fd89443b7e4a5e22 to your computer and use it in GitHub Desktop.
1. Наблюдатель в social feed 2. Владелец клапает - получено событие, запись фида обновилась (все ок) 3. Владелец пишет коммент - получено событие, обновлена цель (запись фида показывает неправильное количество) 4. Владелец клапаеи - все обновится (коммент из 3 тоже) все ок.
[log] --------------------------------------------------------
2021-03-10 12:34:32.426862Z 2021-03-10T12:34:32.426801Z EVENT_SENDER: started handling event `updated_feed`
--------------------------------------------------------
[log] --------------------------------------------------------
2021-03-10 12:34:32.427488Z 2021-03-10T12:34:32.427427Z EVENT_SENDER: result = Instance of 'SocialFeedItemUpdated'
--------------------------------------------------------
[log] --------------------------------------------------------
2021-03-10 12:34:32.427957Z
RESPONSE:
receiving time: 2021-03-10 12:34:32.426596Z
messages: {"message":"OK","statusCode":200,"dataType":"notification","data":{"eventId":"f6de94cf-819c-11eb-82e7-062076be851f","event":"updated_feed","reference":{"referenceId":"9ca7c267-3384-4b1b-8e42-952f7730698f","type":"social_feed"},"params":{"feedId":"4c790535-819b-11eb-82e7-062076be851f","goalId":"9ca7c267-3384-4b1b-8e42-952f7730698f","initiatorId":"d0a3fb8d-a4c2-41a3-b1eb-6eb4a7fb1601","isGoalActive":true},"expiry":"2021-03-10T12:35:02.16586054Z"},"host":"apisvr-ff5645495-27sz7","tm":1615379672221}
--------------------------------------------------------
[log] --------------------------------------------------------
2021-03-10 12:34:33.091027Z
DURATION: 0:00:00.359023
REQUEST:
sending time: 2021-03-10 12:34:32.731522Z
query: {"reqType":"graphql","reqId":"43a21ebb-fa90-4876-8f08-c31ec3a40d8a","graphqlParams":{"query": "{ socialFeedItem(feedId: \"4c790535-819b-11eb-82e7-062076be851f\") {\n id\n title\n description\n owner {\n id\n name\n picture\n firstname\n lastname\n lastseen\n online\n }\n feedDate\n unread\n commentCount\n emoji {\n id\n code\n person {\n id\n name\n picture\n }\n }\n referenceId\n referenceType\n \n }}"},"ctx":{"processId":null,"geolocation":{"latitude":45.0424265955063,"longitude":41.98917293925023,"altitude":528}}}
RESPONSE:
receiving time: 2021-03-10 12:34:33.090545Z
messages: {"message":"OK","statusCode":200,"ctx":{"workflow":"graphql","action":"query","processId":"f745e983-819c-11eb-82e7-062076be851f","actionId":"f745e984-819c-11eb-82e7-062076be851f"},"reqId":"43a21ebb-fa90-4876-8f08-c31ec3a40d8a","dataType":"graphql","data":{"data":{"socialFeedItem":{"id":"4c790535-819b-11eb-82e7-062076be851f","title":"Gind","description":"Patient2 Siniugin added a new goal","owner":{"id":"d0a3fb8d-a4c2-41a3-b1eb-6eb4a7fb1601","name":"Patient2 Siniugin","picture":"https://devneekastorage.blob.core.windows.net/dev-neeka-user-7e640fe4-15db-4aa8-bab7-c0a217582f93/files/ac1c1756-6f73-11eb-9d61-62de8cf61551/f7995105-763f-44c6-8075-1f5fb3b71ab2/image_cropper_25624EB4-8C39-4B91-8541-395F411F1300-7369-0000087ECBF50F3F.jpg?se=2021-03-10T12%3A44%3A32Z\u0026sig=WEcxnwrTqaGQfqKeE%2B%2F0Uksh08jMziw1kIHlO22Qvow%3D\u0026sp=rl\u0026spr=https\u0026srt=co\u0026ss=b\u0026sv=2018-11-09?se=2021-03-10T12%3A44%3A32Z\u0026sig=WEcxnwrTqaGQfqKeE%2B%2F0Uksh08jMziw1kIHlO22Qvow%3D\u0026sp=rl\u0026spr=https\u0026srt=co\u0026ss=b\u0026sv=2018-11-09","firstname":"Patient2","lastname":"Siniugin","lastseen":"2021-03-10T12:09:34.403222Z","online":true},"feedDate":"2021-03-10T12:22:36.617Z","unread":false,"commentCount":11,"emoji":[],"referenceId":"9ca7c267-3384-4b1b-8e42-952f7730698f","referenceType":"goal"}}},"host":"apisvr-ff5645495-27sz7","tm":1615379672965}
--------------------------------------------------------
[log] --------------------------------------------------------
2021-03-10 12:34:33.243626Z
DURATION: 0:00:00.508604
REQUEST:
sending time: 2021-03-10 12:34:32.734654Z
query: {"reqType":"graphql","reqId":"5a78ecda-bc6c-4f72-9275-fce95a952099","graphqlParams":{"query": "{ goal(\n goalId: \"9ca7c267-3384-4b1b-8e42-952f7730698f\", \n currentTimestamp: \"2021-03-10T15:34:32+03:00\",\n \n ) {\n id\n ownerId\n ownerName\n category\n description\n goalStatus\n weeklyProgress\n dailyProgress\n streaks\n plannedTimesPerWeek\n plannedValueOrTimesPerDay\n plannedValueOrTimesPerDayUnit\n goalExercise {\n repeatCount\n repeatCountUnit\n lifts\n reps\n }\n followers {\n id\n name\n picture\n firstname\n lastname\n }\n totalTasks\n totalCompleted\n level\n commentsCount\n emojiCount\n hasUnreadComments\n hasUnreadEmoji\n \n }}"},"ctx":{"processId":null,"geolocation":{"latitude":45.0424265955063,"longitude":41.98917293925023,"altitude":528}}}
RESPONSE:
receiving time: 2021-03-10 12:34:33.243258Z
messages: {"message":"OK","statusCode":200,"ctx":{"workflow":"graphql","action":"query","processId":"f746aaa2-819c-11eb-82e7-062076be851f","actionId":"f746aaa4-819c-11eb-82e7-062076be851f"},"reqId":"5a78ecda-bc6c-4f72-9275-fce95a952099","dataType":"graphql","data":{"data":{"goal":{"id":"9ca7c267-3384-4b1b-8e42-952f7730698f","ownerId":"917dde9b-2fee-410b-b963-d57abe2c7301","ownerName":"Patient Yaroslav","category":"employment","description":"Gind","goalStatus":"created","weeklyProgress":0,"dailyProgress":null,"streaks":0,"plannedTimesPerWeek":35,"plannedValueOrTimesPerDay":null,"plannedValueOrTimesPerDayUnit":null,"goalExercise":[],"followers":[{"id":"917dde9b-2fee-410b-b963-d57abe2c7301","name":"Patient Yaroslav","picture":"https://devneekastorage.blob.core.windows.net/dev-neeka-user-b2953bfd-bde5-4938-8694-9a9b683110c3/files/4b7254ed-7ceb-11eb-a5d9-d6af5550f876/e1279ee0-3085-4195-aa06-a6651079b517/image_cropper_1B69C2CF-0473-4DC0-B762-7D430B19A520-6574-000006C9A51DEDA7.jpg?se=2021-03-10T12%3A44%3A33Z\u0026sig=ZZjOaSYtzyENGIdjWUWBXOsxfKYkqEzAxhiAZAg1jag%3D\u0026sp=rl\u0026spr=https\u0026srt=co\u0026ss=b\u0026sv=2018-11-09","firstname":"Patient","lastname":"Yaroslav"}],"totalTasks":0,"totalCompleted":0,"level":0,"commentsCount":12,"emojiCount":0,"hasUnreadComments":false,"hasUnreadEmoji":false}}},"host":"apisvr-ff5645495-27sz7","tm":1615379673126}
--------------------------------------------------------
[log] --------------------------------------------------------
2021-03-10 12:34:46.729791Z 2021-03-10T12:34:46.729709Z EVENT_SENDER: started handling event `added_feed_comment`
--------------------------------------------------------
[log] --------------------------------------------------------
2021-03-10 12:34:46.730456Z 2021-03-10T12:34:46.730362Z EVENT_SENDER: result = Instance of 'FeedItemCommentAdded'
--------------------------------------------------------
[log] --------------------------------------------------------
2021-03-10 12:34:46.731029Z
RESPONSE:
receiving time: 2021-03-10 12:34:46.729568Z
messages: {"message":"OK","statusCode":200,"dataType":"notification","data":{"eventId":"ff720be7-819c-11eb-82e7-062076be851f","event":"added_feed_comment","reference":{"referenceId":"9ca7c267-3384-4b1b-8e42-952f7730698f","type":"social_feed"},"params":{"feedId":"4c790535-819b-11eb-82e7-062076be851f","goalId":"9ca7c267-3384-4b1b-8e42-952f7730698f","initiatorId":"d0a3fb8d-a4c2-41a3-b1eb-6eb4a7fb1601","isGoalActive":true,"messageId":"ff59f26e-819c-11eb-82e7-062076be851f"},"expiry":"2021-03-10T12:35:16.55365452Z"},"host":"apisvr-ff5645495-27sz7","tm":1615379686601}
--------------------------------------------------------
[log] --------------------------------------------------------
2021-03-10 12:34:47.454570Z
DURATION: 0:00:00.413925
REQUEST:
sending time: 2021-03-10 12:34:47.039997Z
query: {"reqType":"graphql","reqId":"bde21fb7-4669-4577-9808-686ab555012d","graphqlParams":{"query": "{ goal(\n goalId: \"9ca7c267-3384-4b1b-8e42-952f7730698f\", \n currentTimestamp: \"2021-03-10T15:34:46+03:00\",\n \n ) {\n id\n ownerId\n ownerName\n category\n description\n goalStatus\n weeklyProgress\n dailyProgress\n streaks\n plannedTimesPerWeek\n plannedValueOrTimesPerDay\n plannedValueOrTimesPerDayUnit\n goalExercise {\n repeatCount\n repeatCountUnit\n lifts\n reps\n }\n followers {\n id\n name\n picture\n firstname\n lastname\n }\n totalTasks\n totalCompleted\n level\n commentsCount\n emojiCount\n hasUnreadComments\n hasUnreadEmoji\n \n }}"},"ctx":{"processId":null,"geolocation":{"latitude":45.0424265955063,"longitude":41.98917293925023,"altitude":528}}}
RESPONSE:
receiving time: 2021-03-10 12:34:47.453922Z
messages: {"message":"OK","statusCode":200,"ctx":{"workflow":"graphql","action":"query","processId":"ffccbc4e-819c-11eb-82e7-062076be851f","actionId":"ffccbc51-819c-11eb-82e7-062076be851f"},"reqId":"bde21fb7-4669-4577-9808-686ab555012d","dataType":"graphql","data":{"data":{"goal":{"id":"9ca7c267-3384-4b1b-8e42-952f7730698f","ownerId":"917dde9b-2fee-410b-b963-d57abe2c7301","ownerName":"Patient Yaroslav","category":"employment","description":"Gind","goalStatus":"created","weeklyProgress":0,"dailyProgress":null,"streaks":0,"plannedTimesPerWeek":35,"plannedValueOrTimesPerDay":null,"plannedValueOrTimesPerDayUnit":null,"goalExercise":[],"followers":[{"id":"917dde9b-2fee-410b-b963-d57abe2c7301","name":"Patient Yaroslav","picture":"https://devneekastorage.blob.core.windows.net/dev-neeka-user-b2953bfd-bde5-4938-8694-9a9b683110c3/files/4b7254ed-7ceb-11eb-a5d9-d6af5550f876/e1279ee0-3085-4195-aa06-a6651079b517/image_cropper_1B69C2CF-0473-4DC0-B762-7D430B19A520-6574-000006C9A51DEDA7.jpg?se=2021-03-10T12%3A44%3A47Z\u0026sig=nMLZ7WDPZPAOUFPSWeozm1e855vHypxF1S4PkyBubdA%3D\u0026sp=rl\u0026spr=https\u0026srt=co\u0026ss=b\u0026sv=2018-11-09","firstname":"Patient","lastname":"Yaroslav"}],"totalTasks":0,"totalCompleted":0,"level":0,"commentsCount":13,"emojiCount":0,"hasUnreadComments":false,"hasUnreadEmoji":false}}},"host":"apisvr-ff5645495-27sz7","tm":1615379687333}
--------------------------------------------------------
[log] --------------------------------------------------------
2021-03-10 12:34:53.778363Z 2021-03-10T12:34:53.778336Z EVENT_SENDER: started handling event `updated_feed`
--------------------------------------------------------
[log] --------------------------------------------------------
2021-03-10 12:34:53.778578Z 2021-03-10T12:34:53.778559Z EVENT_SENDER: result = Instance of 'SocialFeedItemUpdated'
--------------------------------------------------------
[log] --------------------------------------------------------
2021-03-10 12:34:53.778713Z
RESPONSE:
receiving time: 2021-03-10 12:34:53.778193Z
messages: {"message":"OK","statusCode":200,"dataType":"notification","data":{"eventId":"03a7bd17-819d-11eb-82e7-062076be851f","event":"updated_feed","reference":{"referenceId":"9ca7c267-3384-4b1b-8e42-952f7730698f","type":"social_feed"},"params":{"feedId":"4c790535-819b-11eb-82e7-062076be851f","goalId":"9ca7c267-3384-4b1b-8e42-952f7730698f","initiatorId":"d0a3fb8d-a4c2-41a3-b1eb-6eb4a7fb1601","isGoalActive":true},"expiry":"2021-03-10T12:35:23.615925742Z"},"host":"apisvr-ff5645495-27sz7","tm":1615379693658}
--------------------------------------------------------
[log] --------------------------------------------------------
2021-03-10 12:34:54.421097Z
DURATION: 0:00:00.340019
REQUEST:
sending time: 2021-03-10 12:34:54.080838Z
query: {"reqType":"graphql","reqId":"06a6a326-3d14-481f-af94-1db6e7163a22","graphqlParams":{"query": "{ socialFeedItem(feedId: \"4c790535-819b-11eb-82e7-062076be851f\") {\n id\n title\n description\n owner {\n id\n name\n picture\n firstname\n lastname\n lastseen\n online\n }\n feedDate\n unread\n commentCount\n emoji {\n id\n code\n person {\n id\n name\n picture\n }\n }\n referenceId\n referenceType\n \n }}"},"ctx":{"processId":null,"geolocation":{"latitude":45.0424265955063,"longitude":41.98917293925023,"altitude":528}}}
RESPONSE:
receiving time: 2021-03-10 12:34:54.420857Z
messages: {"message":"OK","statusCode":200,"ctx":{"workflow":"graphql","action":"query","processId":"03ff49b1-819d-11eb-82e7-062076be851f","actionId":"03ff49b4-819d-11eb-82e7-062076be851f"},"reqId":"06a6a326-3d14-481f-af94-1db6e7163a22","dataType":"graphql","data":{"data":{"socialFeedItem":{"id":"4c790535-819b-11eb-82e7-062076be851f","title":"Gind","description":"Patient2 Siniugin added a new goal","owner":{"id":"d0a3fb8d-a4c2-41a3-b1eb-6eb4a7fb1601","name":"Patient2 Siniugin","picture":"https://devneekastorage.blob.core.windows.net/dev-neeka-user-7e640fe4-15db-4aa8-bab7-c0a217582f93/files/ac1c1756-6f73-11eb-9d61-62de8cf61551/f7995105-763f-44c6-8075-1f5fb3b71ab2/image_cropper_25624EB4-8C39-4B91-8541-395F411F1300-7369-0000087ECBF50F3F.jpg?se=2021-03-10T12%3A44%3A54Z\u0026sig=hmOIiH0%2B8tqVAI0sj3LTza4pCM06R91Gm92isEblMA0%3D\u0026sp=rl\u0026spr=https\u0026srt=co\u0026ss=b\u0026sv=2018-11-09?se=2021-03-10T12%3A44%3A54Z\u0026sig=hmOIiH0%2B8tqVAI0sj3LTza4pCM06R91Gm92isEblMA0%3D\u0026sp=rl\u0026spr=https\u0026srt=co\u0026ss=b\u0026sv=2018-11-09","firstname":"Patient2","lastname":"Siniugin","lastseen":"2021-03-10T12:09:34.403222Z","online":true},"feedDate":"2021-03-10T12:22:36.617Z","unread":false,"commentCount":12,"emoji":[{"id":"039a97d8-819d-11eb-82e7-062076be851f","code":"clap","person":{"id":"d0a3fb8d-a4c2-41a3-b1eb-6eb4a7fb1601","name":"Patient2 Siniugin","picture":"https://devneekastorage.blob.core.windows.net/dev-neeka-user-7e640fe4-15db-4aa8-bab7-c0a217582f93/files/ac1c1756-6f73-11eb-9d61-62de8cf61551/f7995105-763f-44c6-8075-1f5fb3b71ab2/image_cropper_25624EB4-8C39-4B91-8541-395F411F1300-7369-0000087ECBF50F3F.jpg?se=2021-03-10T12%3A44%3A54Z\u0026sig=hmOIiH0%2B8tqVAI0sj3LTza4pCM06R91Gm92isEblMA0%3D\u0026sp=rl\u0026spr=https\u0026srt=co\u0026ss=b\u0026sv=2018-11-09?se=2021-03-10T12%3A44%3A54Z\u0026sig=hmOIiH0%2B8tqVAI0sj3LTza4pCM06R91Gm92isEblMA0%3D\u0026sp=rl\u0026spr=https\u0026srt=co\u0026ss=b\u0026sv=2018-11-09"}}],"referenceId":"9ca7c267-3384-4b1b-8e42-952f7730698f","referenceType":"goal"}}},"host":"apisvr-ff5645495-27sz7","tm":1615379694284}
--------------------------------------------------------
[log] --------------------------------------------------------
2021-03-10 12:34:54.587403Z
DURATION: 0:00:00.505863
REQUEST:
sending time: 2021-03-10 12:34:54.081335Z
query: {"reqType":"graphql","reqId":"c8ff9143-7a04-4d2c-8dec-3cfb1e5617f9","graphqlParams":{"query": "{ goal(\n goalId: \"9ca7c267-3384-4b1b-8e42-952f7730698f\", \n currentTimestamp: \"2021-03-10T15:34:53+03:00\",\n \n ) {\n id\n ownerId\n ownerName\n category\n description\n goalStatus\n weeklyProgress\n dailyProgress\n streaks\n plannedTimesPerWeek\n plannedValueOrTimesPerDay\n plannedValueOrTimesPerDayUnit\n goalExercise {\n repeatCount\n repeatCountUnit\n lifts\n reps\n }\n followers {\n id\n name\n picture\n firstname\n lastname\n }\n totalTasks\n totalCompleted\n level\n commentsCount\n emojiCount\n hasUnreadComments\n hasUnreadEmoji\n \n }}"},"ctx":{"processId":null,"geolocation":{"latitude":45.0424265955063,"longitude":41.98917293925023,"altitude":528}}}
RESPONSE:
receiving time: 2021-03-10 12:34:54.587198Z
messages: {"message":"OK","statusCode":200,"ctx":{"workflow":"graphql","action":"query","processId":"04001af1-819d-11eb-82e7-062076be851f","actionId":"04001af3-819d-11eb-82e7-062076be851f"},"reqId":"c8ff9143-7a04-4d2c-8dec-3cfb1e5617f9","dataType":"graphql","data":{"data":{"goal":{"id":"9ca7c267-3384-4b1b-8e42-952f7730698f","ownerId":"917dde9b-2fee-410b-b963-d57abe2c7301","ownerName":"Patient Yaroslav","category":"employment","description":"Gind","goalStatus":"created","weeklyProgress":0,"dailyProgress":null,"streaks":0,"plannedTimesPerWeek":35,"plannedValueOrTimesPerDay":null,"plannedValueOrTimesPerDayUnit":null,"goalExercise":[],"followers":[{"id":"917dde9b-2fee-410b-b963-d57abe2c7301","name":"Patient Yaroslav","picture":"https://devneekastorage.blob.core.windows.net/dev-neeka-user-b2953bfd-bde5-4938-8694-9a9b683110c3/files/4b7254ed-7ceb-11eb-a5d9-d6af5550f876/e1279ee0-3085-4195-aa06-a6651079b517/image_cropper_1B69C2CF-0473-4DC0-B762-7D430B19A520-6574-000006C9A51DEDA7.jpg?se=2021-03-10T12%3A44%3A54Z\u0026sig=hmOIiH0%2B8tqVAI0sj3LTza4pCM06R91Gm92isEblMA0%3D\u0026sp=rl\u0026spr=https\u0026srt=co\u0026ss=b\u0026sv=2018-11-09","firstname":"Patient","lastname":"Yaroslav"}],"totalTasks":0,"totalCompleted":0,"level":0,"commentsCount":13,"emojiCount":1,"hasUnreadComments":false,"hasUnreadEmoji":false}}},"host":"apisvr-ff5645495-27sz7","tm":1615379694452}
--------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment