-
-
Notifications
You must be signed in to change notification settings - Fork 342
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
include items json in csv export #2325
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #2325 +/- ##
=======================================
Coverage 58.57% 58.57%
=======================================
Files 61 61
Lines 9218 9218
=======================================
Hits 5399 5399
Misses 3819 3819 ☔ View full report in Codecov by Sentry. |
name: 'items', | ||
align: 'right', | ||
label: 'Items', | ||
field: row => (row.tag === 'tpos' && row.extra.details) || null |
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.
This is layering violation but I guess I agree with the quick fix like this.
Maybe we should have a way how an extension can tell LNbits which extra fields should be added in the future?
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.
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.
so but then, the detailed is not only for tpos, but it just packs all the info in the 'extra', is that it? if there's something there? this hack is just to include the details
property that only exists, so far, in tpos
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'm with Stick, lets get this merged, and make something more sophisticated later.
Closes #2312