[GNC-dev] Failure to clone repo on Windows

2020-01-06 Thread Gnu Cash
Anybody seen this?  (can't see any reference to it in the recent archives)

Using git version 2.24.1.windows.2

[image: image.png]
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Failure to clone repo on Windows

2020-01-06 Thread Colin Law
Possibly this
https://github.com/git-for-windows/git/issues/2435

Colin

On Mon, 6 Jan 2020 at 10:15, Gnu Cash  wrote:
>
> Anybody seen this?  (can't see any reference to it in the recent archives)
>
> Using git version 2.24.1.windows.2
>
> [image: image.png]
> ___
> gnucash-devel mailing list
> gnucash-devel@gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Online ID matching for OFX import

2020-01-06 Thread John Ralls



> On Jan 5, 2020, at 11:14 PM, Mike Alexander  wrote:
> 
> On 5 Jan 2020, at 23:27, John Ralls wrote:
> 
> I want you to code review and test the PR when I finish. ;-)
> 
> The online_id comes from from the import source, AQBanking in this particular 
> case--and we must be more careful because the code in question applies to all 
> of the importers except QIF--and the import source doesn't generally contain 
> any commodity information, so basing the match on that is a non-starter.
> 
> Returning the first match is what we do now. I get that that was the wrong 
> approach.
> 
> As for GnuCash creating a new account when you've got a new TIAA security, 
> does that actually work? For that matter, are you able to connect to your 
> TIAA master account and import transactions for all of the securities you 
> have, all in one go? I thought that GnuCash didn't support that, never mind 
> creating a new security account if it fails to find a match. Mind, this isn't 
> the same as the matcher letting you create a new account when you 
> double-click on a yellow line, this is during the matcher setup when it 
> decides what asset/liability account the transactions belong to.
> 
> Yes, the online ID comes from the import source, but the OFX importer is 
> dealing with two accounts for investment transactions: the cash account and 
> the security account. It uses the online ID from the OFX record for the cash 
> account. Then around line 635 in gnc-ofx-import.c it constructs an online ID 
> for the security account by concatenating that with the security's ID.
> 
> It also has a commodity for the security account. This is converted to a 
> GnuCash commodity around line 624 and passed to gnc_import_select_account. 
> This function is documented to use this as part of the match (although it 
> actually didn't before I changed it) so I think using it as part of the match 
> would be ok.
> 
> I am certainly able to import a bunch of security transactions for several 
> accounts from an OFX file in one go. I've been doing this every month for 
> several years without much trouble. I just imported 50 or so tonight. It 
> isn't perfect since the cash side of the buy and sell transactions is always 
> the parent TIAA account and I have to manually enter transactions to properly 
> account for this cash, but it sure helps a lot. Note that I am not connecting 
> to TIAA using AQBanking. That might work, but I download an OFX file from 
> their web site and import that.
> 
> I don't know for sure that I can create an account during the import since 
> it's been a year or two since I created one and I can't recall if I did it 
> from within the import or not. I think I have done this in the past. I do 
> know that selecting an existing account from the import dialog works fine and 
> this, too, will store the online ID in the account. I tried to munge one of 
> the OFX files I have to cause it to create a new account, but didn't manage 
> to do it properly.
> 
> Your solution is no doubt more complete and elegant than mine although mine 
> seems to work ok. I'll be glad to give it a try when you're ready.

Unfortunately not more complete (yet) because I didn't know about and so hadn't 
accounted for the libofx import case you outlined here. I'll study that code 
and look for other uses of gnc_import_select_account to make sure that I 
understand everything that it needs to do. That will obviously take more than a 
day and I have other things I need to do this week so it will likely be the 
weekend before the PR is ready.

Regards,
John Ralls
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Failure to clone repo on Windows

2020-01-06 Thread Johan von Boisman
Good catch. I'll follow that thread.

Den mån 6 jan. 2020 kl 16:16 skrev Colin Law :

> Possibly this
> https://github.com/git-for-windows/git/issues/2435
>
> Colin
>
> On Mon, 6 Jan 2020 at 10:15, Gnu Cash  wrote:
> >
> > Anybody seen this?  (can't see any reference to it in the recent
> archives)
> >
> > Using git version 2.24.1.windows.2
> >
> > [image: image.png]
> > ___
> > gnucash-devel mailing list
> > gnucash-devel@gnucash.org
> > https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Failure to clone repo on Windows

2020-01-06 Thread John Ralls
Looks like it. FWIW it works fine with the git in MSYS2.

ordtrogen, are you trying to build GC2.x?

Regards,
John Ralls

> On Jan 6, 2020, at 7:15 AM, Colin Law  wrote:
> 
> Possibly this
> https://github.com/git-for-windows/git/issues/2435
> 
> Colin
> 
> On Mon, 6 Jan 2020 at 10:15, Gnu Cash  wrote:
>> 
>> Anybody seen this?  (can't see any reference to it in the recent archives)
>> 
>> Using git version 2.24.1.windows.2
>> 
>> [image: image.png]
>> ___
>> gnucash-devel mailing list
>> gnucash-devel@gnucash.org
>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
> ___
> gnucash-devel mailing list
> gnucash-devel@gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] gnucash git: please as little merge commit as possible

2020-01-06 Thread Daniel Dittmann

Hi Christian,

it was my first commit to the project. I'am sorry about my rare git and
workflow knowledge.
It was an (unwanted) interim stage during updateing my branch and will
never happen again.


Regards,
Daniel


On 05.01.20 21:44, Christian Stimming wrote:

Dear Daniel,

thanks a lot for your contributions to gnucash.

Concerning the git commits I have a small wish: Could you try to send as
little merge commits as possible in your pull requests? In particular, your
recent test_gnc_setlocale patch branch contains a merge commit merging
upstream/maint. This shouldn't go into the gnucash git. Instead, please rebase
your contribution branch on top of most recent master, so that your change is
only exactly one commit (or multiple linear commits for complex contributions)
but does not contain extra merges. The extra merges are IMHO super confusing
in the git history but bring completely zero knowledge gain.

Contributions which consist of exactly one commit IMHO should always be merged
as fast-forward (or rebase) and not as merge commits, but that's the
responsibility of the gnucash maintainers. Your responsibility would be to
send in pull requests which don't contain unneeded merge commits. Thanks a
lot!

And thanks again for your contribution.

Best Regards,
Christian



___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel