[nexus] fix up some uses of blueprints that were using the Debug impl #5413
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.
Before we added the
display()
method, the way to get nicely formattedblueprints was to use the Debug impl. While working on #5211, I noticed that
these callers were still using the old way to do things. Fix this up.
I tested this by making the
Debug
impl forBlueprint
panic, then saw whichtests failed.
I also realized that we didn't have tests for omdb's blueprints. I believe at
the time it wasn't possible to write a test for this because we didn't have an
initial blueprint -- but now we do, so include a test.
(I also wanted to ensure that the actual blueprint ID was what we expected, so
I expanded the scope of
redact_variable
a bit. IntroduceExtraRedactions
so we can handle both fixed- and variable-length redactions, and use the same
logic for UUIDs.)