Compare commits

..
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 aad3831e82 fix(metering): a demo target given the tenant's own sources counts under the cap
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 5m1s
CI / Check (pull_request) Successful in 21m44s
A demo target sat outside the entry plan's cap for good, even once it
was pointed at the tenant's own code. Now, when its artifacts change to
other sources (editor, attach, upload), it becomes the tenant's own
target: the demo mark goes and it counts. If the plan has no room, the
change is refused with 409 `target_limit` and it stays a demo target.
A new name or branch on the same sources changes nothing.

The dashboard says so in words in the target editor and the upload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
2026-11-28 23:20:57 +01:00
2 changed files with 9 additions and 11 deletions

No files matched your search

+7 -9
View File
@@ -5786,22 +5786,20 @@ pub mod metering {
/// The plan's refusal of a new target (`target_limit`): its places are
/// all taken.
pub const TARGET_LIMIT: Text = Text {
de: "Ihr Tarif enthält keine weiteren Prüfobjekte. Löschen Sie ein Prüfobjekt, \
um ein neues anzulegen (seine Ergebnisse werden mit gelöscht), oder wechseln \
Sie den Tarif.",
en: "Your plan includes no further targets. Delete a target to add a new one \
(its results are deleted with it), or change your plan.",
de: "Ihr Tarif enthält keine weiteren Prüfobjekte. Archivieren Sie ein Prüfobjekt, \
um ein neues anzulegen, oder wechseln Sie den Tarif.",
en: "Your plan includes no further targets. Archive a target to add a new one, \
or change your plan.",
};
/// The plan's refusal to make a demo target the tenant's own
/// (`target_limit`): other sources would make it count, and its places
/// are all taken.
pub const DEMO_LIMIT: Text = Text {
de: "Mit eigenen Dateien oder Quellen zählt ein Demo-Prüfobjekt wie Ihre anderen, \
und Ihr Tarif enthält keine weiteren Prüfobjekte. Löschen Sie ein anderes \
Prüfobjekt (seine Ergebnisse werden mit gelöscht) oder wechseln Sie den Tarif.",
und Ihr Tarif enthält keine weiteren Prüfobjekte. Archivieren Sie ein \
Prüfobjekt oder wechseln Sie den Tarif.",
en: "With your own files or sources a demo target counts like your other targets, \
and your plan includes no further targets. Delete another target (its results \
are deleted with it) or change your plan.",
and your plan includes no further targets. Archive a target or change your plan.",
};
/// A failed creation of a target in words: the plan's refusal as
/// [`TARGET_LIMIT`], anything else as it came.
+2 -2
View File
@@ -998,8 +998,8 @@ mod tests {
let error = "error running server function: target_limit (409) (details: None)";
assert_eq!(
metering::target_refusal(error, Lang::En),
"Your plan includes no further targets. Delete a target to add a new one \
(its results are deleted with it), or change your plan."
"Your plan includes no further targets. Archive a target to add a new one, \
or change your plan."
);
assert_eq!(metering::target_refusal("x (500)", Lang::De), "x (500)");
}