-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: Init redeploy #25
Conversation
packages/api/src/router/release.ts
Outdated
Promise.all( | ||
(input as string[]).map((releaseId) => | ||
canUser | ||
.perform(Permission.ReleaseGet) | ||
.on({ type: "release", id: releaseId }), | ||
), | ||
).then((results) => results.every(Boolean)), |
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.
Promise.all( | |
(input as string[]).map((releaseId) => | |
canUser | |
.perform(Permission.ReleaseGet) | |
.on({ type: "release", id: releaseId }), | |
), | |
).then((results) => results.every(Boolean)), | |
canUser | |
.perform(Permission.ReleaseGet) | |
.on(...input.map(t => ({ type: "release", id: r })) | |
.then((results) => results.every(Boolean)), |
import { cn } from "@ctrlplane/ui"; | ||
import { Button } from "@ctrlplane/ui/button"; | ||
|
||
import { api } from "../../../../../trpc/react"; |
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.
use proper imports
~/
variant="outline" | ||
size="sm" | ||
onClick={(e) => { | ||
e.preventDefault(); |
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.
sure you need to do this?
release: { | ||
id: string; | ||
name: string; | ||
}; | ||
environment: { | ||
id: string; | ||
name: string; | ||
}; |
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.
release: { | |
id: string; | |
name: string; | |
}; | |
environment: { | |
id: string; | |
name: string; | |
}; | |
release: { | |
id: string; | |
name: string; | |
}; | |
environment: { | |
id: string; | |
name: string; | |
}; |
I think you can one liner this :)
.take(showPreviousReleaseDistro) | ||
.value(); | ||
const distroPadding = _.range( | ||
0, |
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.
we can drop 0
@@ -20,7 +20,7 @@ type FilterFunc = ( | |||
insertJobConfigs: JobConfigInsert[], | |||
) => Promise<JobConfigInsert[]>; | |||
|
|||
type ThenFunc = (tx: Tx, jobConfigs: JobConfig[]) => Promise<void>; | |||
type ThenFunc = (tx: Tx, jobConfigs: JobConfig[]) => Promise<void> | void; |
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.
is this replated to this pr?
No description provided.