Page 1 of 1

[SOLVED] [ strace sql ] Contacts Section of Company UI show multiple duplicate rows

Posted: 29 Jul 2020, 07:51
by KarlR
Hello Everyone!

I'm 1/2 way through migrating 2.5 million rows Commercial ATS to OpenCats. Lots of fun !

One issue im facing is that the 'contacts' datagrid of the Company UI page is showing duplicate multiple rows FORALL assoc. contacts of that company.

I'm really struggling to get my head around the OC Lib/MOD stack.

I know the contacts datagrid is constructed via LINES: 296-404 of modules/companies/Show.tpl.

How to find the actual SQL that creates this DataGrid so i may "Re-create" the output in phpMyadmin or bash console via mysql command line, please so I can find the source of the duplicate rows.

Many thanks for any assistance in advance,
Karl

Re: [ strace sql ] Contacts Section of Company UI show multiple duplicate rows

Posted: 29 Jul 2020, 07:58
by KarlR
Silly me! I found the problem... duplicates on contacts table.

Apologies for any inconveniance.

Re: [SOLVED] [ strace sql ] Contacts Section of Company UI show multiple duplicate rows

Posted: 31 Jul 2020, 10:25
by RussH
sorry Karl, took a while to check this thread. Glad you sorted it. Hope it's going well.. If you find any issues or propose any improvements please post them here - or on github.

Re: [SOLVED] [ strace sql ] Contacts Section of Company UI show multiple duplicate rows

Posted: 05 Aug 2020, 07:31
by KarlR
Thanks @RussH .

Just a bad migration script on my end.