2020-08-17 GnuCash IRC logs

00:31:25 <chris> jralls: test-stress-options may not be easily sped up, but it can be parallelised. guile has threading but code probably won't work with guile threads. So test-stress-options may be parallelised by, e.g. accepting 2 numeric args - N and M whereby a report is only tested if N = (reportnum modulo M). But I think this is silly modularisation.
00:32:29 <chris> another method is to take a random number N e.g. 5 and test report if (random/N)<0.5.
00:44:47 *** sbluhm has joined #gnucash
00:44:47 *** ChanServ sets mode: +v sbluhm
00:48:18 <chris> CDB-Work: they usually do all the billing and chasing payments, so I really get RCTI summarising billings - servicefee+GST
00:49:25 <CDB-Work> i am guessing RCTI is an australian thing... being this https://www.ato.gov.au/Business/GST/In-detail/Your-industry/Scrap-metal/GST-and-scrap-metal--code-of-compliance/?page=5
00:49:55 <CDB-Work> or more generally, this page https://www.ato.gov.au/Business/GST/Tax-invoices/
00:59:46 *** sbluhm has quit IRC
01:15:40 *** sbluhm has joined #gnucash
01:15:40 *** ChanServ sets mode: +v sbluhm
01:26:19 *** marusich has quit IRC
01:33:21 *** lmat has quit IRC
01:34:55 *** lmat has joined #gnucash
01:36:04 *** Mechtilde has joined #gnucash
01:50:48 *** fell has quit IRC
01:52:07 *** fell has joined #gnucash
01:52:07 *** ChanServ sets mode: +o fell
01:54:56 *** CDB-Work has quit IRC
02:03:42 *** Mechtilde has quit IRC
02:09:09 *** suukim has joined #gnucash
03:16:29 *** storyjesse has joined #gnucash
03:17:45 *** lmat has quit IRC
03:18:29 *** lmat has joined #gnucash
03:27:55 *** Mechtilde has joined #gnucash
03:35:36 *** bertbob has quit IRC
03:40:20 *** bertbob has joined #gnucash
03:40:20 *** ChanServ sets mode: +v bertbob
03:47:11 *** lmat has quit IRC
03:49:27 *** lmat has joined #gnucash
03:57:12 *** Mechtilde has quit IRC
03:57:29 *** Mechtilde has joined #gnucash
04:02:52 *** rigid has joined #gnucash
04:03:06 <rigid> ahoy
04:05:48 <rigid> is there a plugin interface in gnucash? i didn't find any.
04:06:13 <rigid> and is one on the roadmap maybe?
04:13:38 *** suukim has quit IRC
04:19:49 *** dtux has quit IRC
04:30:43 *** Aussie_matt has quit IRC
04:54:09 *** FH_thecat has quit IRC
05:12:01 <rigid> oh nvm, found the API docs, it's in 4.x
05:17:19 <rigid> hm, when I right-click in the import window after fetching transactions from my bank, i get: "gnc.import:ERROR:/var/tmp/portage/app-office/gnucash-4.1/work/gnucash-4.1/gnucash/import-export/import-backend.c:174:gnc_import_TransInfo_get_action: assertion failed: (info)
05:17:20 <rigid> Bail out! gnc.import:ERROR:/var/tmp/portage/app-office/gnucash-4.1/work/gnucash-4.1/gnucash/import-export/import-backend.c:174:gnc_import_TransInfo_get_action: assertion failed: (info)"
05:47:42 *** Mechtilde has quit IRC
06:09:54 *** lmat has quit IRC
06:12:08 *** lmat has joined #gnucash
06:13:51 *** Mechtilde has joined #gnucash
06:30:28 *** ramontjunior has joined #gnucash
06:42:35 *** Aussie_matt has joined #gnucash
06:43:48 *** lmat has quit IRC
06:46:55 *** lmat has joined #gnucash
06:58:15 *** lmat has quit IRC
06:59:33 *** lmat has joined #gnucash
07:03:32 *** Mechtilde has quit IRC
07:03:50 *** Mechtilde has joined #gnucash
07:19:01 *** lmat has quit IRC
07:20:44 *** lmat has joined #gnucash
07:24:01 <chris> jralls: another approach is test-stress-options tests only 1/7 of the reports, the selection depends on DOW... <g>
07:32:04 *** lmat has quit IRC
07:32:47 *** lmat has joined #gnucash
07:44:30 *** lmat has quit IRC
07:52:37 *** lmat has joined #gnucash
08:10:25 *** qwer has joined #gnucash
08:37:48 *** qwer has quit IRC
08:38:03 *** qwer has joined #gnucash
09:18:23 *** qwer has quit IRC
09:35:28 *** qwer has joined #gnucash
09:49:36 *** KaiForce has joined #gnucash
10:00:53 *** Aussie_matt has quit IRC
10:31:55 <chris> rigid: you should file a bug, and ideally include a gdb backtrace
10:40:32 *** Mechtilde has quit IRC
10:56:15 *** lmat has quit IRC
11:04:15 *** lmat has joined #gnucash
11:07:27 *** lmat has quit IRC
11:10:25 *** sbluhm has quit IRC
11:11:55 *** ArtGravity has joined #gnucash
11:11:55 *** ChanServ sets mode: +v ArtGravity
11:24:15 *** lmat has joined #gnucash
11:26:48 *** sbluhm has joined #gnucash
11:26:48 *** ChanServ sets mode: +v sbluhm
11:32:48 *** qwer has quit IRC
11:35:33 *** guak has joined #gnucash
11:39:44 *** lmat has quit IRC
11:43:00 <chris> jralls: now category-barchart also exports csv, iso-dates to boot.
11:46:53 <chris> other formats are also equally possible eg JSON
11:47:50 *** lmat has joined #gnucash
12:19:07 *** qwer has joined #gnucash
12:30:28 <jralls> chris, few users would know what to do with json, but everyone who uses GnuCash is likely to know their way around spreadsheets so csv is usable by all.
12:32:05 *** Mechtilde has joined #gnucash
12:37:16 <jralls> chris, I don't like your rotating tests idea in stress tests. A test that fails only on Tuesdays is a recipe for insanity. If it can be broken up by report then do that so that it's apparent that it's really 43 tests.
12:43:09 <jralls> chris, OTOH if it's testing the same code 43 times because it's something that's used in every report that's dumb. A good unit test suite tests every code path exactly once. (Fuzzing tests like test-lots tries to be are another matter, but I'm not convinced that the fuzzing code in engine/test-core is the right way to do that).
12:47:50 *** ramontjunior has quit IRC
12:59:29 *** storyjesse has quit IRC
13:30:18 *** qwer has quit IRC
13:30:38 *** qwer has joined #gnucash
13:36:23 <Simon> CSV is the least portable format for Microsoft Office users
13:36:45 <Simon> Microsoft managed to localise the comma, so it's a semi-colon in Central Europe
13:40:35 <jralls> Simon, good point. That's not just Office, the comma is the decimal separator in much of Europe. chris, I guess we'll need options to tune CSV exports. You should be able to repurpose the dialog box for importing them.
13:40:37 *** User has joined #gnucash
13:41:09 <Wilco> semicolon separator is also better because it is more common
13:41:24 <Wilco> eh, less likely to occur in your fields
13:41:27 *** dtux has joined #gnucash
13:41:38 <Wilco> quoted + semicolon is the best really
13:42:00 <Wilco> though that doesn't work with gnucash I think
13:45:46 <Simon> the CSV format includes escaping, it doesn't matter what your data is
13:46:33 <Simon> I don't know how Office localises numbers on import/export :/
13:46:44 <jralls> Simon, that would depend on the implementation. There is no standard for CSV AFAIK.
13:46:51 *** CDB-Work has joined #gnucash
13:46:51 *** ChanServ sets mode: +v CDB-Work
14:22:16 *** ArtGravity has quit IRC
14:35:03 *** phebus has joined #gnucash
14:35:04 *** ChanServ sets mode: +v phebus
14:39:34 *** Mechtilde has quit IRC
14:39:51 *** Mechtilde has joined #gnucash
14:54:51 *** jw4 has quit IRC
14:55:23 *** jw4 has joined #gnucash
15:03:34 *** Mechtilde has quit IRC
15:14:06 *** sergiomiguelrp has joined #gnucash
15:42:33 *** ramontjunior has joined #gnucash
15:53:49 *** qwer has quit IRC
15:56:45 *** qwer has joined #gnucash
16:01:38 *** ramontjunior has quit IRC
16:02:23 *** jervin has joined #gnucash
16:04:18 *** qwer has quit IRC
16:12:52 *** frakturfreak has joined #gnucash
16:12:52 *** ChanServ sets mode: +v frakturfreak
16:25:58 *** JayC has quit IRC
16:28:02 *** JayC has joined #gnucash
16:28:02 *** ChanServ sets mode: +v JayC
16:34:16 *** User has quit IRC
17:10:40 *** frakturfreak has quit IRC
17:25:19 *** qwer has joined #gnucash
18:00:24 *** sergiomiguelrp has quit IRC
18:00:28 *** sergiomiguelrp has joined #gnucash
18:15:03 *** sergiomiguelrp has quit IRC
18:15:07 *** sergiomiguelrp has joined #gnucash
18:26:45 *** sergiomiguelrp has quit IRC
18:40:51 *** sergiomiguelrp has joined #gnucash
19:06:19 <fell> CSV is an very ancient US Navy standard.
19:08:59 *** hussam has quit IRC
19:13:16 <fell> In theory we could set the default depening on the users decimal separator.
19:14:38 <fell> If that is comma, use semicolon a field separator.
19:16:02 *** Aussie_matt has joined #gnucash
19:40:51 *** KaiForce has quit IRC
20:01:08 <jralls> fell: Being a very ancient US Navy person I rather doubt that claim. https://en.wikipedia.org/wiki/Comma-separated_values says it originated in IBM Fortran sometime before 1972.
20:04:10 <jralls> It turns out there is a spec, https://tools.ietf.org/html/rfc4180 but it wasn't written until 2005 and it's mostly ignored.
20:05:08 *** lmat has quit IRC
20:05:36 <jralls> I think it unwise to change the separator in any way other than by the user's direct choice because only the user knows what they're going to feed the file to.
20:05:53 *** lmat has joined #gnucash
20:08:51 <fell> OK, a Fortran "dump" is obvious.
20:15:11 *** lmat has quit IRC
20:16:12 *** lmat has joined #gnucash
20:31:58 *** sergiomiguelrp has quit IRC
20:34:39 *** lmat has quit IRC
20:35:36 *** lmat has joined #gnucash
21:00:56 *** guak has quit IRC
21:42:16 *** suial has quit IRC
22:19:53 *** rigid has quit IRC
23:03:33 *** jervin has quit IRC
23:34:20 *** FH_thecat has joined #gnucash
23:36:13 *** David1 has quit IRC
23:36:25 *** David has joined #gnucash
23:52:26 *** jw4 has quit IRC