Skip to content

build out bulk overwrite - #97

Open
matthewpeterkort wants to merge 2 commits into
developmentfrom
feature/bulk-record-overwrite
Open

build out bulk overwrite#97
matthewpeterkort wants to merge 2 commits into
developmentfrom
feature/bulk-record-overwrite

Conversation

@matthewpeterkort

Copy link
Copy Markdown
Contributor

No description provided.

@netlify

netlify Bot commented Aug 5, 2026

Copy link
Copy Markdown

Deploy Preview for drs-server ready!

Name Link
🔨 Latest commit da85655
🔍 Latest deploy log https://app.netlify.com/projects/drs-server/deploys/6a7362e8b7831d0008b112dd
😎 Deploy Preview https://deploy-preview-97--drs-server.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f84dcdef65

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

candidates := make([]models.InternalObject, 0, len(req.Records))
now := time.Now().UTC()
for i, record := range req.Records {
obj, err := core.InternalRecordToInternalObject(record, now)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Apply the bulk scope when building overwrite records

When a client sends the documented bulk shape with organization/project only at the top level, each InternalRecord is converted unchanged here, so InternalRecordToInternalObject never adds the target project resource. BulkOverwriteObjects then rejects the candidate as missing the target project, and because that validation error is not wrapped as a conflict or invalid input it is returned as a 500; generated clients can therefore fail for a request that satisfies the new BulkOverwriteRequest schema unless every record redundantly repeats controlled_access or per-record scope.

Useful? React with 👍 / 👎.

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.

1 participant