Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
darcs patch: basic metadata support
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Xinruo Sun  
View profile  
 More options Apr 8 2012, 5:02 pm
From: Xinruo Sun <xiaoruo...@gmail.com>
Date: Sun, 8 Apr 2012 14:02:38 -0700 (PDT)
Local: Sun, Apr 8 2012 5:02 pm
Subject: darcs patch: basic metadata support

I am working on some patches of Metadata for transactions.

Now the comments before the first posting are interpreted correctly as
metadata. I don't have the need to use metadata for postings, so it is not
implemented.  And I am not sure whether metadata for postings are useful.

Now metadata means key-value pairs (String,String). But ledger-cli also
supports tags(:TAG:), that is only keys. It is also not implemented for now.

Filter works by specifying "tag key=value" in the patterns. Currently value
cannot contains spaces.

I also updated tests/metadata.test to reflect the changes.

  basic-metadata-for-transaction.dpatch
16K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Michael  
View profile  
 More options Apr 9 2012, 11:12 am
From: Simon Michael <si...@joyful.com>
Date: Mon, 9 Apr 2012 08:12:32 -0700
Local: Mon, Apr 9 2012 11:12 am
Subject: Re: darcs patch: basic metadata support

On Apr 8, 2012, at 2:02 PM, Xinruo Sun wrote:

> I am working on some patches of Metadata for transactions.

> Now the comments before the first posting are interpreted correctly as metadata. I don't have the need to use metadata for postings, so it is not implemented.  And I am not sure whether metadata for postings are useful.

> Now metadata means key-value pairs (String,String). But ledger-cli also supports tags(:TAG:), that is only keys. It is also not implemented for now.

> Filter works by specifying "tag key=value" in the patterns. Currently value cannot contains spaces.

> I also updated tests/metadata.test to reflect the changes.

It looks good, I have pushed to darcs. Thank you!

Best,
-Simon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Wiegley  
View profile  
 More options Apr 9 2012, 12:08 am
From: John Wiegley <jwieg...@gmail.com>
Date: Sun, 08 Apr 2012 23:08:28 -0500
Local: Mon, Apr 9 2012 12:08 am
Subject: Re: darcs patch: basic metadata support

>>>>> Xinruo Sun <xiaoruo...@gmail.com> writes:
> I am working on some patches of Metadata for transactions.  Now the comments
> before the first posting are interpreted correctly as metadata. I don't have
> the need to use metadata for postings, so it is not implemented.  And I am
> not sure whether metadata for postings are useful.

How could it not be useful?  Metadata on postings is pretty much the only way
I use metadata in Ledger...

John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Michael  
View profile  
 More options Apr 9 2012, 6:18 pm
From: Simon Michael <si...@joyful.com>
Date: Mon, 9 Apr 2012 15:18:36 -0700
Local: Mon, Apr 9 2012 6:18 pm
Subject: Re: darcs patch: basic metadata support

On Apr 8, 2012, at 9:08 PM, John Wiegley wrote:

>>>>>> Xinruo Sun <xiaoruo...@gmail.com> writes:
>> I am working on some patches of Metadata for transactions.  Now the comments
>> before the first posting are interpreted correctly as metadata. I don't have
>> the need to use metadata for postings, so it is not implemented.  And I am
>> not sure whether metadata for postings are useful.

> How could it not be useful?  Metadata on postings is pretty much the only way
> I use metadata in Ledger…

Hey John! :)

Xinruo, what do you use transaction metadata for ? I'm just curious, since I haven't needed metadata yet (but I know a lot of people rely on it.)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xinruo Sun  
View profile  
 More options Apr 9 2012, 6:37 pm
From: Xinruo Sun <xiaoruo...@gmail.com>
Date: Tue, 10 Apr 2012 00:37:52 +0200
Local: Mon, Apr 9 2012 6:37 pm
Subject: Re: darcs patch: basic metadata support

I was traveling lately. I want to note how much money I spent for each city
I am visiting.

For example,

2012/4/1 hostel for two nights
    ; loc: Berlin
    expenses:travel:hotel       €40
    expenses:cash

I see in the examples of ledger documentation[1] that most metadata comes
at the last line, which is attached to the last posting. If I apply it in
this example, it is less interesting to attach `expenses:cash' than the
other account. So here I could also attach the metadata to the first
posting.

Since implementation of metadata on transaction is easier, I went for that.
Maybe John could tell us some of his use cases for metadata on postings. :)

[1] http://ledger-cli.org/3.0/doc/ledger3.html#Metadata


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Wiegley  
View profile  
 More options Apr 10 2012, 1:11 am
From: John Wiegley <jwieg...@gmail.com>
Date: Tue, 10 Apr 2012 00:11:14 -0500
Local: Tues, Apr 10 2012 1:11 am
Subject: Re: darcs patch: basic metadata support

>>>>> Xinruo Sun <xiaoruo...@gmail.com> writes:
> I was traveling lately. I want to note how much money I spent for each city
> I am visiting.
> For example,

> 2012/4/1 hostel for two nights
>     ; loc: Berlin
>     expenses:travel:hotel       €40
>     expenses:cash
> Since implementation of metadata on transaction is easier, I went for that.
> Maybe John could tell us some of his use cases for metadata on postings. :)

I may have this:

2012/4/1 hostel for two nights
    ; Location: Berlin
    expenses:travel:hotel       €40
    ; Business: Travelodge
    expenses:cash

I want to associate Location with both postings, but the Business with only
the expense it relates to.

John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »