feat: add manage:list-external-buckets command - #108
Closed
jirkasemmler wants to merge 1 commit into
Closed
Conversation
Read-only stack-wide audit of external buckets (buckets with hasExternalSchema), reporting created date, the isReadOnly flag, whether the bucket is linked from elsewhere, and whether KBC.description metadata is set. Written while investigating why descriptions were missing on older external buckets (DMD-1496), where the answer turned out to be isReadOnly on buckets created before the flag changed meaning. Output is CSV on stdout so it can be redirected straight to a file; progress and summary lines are prefixed with #. Creates a 15-minute Storage token per project and drops it in a finally block, so a listing failure does not leak tokens. Projects the manage token cannot reach are reported and counted as skipped rather than aborting the run, which matters on stacks where not every project is accessible. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
jirkasemmler
force-pushed
the
jirka/list-external-buckets
branch
from
August 3, 2026 14:00
4432d2e to
c7b4ec2
Compare
Contributor
Author
|
tbh nevim kdo to chce, zaviram. si navajbi znova |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Changes:
manage:list-external-buckets, a read-only stack-wide audit of external buckets (buckets withhasExternalSchema). For each one it reports the created date, theisReadOnlyflag, whether the bucket is linked from elsewhere, and whetherKBC.descriptionmetadata is set.storage:force-unlink-shared-buckets.Written while investigating why descriptions were missing on older external buckets (DMD-1496), where the cause turned out to be
isReadOnlyon buckets created before that flag changed meaning. Keeping the command means the next person does not have to rebuild the query.Implementation notes:
finallyblock, so a listing failure does not leak tokens.projectId,projectName,bucketId,created,isReadOnly,linked,hasDescription,description, so it can be redirected straight to a file. Progress and summary lines are prefixed with#.phpcs,phpstan(level 9),phpunitand a CLI boot check all pass. Not run against any real stack.Split out of #106 — it is unrelated to the workspace tooling that PR consolidates.
Additional notes