Skip to content

ING-1373: Include resource type in procondition failure subjects#328

Merged
chvck merged 1 commit into
masterfrom
ING-1373_prcondition_resource_type
Dec 11, 2025
Merged

ING-1373: Include resource type in procondition failure subjects#328
chvck merged 1 commit into
masterfrom
ING-1373_prcondition_resource_type

Conversation

@chvck

@chvck chvck commented Dec 11, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@chvck chvck requested a review from Copilot December 11, 2025 10:18

Copilot AI left a comment

Copy link
Copy Markdown

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 standardizes the format of Subject fields in PreconditionFailure violations by prefixing them with resource types. This improves clarity and consistency in error reporting by making it explicit what kind of resource each subject refers to.

Key Changes:

  • Added resource type prefixes ("bucket/", "document/", "queryindex/") to all Subject fields in precondition failure violations
  • Updated the NewSdValueOutOfRangeStatus function signature to accept additional parameters (bucketName, scopeName, collectionName, docId) needed for the new subject format

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

Comment thread gateway/dataimpl/server_v1/errorhandler.go Outdated
@chvck chvck force-pushed the ING-1373_prcondition_resource_type branch from ee3787f to 811b335 Compare December 11, 2025 10:21
@chvck chvck requested a review from Copilot December 11, 2025 10:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


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

@chvck chvck force-pushed the ING-1373_prcondition_resource_type branch from 811b335 to d26e972 Compare December 11, 2025 10:35
@chvck chvck merged commit 8668db7 into master Dec 11, 2025
26 checks passed
@chvck chvck deleted the ING-1373_prcondition_resource_type branch December 11, 2025 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants