Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

don't use dbutil.NewNullString when inserting into gitserver_repos_sync_output#53579

Merged
peterguy merged 2 commits into
mainfrom
pg/fix-null-last-output
Jun 16, 2023
Merged

don't use dbutil.NewNullString when inserting into gitserver_repos_sync_output#53579
peterguy merged 2 commits into
mainfrom
pg/fix-null-last-output

Conversation

@peterguy

Copy link
Copy Markdown
Contributor

Not sure why I was using dbutil.NewNullString when the column is non-nullable. Too much copy pasta.

Thanks for the alert, @camdencheek

Test plan

unit tests added

re-clone a repository and verify that the last output shows up in the Mirroring and cloning page (click on the kebab menu on the repository and choose Last sync log

peterguy added 2 commits June 15, 2023 18:39
Not sure why I was using that when the column is non-nullable.
@peterguy peterguy added the first-class-perforce Issues associated with make Perforce a first class code host label Jun 16, 2023
@peterguy peterguy requested review from a team and camdencheek June 16, 2023 02:12
@peterguy peterguy self-assigned this Jun 16, 2023
@cla-bot cla-bot Bot added the cla-signed label Jun 16, 2023

@camdencheek camdencheek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks for the quick fix!

@peterguy peterguy merged commit 374beba into main Jun 16, 2023
@peterguy peterguy deleted the pg/fix-null-last-output branch June 16, 2023 02:31
@courier-new

Copy link
Copy Markdown
Contributor

Thanks Peter! Hit this locally, too, and was pleasantly surprised to find you'd already fixed it up. ❤️

ErikaRS pushed a commit that referenced this pull request Jun 22, 2023
…_sync_output` (#53579)

Not sure why I was using `dbutil.NewNullString` when the column is
non-nullable. Too much copy pasta.

Thanks for [the
alert](https://github.com/sourcegraph/sourcegraph/pull/51598#issuecomment-1593866227),
@camdencheek

## Test plan

unit tests added

re-clone a repository and verify that the last output shows up in the
`Mirroring and cloning` page (click on the kebab menu on the repository
and choose `Last sync log`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed first-class-perforce Issues associated with make Perforce a first class code host

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants