Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions apps/piquelctl/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,8 @@ pub(crate) enum Command {
/// Read one page of the event history, newest first.
///
/// Events record what happened to applications, environments and the
/// daemon, such as edits, deployments and failures.
/// daemon, such as edits, deployments and failures. A deleted
/// environment's events outlive it: find them with `--env` and its ID.
#[command(alias = "events")]
Event {
#[command(flatten)]
Expand Down Expand Up @@ -716,11 +717,12 @@ pub(crate) struct ApplyArgs {
// Shared `--deploy` / `--no-wait` flags for commands that save configuration.
#[derive(Debug, Args)]
pub(crate) struct DeploymentArgs {
/// Also deploy the saved configuration.
/// Also deploy the saved configuration to each declared environment that
/// isn't promoted from another.
#[arg(long)]
pub(crate) deploy: bool,
/// Return once the change is saved, or its deployment accepted, without
/// waiting for the deployment to end.
/// Return once the change is saved, or its deployments accepted, without
/// waiting for them to end.
#[arg(long)]
pub(crate) no_wait: bool,
}
Expand Down
3 changes: 1 addition & 2 deletions apps/piquelctl/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,7 @@ pub(crate) struct HistoryScope {
#[arg(long, alias = "application", value_name = "APP")]
app: Option<String>,
/// Only this environment or preview: with `--app`, an environment by
/// name or ID, or a preview by ID. Alone, it takes only an ID; `event`
/// also finds a deleted environment's events by it.
/// name or ID, or a preview by ID. Alone, it takes only an ID.
#[arg(long, alias = "environment", value_name = "ENV")]
env: Option<String>,
}
Expand Down
2 changes: 1 addition & 1 deletion apps/piquelctl/src/previews.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ pub(crate) enum PreviewCommand {
Prune {
/// Application name or stable ID.
application: String,
/// Select the previews whose branch no longer exists. Required.
/// Select the previews whose branch no longer exists.
#[arg(long, required = true)]
branch_gone: bool,
#[command(flatten)]
Expand Down
4 changes: 3 additions & 1 deletion crates/piqueld-store/src/history/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ const PRUNE_BATCH: usize = 1_000;
/// How long ago a preview's deployment must have finished before it can be
/// pruned: a superseded one may still be stopping.
const PREVIEW_MIN_AGE_MS: i64 = 3_600_000;
/// Releases each application keeps beyond those a deployment references.
/// How many of each application's newest releases pruning keeps, whether or
/// not a deployment references them; it keeps every one a deployment
/// references too.
const KEPT_RELEASES: i64 = 50;

/// How much deployment history each environment keeps; see
Expand Down
Loading