-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add caveat support to postgres datastore #890
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
area/api v1
Affects the v1 API
area/CLI
Affects the command line
area/datastore
Affects the storage system
area/dispatch
Affects dispatching of requests
labels
Oct 7, 2022
github-actions
bot
added
the
area/tooling
Affects the dev or user toolchain (e.g. tests, ci, build tools)
label
Oct 10, 2022
vroldanbet
force-pushed
the
add-caveats-to-postgres
branch
from
October 10, 2022 11:50
5fa2dde
to
350d39f
Compare
github-actions
bot
added
area/tooling
Affects the dev or user toolchain (e.g. tests, ci, build tools)
and removed
area/tooling
Affects the dev or user toolchain (e.g. tests, ci, build tools)
labels
Oct 10, 2022
vroldanbet
force-pushed
the
add-caveats-to-postgres
branch
3 times, most recently
from
October 10, 2022 16:50
27e69e7
to
ba96442
Compare
github-actions
bot
removed
the
area/tooling
Affects the dev or user toolchain (e.g. tests, ci, build tools)
label
Oct 10, 2022
vroldanbet
force-pushed
the
add-caveats-to-postgres
branch
3 times, most recently
from
October 10, 2022 18:14
c21dfad
to
5d340e6
Compare
github-actions
bot
added
the
area/tooling
Affects the dev or user toolchain (e.g. tests, ci, build tools)
label
Oct 10, 2022
vroldanbet
commented
Oct 10, 2022
internal/datastore/postgres/migrations/zz_migration.0013_caveat.go
Outdated
Show resolved
Hide resolved
jakedt
previously requested changes
Oct 11, 2022
vroldanbet
force-pushed
the
add-caveats-to-postgres
branch
from
October 13, 2022 08:50
8afc26c
to
0dd9aba
Compare
github-actions
bot
removed
the
area/tooling
Affects the dev or user toolchain (e.g. tests, ci, build tools)
label
Oct 13, 2022
vroldanbet
force-pushed
the
add-caveats-to-postgres
branch
from
October 13, 2022 10:30
0dd9aba
to
b2cd09a
Compare
vroldanbet
force-pushed
the
add-caveats-to-postgres
branch
from
October 13, 2022 17:20
b2cd09a
to
6f6071d
Compare
vroldanbet
force-pushed
the
add-caveats-to-postgres
branch
2 times, most recently
from
October 13, 2022 17:35
9e965df
to
58e4a2f
Compare
josephschorr
previously approved these changes
Oct 13, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from my side
8 tasks
- errors are returned instead of calling Fatal() - improve logging messages - remove redundant Alembic driver message - added log when already running at target revision
- refactors memdb caveat test and turns it into a datastore test. Datastores not implementing the interface are skipped - adds migration to add caveat table for PSQL - makes psql TX implements CaveatStorer, following same strategy for MVCC - adds context to ReadCaveatByName to follow same signature as ReadNamespace - adjusts memdb to avoid upserts on duplicate caveats, and align with PSQL - implement missing DeleteCaveat test, and implement that logic for memdb and postgres
vroldanbet
force-pushed
the
add-caveats-to-postgres
branch
from
October 14, 2022 13:18
58e4a2f
to
cb7b956
Compare
vroldanbet
dismissed
jakedt’s stale review
October 14, 2022 13:23
Jake is happy with one single approval in this PR
vroldanbet
force-pushed
the
add-caveats-to-postgres
branch
from
October 14, 2022 15:21
a281e65
to
39da0e0
Compare
github-actions
bot
added
the
area/tooling
Affects the dev or user toolchain (e.g. tests, ci, build tools)
label
Oct 14, 2022
Sometimes CI times out after 30 minutes, and the stack trace shows it was blocked waiting for a connection this would allow it to have a chance to retry, or at least fail fast
vroldanbet
force-pushed
the
add-caveats-to-postgres
branch
from
October 14, 2022 15:52
39da0e0
to
255853d
Compare
github-actions
bot
removed
the
area/tooling
Affects the dev or user toolchain (e.g. tests, ci, build tools)
label
Oct 14, 2022
josephschorr
approved these changes
Oct 14, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area/api v1
Affects the v1 API
area/caveats
Affects caveated relationships
area/CLI
Affects the command line
area/datastore
Affects the storage system
area/dispatch
Affects dispatching of requests
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tracking: #386
Closes #884
Some improvements in the context of #753
What
introduces caveat support in postgres datastore
How
memdb
caveat test and turns it into a datastore test. Datastores not implementing the interface are skippedrelational_tuple
tableCaveatStorer
, following same strategy for MVCCReadCaveatByName
to follow same signature asReadNamespace
memdb
to avoid upserts on duplicate caveats, and align with PSQLWatch API
with caveated relationshipsDeleteCaveats
and implements method inmemdb