CFE-3105: Made format collect data container - #6223
Open
victormlg wants to merge 2 commits into
Open
Conversation
victormlg
force-pushed
the
make_format_collecting
branch
from
July 9, 2026 10:31
bf0432b to
9667796
Compare
victormlg
force-pushed
the
make_format_collecting
branch
8 times, most recently
from
July 10, 2026 13:35
3a40ef1 to
10d94b8
Compare
victormlg
force-pushed
the
make_format_collecting
branch
2 times, most recently
from
August 4, 2026 09:25
4374730 to
34a6da4
Compare
victormlg
marked this pull request as ready for review
August 4, 2026 09:25
larsewi
reviewed
Aug 5, 2026
larsewi
left a comment
Contributor
There was a problem hiding this comment.
Could you perhaps use VarNameOrInlineToJson() to achieve this?
Contributor
Author
That was my initial idea, however this would break backwards compatibility because string lists are formatted differently from data containers and |
nickanderson
reviewed
Aug 5, 2026
nickanderson
reviewed
Aug 5, 2026
victormlg
force-pushed
the
make_format_collecting
branch
3 times, most recently
from
August 10, 2026 09:20
27c9517 to
b7dc4ac
Compare
| JsonWriteCompact(w, element); | ||
| BufferAppendF(buf, format_rewrite, StringWriterData(w)); | ||
| WriterClose(w); | ||
| JsonDestroyMaybe(element, allocated); |
larsewi
approved these changes
Aug 10, 2026
Ticket: CFE-3105 Changelog: Title Signed-off-by: Victor Moene <victor.moene@northern.tech>
From the docs: "The list which getindices returns is not guaranteed to be in any specific order." The tests failed for me but it didnt' seem related to format() Signed-off-by: Victor Moene <victor.moene@northern.tech>
victormlg
force-pushed
the
make_format_collecting
branch
from
August 10, 2026 14:43
b7dc4ac to
ee666b2
Compare
Contributor
Author
|
Got this error, thus the second commit: |
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.
No description provided.