-
-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Render updated tags and make generated/modified tags optional for hledger rewrite #1128
base: master
Are you sure you want to change the base?
Conversation
Could this be rebased on master, independent of #1125 ? Thanks |
6b540ac
to
b9a7dbf
Compare
I did "resolve conflicts" in github which did something confusing to the history in your branch. The |
Thanks for this, it's interesting. I'm testing and gathering comments slowly. |
Such as: +1 for getting us started with property-based testing! hedgehog sounds like an improvement on quickcheck in some ways, did you consider it ? Another possibility could be to never generate these tags by default, but only when requested with |
c9bff40
to
6b301be
Compare
I never tried hedgehog before, but it looks like it prefers building generators explicitly rather than "injecting" them via I'm not yet sure how to organize
I'm fine with that. I just thought that this behavior is already around a year here and people could build around it. Changing behavior of
I think I made it to assume
It might be better to generate all tags as dynamic (starting with |
Looking for the simplest story internally and externally, I was thinking along the same lines. Eg something like:
I'm assuming the old It's hard to know the best design without more experience. If there's to be a special prefix, I favour I've proposed a different name for your |
Just a summary. I'll remove I'll remove injection of Changing I'll work on this either this evening or in worst case on weekend. |
Sounds good @ony. I've sent a heads-up/RFC to the mail list. FYI I think we need different tag names for transactions and postings so that you can query them precisely, since the transaction tags get inherited by postings and vice versa. But I could be wrong, and resolving this as a separate task is fine. |
After modifying transaction it worth to use showTransaction . syncTxn to get it rendered with updated information if you are writing your addon. Resolves simonmichael#664
6b301be
to
bcfc4e4
Compare
Along with doc updates. |
Does this need anything other than a rebase to master, or does it still need a code review? I'm happy to do either. |
Beside code review there were a gentle reminder about updating docs, that I guess, I never followed 😛 . |
Thanks for pinging this, I think good steps would be:
|
56bc295
to
01f9c70
Compare
Note: this PR is based on #1125 and thus includes 2 commits from it.Features:
showTransaction . syncTxn
in order to get comments updated.New module
Hledger.Processing
is here for capturing common operations related with post-processing journal or transforming it. Functionality there depends onHledger.Data
andHledger.Read
, so no way to put it inside ofHledger.Data
.Next steps
syncTxn
fromTransactionModifier
. And ensure we are not adding it many times.