<p>I'm still thinking about how should this feature be implemented.<br>
The problem is, as <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=1449498" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ManfredKarrer">@ManfredKarrer</a> noted, that the data is in a tree structure. This makes it difficult to output to a CSV file. I currently have a few ideas for possible implementations for this feature.</p>
<ol>
<li>
<p>Export a separate CSV file for each data structure. This means that we will have a CSV file of all the cycles, a different CSV file of all the proposals etc. This is probably the simplest solution as most of the code for needed for that already exists. The problem is that the data is separated into multiple files.</p>
</li>
<li>
<p>Export all data into a single CSV. There are multiple ways we could export all the data into a CSV (e.g. Like with solution 1 but in a single file, Have all cycles proposals under cycle row and all votes under each row of a proposal). This is very messy in my opinion but can be done.</p>
</li>
<li>
<p>Export all data into as a JSON file, as suggested by <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=431064" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/blabno">@blabno</a> on the Slack chat. JSON would be much easier here as it supports complex data structure as we have here. I think this would be the best solution but I'm not sure if it would be fine not to use the CSV format as specified in the issue.</p>
</li>
</ol>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=1449498" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ManfredKarrer">@ManfredKarrer</a> do you (or anyone else) have any thoughts on how this feature should be implemented?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/issues/2477#issuecomment-469705346">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AkpZtv5ABNOgNSAhCxHCFC-xKiYJrko5ks5vToKQgaJpZM4bXSy5">mute the thread</a>.<img src="https://github.com/notifications/beacon/AkpZtmxArETyn3EY_GrNW5pj6kFegnzLks5vToKQgaJpZM4bXSy5.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/bisq-network/bisq","title":"bisq-network/bisq","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/bisq-network/bisq"}},"updates":{"snippets":[{"icon":"PERSON","message":"@ben-kaufman in #2477: I'm still thinking about how should this feature be implemented.\r\nThe problem is, as @ManfredKarrer noted, that the data is in a tree structure. This makes it difficult to output to a CSV file. I currently have a few ideas for possible implementations for this feature.\r\n\r\n1. Export a separate CSV file for each data structure. This means that we will have a CSV file of all the cycles, a different CSV file of all the proposals etc. This is probably the simplest solution as most of the code for needed for that already exists. The problem is that the data is separated into multiple files.\r\n\r\n2. Export all data into a single CSV. There are multiple ways we could export all the data into a CSV (e.g. Like with solution 1 but in a single file, Have all cycles proposals under cycle row and all votes under each row of a proposal). This is very messy in my opinion but can be done.\r\n\r\n3. Export all data into as a JSON file, as suggested by @blabno on the Slack chat. JSON would be much easier here as it supports complex data structure as we have here. I think this would be the best solution but I'm not sure if it would be fine not to use the CSV format as specified in the issue.\r\n\r\n@ManfredKarrer do you (or anyone else) have any thoughts on how this feature should be implemented?"}],"action":{"name":"View Issue","url":"https://github.com/bisq-network/bisq/issues/2477#issuecomment-469705346"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/issues/2477#issuecomment-469705346",
"url": "https://github.com/bisq-network/bisq/issues/2477#issuecomment-469705346",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>