microsoftgraph / microsoftgraph/msgraph-sdk-dotnet

How can I tell the Backing Store to skip specific changes?

Open
#2,033 0 comments 0 reactions 1 assignee View on GitHub

@andrueastman is already working on this.

Since Oct 5, 2023.

Needs: Attention :wave:
Dominant language
C#
Stars
789
Forks
264
Avg merge
15h 17m
Merged PRs (30d)
3

Description

Hi @andrueastman,

I hope this message finds you well. We recently had a discussion concerning the backing store in issue #1813.

It appears that we are encountering difficulties with tracking the Backingstore when working with User objects. Specifically, we have come across situations where we directly manipulate the extension attributes of the user object. However, when attempting to execute the Patch operation using a ToPatchRequestInformation, it throws an exception stating that an update is not possible since extension attributes cannot be directly manipulated using a user endpoint.

Upon investigating, I noticed that user.BackingStore.Enumerate() lists the extension attributes, indicating they are ready to be updated.

My objective is to inform the user object that I do not wish to update the extension attributes in the patch operation. Is there a way for me to instruct the backing store to skip specific changes by marking the values in some manner?

Thank you,
Patrick

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.