-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unflatten: Stream all unflattening. #377
Open
kindly
wants to merge
2
commits into
315-lower-memory-usage
Choose a base branch
from
315-low-memory-unflattenting
base: 315-lower-memory-usage
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
[ | ||
{ | ||
"statementID": "fbfd0547-d0c6-4a00-b559-5c5e91c34f5c", | ||
"interests": [ | ||
{ | ||
"type": "shareholding", | ||
"interestLevel": "direct", | ||
"beneficialOwnershipOrControl": true, | ||
"startDate": "2016-04-06", | ||
"share": { | ||
"exact": 100 | ||
} | ||
"statementID": "fbfd0547-d0c6-4a00-b559-5c5e91c34f5c", | ||
"interests": [ | ||
{ | ||
"type": "shareholding", | ||
"interestLevel": "direct", | ||
"beneficialOwnershipOrControl": true, | ||
"startDate": "2016-04-06", | ||
"share": { | ||
"exact": 100 | ||
} | ||
], | ||
"statementType": "ownershipOrControlStatement", | ||
"statementDate": "2017-11-18", | ||
"subject": { | ||
"describedByEntityStatement": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7" | ||
}, | ||
"interestedParty": { | ||
"describedByPersonStatement": "019a93f1-e470-42e9-957b-03559861b2e2" | ||
} | ||
], | ||
"statementType": "ownershipOrControlStatement", | ||
"statementDate": "2017-11-18", | ||
"subject": { | ||
"describedByEntityStatement": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7" | ||
}, | ||
"interestedParty": { | ||
"describedByPersonStatement": "019a93f1-e470-42e9-957b-03559861b2e2" | ||
} | ||
] | ||
} | ||
] |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,57 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<iati-activities> | ||
<!--XML generated by flatten-tool--> | ||
<iati-activity> | ||
<iati-identifier>AA-AAA-123456789-ABC123</iati-identifier> | ||
<reporting-org ref="AA-AAA-123456789" type="40"> | ||
<narrative>Organisation name</narrative> | ||
</reporting-org> | ||
<title> | ||
<narrative>A title</narrative> | ||
</title> | ||
<description> | ||
<narrative>A description</narrative> | ||
</description> | ||
<participating-org ref="AA-AAA-123456789" role="1"/> | ||
<activity-status code="2"/> | ||
<activity-date iso-date="2011-10-01" type="1"/> | ||
<recipient-country code="AF" percentage="40"/> | ||
<recipient-country code="XK" percentage="60"/> | ||
<transaction> | ||
<transaction-type code="2"/> | ||
<transaction-date iso-date="2012-01-01"/> | ||
<value value-date="2012-01-01">10</value> | ||
</transaction> | ||
<transaction> | ||
<transaction-type code="3"/> | ||
<transaction-date iso-date="2012-03-03"/> | ||
<value value-date="2012-03-03">20</value> | ||
</transaction> | ||
</iati-activity> | ||
<iati-activity> | ||
<iati-identifier>AA-AAA-123456789-ABC124</iati-identifier> | ||
<reporting-org ref="AA-AAA-123456789" type="40"> | ||
<narrative>Organisation name</narrative> | ||
</reporting-org> | ||
<title> | ||
<narrative>Another title</narrative> | ||
</title> | ||
<description> | ||
<narrative>Another description</narrative> | ||
</description> | ||
<participating-org ref="AA-AAA-123456789" role="1"/> | ||
<activity-status code="3"/> | ||
<activity-date iso-date="2016-01-01" type="2"/> | ||
<recipient-country code="AG" percentage="30"/> | ||
<recipient-country code="XK" percentage="70"/> | ||
<transaction> | ||
<transaction-type code="2"/> | ||
<transaction-date iso-date="2013-04-04"/> | ||
<value value-date="2013-04-04">30</value> | ||
</transaction> | ||
<transaction> | ||
<transaction-type code="3"/> | ||
<transaction-date iso-date="2013-05-05"/> | ||
<value value-date="2013-05-05">40</value> | ||
</transaction> | ||
</iati-activity> | ||
</iati-activities> | ||
<iati-activities><!--XML generated by flatten-tool--> | ||
<iati-activity> | ||
<iati-identifier>AA-AAA-123456789-ABC123</iati-identifier> | ||
<reporting-org ref="AA-AAA-123456789" type="40"> | ||
<narrative>Organisation name</narrative> | ||
</reporting-org> | ||
<title> | ||
<narrative>A title</narrative> | ||
</title> | ||
<description> | ||
<narrative>A description</narrative> | ||
</description> | ||
<participating-org ref="AA-AAA-123456789" role="1"/> | ||
<activity-status code="2"/> | ||
<activity-date iso-date="2011-10-01" type="1"/> | ||
<recipient-country code="AF" percentage="40"/> | ||
<recipient-country code="XK" percentage="60"/> | ||
<transaction> | ||
<transaction-type code="2"/> | ||
<transaction-date iso-date="2012-01-01"/> | ||
<value value-date="2012-01-01">10</value> | ||
</transaction> | ||
<transaction> | ||
<transaction-type code="3"/> | ||
<transaction-date iso-date="2012-03-03"/> | ||
<value value-date="2012-03-03">20</value> | ||
</transaction> | ||
</iati-activity> | ||
<iati-activity> | ||
<iati-identifier>AA-AAA-123456789-ABC124</iati-identifier> | ||
<reporting-org ref="AA-AAA-123456789" type="40"> | ||
<narrative>Organisation name</narrative> | ||
</reporting-org> | ||
<title> | ||
<narrative>Another title</narrative> | ||
</title> | ||
<description> | ||
<narrative>Another description</narrative> | ||
</description> | ||
<participating-org ref="AA-AAA-123456789" role="1"/> | ||
<activity-status code="3"/> | ||
<activity-date iso-date="2016-01-01" type="2"/> | ||
<recipient-country code="AG" percentage="30"/> | ||
<recipient-country code="XK" percentage="70"/> | ||
<transaction> | ||
<transaction-type code="2"/> | ||
<transaction-date iso-date="2013-04-04"/> | ||
<value value-date="2013-04-04">30</value> | ||
</transaction> | ||
<transaction> | ||
<transaction-type code="3"/> | ||
<transaction-date iso-date="2013-05-05"/> | ||
<value value-date="2013-05-05">40</value> | ||
</transaction> | ||
</iati-activity> | ||
</iati-activities> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,59 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<iati-activities> | ||
<!--XML generated by flatten-tool--> | ||
<iati-activity> | ||
<iati-identifier>AA-AAA-123456789-ABC123</iati-identifier> | ||
<reporting-org ref="AA-AAA-123456789" type="40"> | ||
<narrative>Organisation name</narrative> | ||
</reporting-org> | ||
<title> | ||
<narrative xml:lang="en">A title, with comma</narrative> | ||
<narrative xml:lang="fr">Un titre</narrative> | ||
</title> | ||
<description> | ||
<narrative>A description</narrative> | ||
</description> | ||
<participating-org ref="AA-AAA-123456789" role="1"/> | ||
<activity-status code="2"/> | ||
<activity-date iso-date="2011-10-01" type="1"/> | ||
<recipient-country code="AF" percentage="40"/> | ||
<recipient-country code="XK" percentage="60"/> | ||
<transaction> | ||
<transaction-type code="2"/> | ||
<transaction-date iso-date="2012-01-01"/> | ||
<value value-date="2012-01-01">10</value> | ||
</transaction> | ||
<transaction> | ||
<transaction-type code="3"/> | ||
<transaction-date iso-date="2012-03-03"/> | ||
<value value-date="2012-03-03">20</value> | ||
</transaction> | ||
</iati-activity> | ||
<iati-activity> | ||
<iati-identifier>AA-AAA-123456789-ABC124</iati-identifier> | ||
<reporting-org ref="AA-AAA-123456789" type="40"> | ||
<narrative>Organisation name</narrative> | ||
</reporting-org> | ||
<title> | ||
<narrative xml:lang="en">Another title; with semicolon</narrative> | ||
<narrative xml:lang="fr">Un autre titre</narrative> | ||
</title> | ||
<description> | ||
<narrative>Another description</narrative> | ||
</description> | ||
<participating-org ref="AA-AAA-123456789" role="1"/> | ||
<activity-status code="3"/> | ||
<activity-date iso-date="2016-01-01" type="2"/> | ||
<recipient-country code="AG" percentage="30"/> | ||
<recipient-country code="XK" percentage="70"/> | ||
<transaction> | ||
<transaction-type code="2"/> | ||
<transaction-date iso-date="2013-04-04"/> | ||
<value value-date="2013-04-04">30</value> | ||
</transaction> | ||
<transaction> | ||
<transaction-type code="3"/> | ||
<transaction-date iso-date="2013-05-05"/> | ||
<value value-date="2013-05-05">40</value> | ||
</transaction> | ||
</iati-activity> | ||
</iati-activities> | ||
<iati-activities><!--XML generated by flatten-tool--> | ||
<iati-activity> | ||
<iati-identifier>AA-AAA-123456789-ABC123</iati-identifier> | ||
<reporting-org ref="AA-AAA-123456789" type="40"> | ||
<narrative>Organisation name</narrative> | ||
</reporting-org> | ||
<title> | ||
<narrative xml:lang="en">A title, with comma</narrative> | ||
<narrative xml:lang="fr">Un titre</narrative> | ||
</title> | ||
<description> | ||
<narrative>A description</narrative> | ||
</description> | ||
<participating-org ref="AA-AAA-123456789" role="1"/> | ||
<activity-status code="2"/> | ||
<activity-date iso-date="2011-10-01" type="1"/> | ||
<recipient-country code="AF" percentage="40"/> | ||
<recipient-country code="XK" percentage="60"/> | ||
<transaction> | ||
<transaction-type code="2"/> | ||
<transaction-date iso-date="2012-01-01"/> | ||
<value value-date="2012-01-01">10</value> | ||
</transaction> | ||
<transaction> | ||
<transaction-type code="3"/> | ||
<transaction-date iso-date="2012-03-03"/> | ||
<value value-date="2012-03-03">20</value> | ||
</transaction> | ||
</iati-activity> | ||
<iati-activity> | ||
<iati-identifier>AA-AAA-123456789-ABC124</iati-identifier> | ||
<reporting-org ref="AA-AAA-123456789" type="40"> | ||
<narrative>Organisation name</narrative> | ||
</reporting-org> | ||
<title> | ||
<narrative xml:lang="en">Another title; with semicolon</narrative> | ||
<narrative xml:lang="fr">Un autre titre</narrative> | ||
</title> | ||
<description> | ||
<narrative>Another description</narrative> | ||
</description> | ||
<participating-org ref="AA-AAA-123456789" role="1"/> | ||
<activity-status code="3"/> | ||
<activity-date iso-date="2016-01-01" type="2"/> | ||
<recipient-country code="AG" percentage="30"/> | ||
<recipient-country code="XK" percentage="70"/> | ||
<transaction> | ||
<transaction-type code="2"/> | ||
<transaction-date iso-date="2013-04-04"/> | ||
<value value-date="2013-04-04">30</value> | ||
</transaction> | ||
<transaction> | ||
<transaction-type code="3"/> | ||
<transaction-date iso-date="2013-05-05"/> | ||
<value value-date="2013-05-05">40</value> | ||
</transaction> | ||
</iati-activity> | ||
</iati-activities> |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like the indentation mismatch here between this opening
{
and the closing one. All the other examples look okay, so I think this has to do with having a list at the root.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is a
jsonstreams
bug, I can reproduce with:I will report this upstream. Happy to see this merged as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reported dcbaker/jsonstreams#41