Skip to content

Fix AllowNonPersistedOperation to preserve existing override fields#9726

Merged
glen-84 merged 1 commit into
mainfrom
gai/fix-allow-non-persisted-op
May 18, 2026
Merged

Fix AllowNonPersistedOperation to preserve existing override fields#9726
glen-84 merged 1 commit into
mainfrom
gai/fix-allow-non-persisted-op

Conversation

@glen-84
Copy link
Copy Markdown
Member

@glen-84 glen-84 commented May 18, 2026

The extension previously contained a no-op if/else where both branches allocated a fresh PersistedOperationRequestOverrides, discarding any existing override state. Replace with a branch that constructs a new record when none exists and uses with to flip the flag otherwise.

The extension previously contained a no-op if/else where both branches
allocated a fresh PersistedOperationRequestOverrides, discarding any
existing override state. Replace with a branch that constructs a new
record when none exists and uses `with` to flip the flag otherwise.
Copilot AI review requested due to automatic review settings May 18, 2026 08:27
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates persisted operation request override handling so existing override records are preserved when enabling non-persisted operations.

Changes:

  • Uses a with expression to update AllowNonPersistedOperation on an existing PersistedOperationRequestOverrides instance.
  • Keeps creation of a new override record only for the no-existing-options case.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@glen-84 glen-84 merged commit 485752e into main May 18, 2026
145 checks passed
@glen-84 glen-84 deleted the gai/fix-allow-non-persisted-op branch May 18, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants