Commit Graph

37 Commits

Author SHA1 Message Date
Bilal
c7b173cb79 refactor text_to_sql spec to include STRING_AGG wrap 2020-04-29 17:10:54 +02:00
Bilal
6c9878ecea add spec to test searching for INNER search term 2020-04-29 16:53:41 +02:00
Bilal
15fc342633 remove comment 2020-04-29 16:53:18 +02:00
Bilal
f8352dcaa1 transform INNER JOIN to LEFT OUTER 2020-04-29 16:52:54 +02:00
Bilal
e0fae50584 add new tables and models for join through association 2020-04-29 07:22:03 +02:00
Bilal
fe96f682db start using HAVING instead of manually building joins 2020-04-29 07:21:39 +02:00
Bilal Catic
8f7b94f8cd Merge branch 'fix-bug-with-join-query' into 'join-bug-fix-with-multiple-default-columns'
Fix bug with join query

See merge request saburly/senadibilal/reklamice/gem!3
2020-04-24 09:44:27 +00:00
Bilal
0de540c5bd fix bug after rebase 2020-04-24 11:40:53 +02:00
Bilal
455845e36b update specs; add new specs to test for reported bug related to AND query in referenced table 2020-04-24 11:37:37 +02:00
Bilal
f4bec85161 change ActiveRecord joins query with custom generated SQL 2020-04-24 11:34:24 +02:00
Bilal Catic
4e382d7c1a Merge branch 'allow-multiple-default-columns' into 'join-bug-fix-with-multiple-default-columns'
Allow multiple default columns

See merge request saburly/senadibilal/reklamice/gem!2
2020-04-24 09:28:06 +00:00
Bilal
18f6875b54 add specs to search multiple default columns 2020-04-16 15:31:50 +02:00
Bilal
a54b2586ec update PgSearchable to accept array of default columns 2020-04-16 15:30:01 +02:00
Bilal
fc5fdd3db2 add model with two default fields 2020-04-16 15:28:28 +02:00
Bilal
b62638a647 Update and add new text-to-sql-query specs 2020-04-16 15:00:25 +02:00
Bilal
838b60ed92 Enable multiple default columns 2020-04-16 14:59:51 +02:00
Senad Uka
afbfdb87cd Upstream sync 2020-04-16 10:04:13 +02:00
Bilal Catic
3de6bd22d8 fix sql generator tests with adding CAST AS TEXT 2020-02-11 13:36:53 +01:00
Bilal Catic
ff7cd0a21d add tests for field mappings and joins 2020-02-11 13:36:15 +01:00
Bilal Catic
893bbd3d97 remove players table from schema 2020-02-11 13:35:02 +01:00
Bilal Catic
c7ae81a533 update spec models 2020-02-11 13:34:49 +01:00
Bilal Catic
94767d2b24 fix sql query generator tests to include CAST 2020-02-11 11:17:29 +01:00
Bilal Catic
d307811f5f add integration tests for simple model 2020-02-11 10:31:39 +01:00
Bilal Catic
ebc21919bf update models to reflect expected field names 2020-02-11 10:31:23 +01:00
Bilal Catic
f696a7cd20 add CAST AS TEXT; change how default_field is assigned 2020-02-10 16:42:59 +01:00
Bilal Catic
fe7dcbcd6f add required import 2020-02-10 15:16:57 +01:00
Bilal Catic
21b736420b add tests to sql generator for keyword detection 2020-02-10 15:16:57 +01:00
Bilal Catic
d96817e3f8 fix Gemfile 2020-02-10 15:16:57 +01:00
Bilal Catic
b2cdcfbd61 update lexer 2020-02-10 15:16:57 +01:00
Bilal Catic
66c01702c8 fix rex specification and add tests for keyword detection 2020-02-10 15:16:57 +01:00
Bilal Catic
b9bfa004c6 fix rule for expression expression; fix tests 2020-02-10 15:16:57 +01:00
Bilal Catic
e5925c8209 add model param to query generator 2020-02-10 15:16:57 +01:00
Senad Uka
c7ab6465e4 Hidden files 2020-02-10 15:08:51 +01:00
Senad Uka
37ad466439 Upstream sync 2020-02-07 16:09:57 +01:00
Senad Uka
530951ff45 Upstream sync 2020-02-05 13:40:37 +01:00
Senad Uka
2749c53aac Initial commit 2020-01-28 13:31:56 +01:00
Senad Uka
7f7c6e95bc Initial commit 2020-01-28 12:29:22 +00:00