-
Notifications
You must be signed in to change notification settings - Fork 262
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
feat: generated Permit client, project permission logic #1699
Conversation
f47320e
to
8e8ee8c
Compare
fdbd629
to
fab937c
Compare
fab937c
to
1ef4349
Compare
@@ -81,7 +83,9 @@ pub async fn sync(pool: PgPool, args: SyncArgs) -> io::Result<()> { | |||
} | |||
} | |||
} | |||
Err(shuttle_backends::client::Error::RequestError(StatusCode::NOT_FOUND)) => { | |||
Err(_) => { | |||
// FIXME: Make the error type better so that this is only done on 404s |
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.
This is fixed in #1705
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.
The permit client changes and some of the tests are heavy to go through in this review. It is probably best to be reviewed by @chesedo who has more context, but apart from this, left a few qs for now.
@@ -68,7 +68,9 @@ services: | |||
- "--stripe-secret-key=${STRIPE_SECRET_KEY}" | |||
# used only for local development | |||
- "--jwt-signing-private-key=LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCk1DNENBUUF3QlFZREsyVndCQ0lFSUR5V0ZFYzhKYm05NnA0ZGNLTEwvQWNvVUVsbUF0MVVKSTU4WTc4d1FpWk4KLS0tLS1FTkQgUFJJVkFURSBLRVktLS0tLQo=" | |||
- "--permit-api=https://api.eu-central-1.permit.io" | |||
- "--permit-api-uri=https://api.eu-central-1.permit.io" |
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.
I imagine this can differ based on how a Permit account is configured. Makes me think that it is better to hide it behind an env var.
18d5cad
to
0009469
Compare
0009469
to
02cbccc
Compare
Adds Permit logic to the project create+delete actions. This will be released without taking control of permission checking to allow a background migration between releases.
Things for upcoming PRs: