GeezerVison is showing github.com — pkg/jsonmessage: stop printing deprecated progressDetail, errorDetail, remove DisplayJSONMessagesToStream and Stream interface by thaJeztah · Pull Request #49264 · moby/moby
Conversation
thaJeztah
commented
Jan 13, 2025
•
edited by vvoland
Loading
Uh oh!
There was an error while loading. Please reload this page.
depends on these fixes to be released in docker-py;
pkg/jsonmessage: stop printing deprecated progressDetail, errorDetail
The API still returns it for backward-compatibility (but probably
shouldn't), but we should no longer print it. This removes the
use of these fields for printing, but keeps them for streamformatter
to use.
- ErrorMessage was deprecated in 3043c26
- ProgressMessage was deprecated in 597e0e6
client/pkg/jsonmessage: remove DisplayJSONMessagesToStream
It was an adaptor around DisplayJSONMessagesStream for CLI-specific
primitives that was used in the CLI, but can be implemented by users
of this package.
client/pkg/jsonmessage: remove Stream interface
It was an interface to match CLI-specific primitives and is no
longer used.
- What I did
- How I did it
- How to verify it
- Description for the changelog
`client/pkg/jsonmessage`: remove deprecated `ProgressMessage`, `ErrorMessage`, `DisplayJSONMessagesToStream` and `Stream` interface
- A picture of a cute animal (not mandatory but encouraged)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
docker-py error could be legit, which means it's depending on the deprecated fields;
=================================== FAILURES ===================================
_____________________ ImageCollectionTest.test_load_error ______________________
tests/integration/models_images_test.py:96: in test_load_error
with pytest.raises(docker.errors.ImageLoadError):
E Failed: DID NOT RAISE <class 'docker.errors.ImageLoadError'>
------- generated xml file: /src/bundles/test-docker-py/junit-report.xml -------
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
thaJeztah
changed the title
pkg/jsonmessage: JSONMessage: remove deprecated ProgressMessage, ErrorMessage
pkg/jsonmessage: stop printing deprecated progressDetail, errorDetail
Jul 30, 2025
The API still returns it for backward-compatibility (but probably
shouldn't), but we should no longer print it. This removes the
use of these fields for printing, but keeps them for streamformatter
to use.
- ErrorMessage was deprecated in 3043c26
- ProgressMessage was deprecated in 597e0e6
Signed-off-by: Sebastiaan van Stijn <[email protected]>
It was an adaptor around DisplayJSONMessagesStream for CLI-specific
primitives that was used in the CLI, but can be implemented by users
of this package.
Signed-off-by: Sebastiaan van Stijn <[email protected]>
It was an interface to match CLI-specific primitives and is no
longer used.
Signed-off-by: Sebastiaan van Stijn <[email protected]>
thaJeztah
changed the title
pkg/jsonmessage: stop printing deprecated progressDetail, errorDetail
pkg/jsonmessage: stop printing deprecated progressDetail, errorDetail, remove DisplayJSONMessagesToStream and Stream interface
Jul 30, 2025
|
I have some other changes in a local branch, but need to give those some thinking to see if we can still provide aliases with those. Effectively, I want to un-export most bits, and swap out the DisplayJSONMessagesStream for an iterator / walker that can be used to render JSONMessages. It would be similar to how the auxCallback functions are used; if none is provided, we can provide the default (which is the current way things are rendered), but users can pass their own callback(s) (possibly multiple to allow writing to multiple outputs, although that could be handled internally in their render function / callback.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Aug 4, 2025
This was referenced Sep 5, 2025
Reviewers
dmcgowan
dmcgowan approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|