Skip to content

Refactor so storage detects if Insert fails because of unique constraint#6259

Merged
6543 merged 8 commits into
woodpecker-ci:mainfrom
6543-forks:followup_6228
Mar 19, 2026
Merged

Refactor so storage detects if Insert fails because of unique constraint#6259
6543 merged 8 commits into
woodpecker-ci:mainfrom
6543-forks:followup_6228

Conversation

@6543
Copy link
Copy Markdown
Member

@6543 6543 commented Mar 18, 2026

a followup of #6228 that focus on make server storage aware if failed inserts because of unique constraint by introducing new error type

also we rename the old RecordNotExist to ErrRecordNotExist to satisfy the error lint requirements that our linter currently is missing somehow

@6543 6543 added server refactor delete or replace old code labels Mar 18, 2026
@6543 6543 requested a review from qwerty287 March 18, 2026 21:13
@woodpecker-bot
Copy link
Copy Markdown
Contributor

woodpecker-bot commented Mar 18, 2026

Surge PR preview deployment was removed

@codecov

This comment was marked as off-topic.

Comment thread server/store/datastore/helper.go Outdated
@6543 6543 enabled auto-merge (squash) March 19, 2026 12:15
@6543 6543 merged commit 2bc5689 into woodpecker-ci:main Mar 19, 2026
7 checks passed
@woodpecker-bot woodpecker-bot mentioned this pull request Mar 19, 2026
1 task
@6543 6543 deleted the followup_6228 branch March 19, 2026 12:37
@woodpecker-bot woodpecker-bot mentioned this pull request Apr 1, 2026
1 task
@woodpecker-bot woodpecker-bot mentioned this pull request Apr 15, 2026
1 task
@woodpecker-bot woodpecker-bot mentioned this pull request Apr 27, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor delete or replace old code server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants