sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Comments and likes count updated after a long time when using graph

Open MRuimerman opened this issue 7 years ago • 6 comments

We want to use graph to collect the views, likes and comment for news. However, since a couple of days it takes a long time before for instance the likecount gets updated. The footer of the page immeadiately shows the correct number but using graph it takes hours. The graph call appears to be correct because it worked up unto a couple of days before.

The call we use is: https://graph.microsoft.com/v1.0/sites/{siteID}/lists/{listId}/items/{listItemId}

Category

  • [ ] Question
  • [ ] Typo
  • [X] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

To see the updated number of likes and comments.

Observed Behavior

The number was updated the next day when using graph.

Steps to Reproduce

  • Like or comment a news post
  • Check the number of comments in the footer of the page
  • Compare this number to the graph results: https://graph.microsoft.com/v1.0/sites/{siteID}/lists/{listId}/items/{listItemId}

MRuimerman avatar Feb 01 '19 09:02 MRuimerman

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Feb 01 '19 09:02 msft-github-bot

The MSGraph is using the SharePoint v2 REST API to get SharePoint data. Can you check the underlying SharePoint REST API to see if it's returning the correct data to isolate where the issue is?

Ref: https://www.techmikael.com/2019/01/introducing-sharepoint-rest-api-v20.html

andrewconnell avatar Feb 01 '19 11:02 andrewconnell

Thanks Andrew!

The graph call returns different results than the REST API. I liked a post and the REST API was almost immediately updated, and Graph is not updated yet.

MRuimerman avatar Feb 01 '19 12:02 MRuimerman

OK... then that should be posted as a bug to the Graph team as it's not something the SharePoint side can address... agreed? If so, prob best to submit to them & close this issue...

andrewconnell avatar Feb 01 '19 12:02 andrewconnell

Yes, you are absolutely right, this is a graph issue. I will try to contact the graph team.

Thanks for your help!

MRuimerman avatar Feb 01 '19 12:02 MRuimerman

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 25 '20 06:01 msft-github-bot