graphql-engine/server
Karthikeyan Chinnakonda 44347d2d74 server: template the schema and table names in the event trigger PG functions
Earlier, while creating the event trigger's internal postgres trigger, we used to get the name of the table from the `TG_TABLE_NAME` special trigger variable. Using this with normal tables works fine, but it breaks when the parent table is partitioned because we associate the ET configuration in the schema only with the original table (as it should be).

In this PR, we supply the table name and schema name through template variables instead of using `TG_TABLE_NAME` and `TG_TABLE_SCHEMA`, so that event triggers work with a partitioned table as well.

TODO:

- [x] Changelog
- [x] unit test (ET on partition table)

GitOrigin-RevId: 556376881a85525300dcf64da0611ee9ad387eb0
2021-01-06 20:22:34 +00:00
..
bench-wrk server: make more use of hlint (#6059) 2020-10-28 16:40:33 +00:00
packaging Switch from stack to cabal-install for building server code (close #3280) (#3558) 2020-01-17 16:07:15 -06:00
src-bench-cache server: make more use of hlint (#6059) 2020-10-28 16:40:33 +00:00
src-exec server: support separate metadata database and server code setup for multi sources (#197) 2020-12-28 12:56:55 +00:00
src-lib server: template the schema and table names in the event trigger PG functions 2021-01-06 20:22:34 +00:00
src-rsr server: template the schema and table names in the event trigger PG functions 2021-01-06 20:22:34 +00:00
src-test server: support separate metadata database and server code setup for multi sources (#197) 2020-12-28 12:56:55 +00:00
tests-py server: template the schema and table names in the event trigger PG functions 2021-01-06 20:22:34 +00:00
.dockerignore update packages (#251) 2018-08-08 13:10:13 +05:30
.gitignore Merge oss/master onto mono/main 2020-11-12 22:37:19 +05:30
.hlint.yaml server: remove bad hlint hint (#232) 2020-12-21 13:30:16 +00:00
.stylish-haskell.yaml Rewrite GraphQL schema generation and query parsing (close #2801) (#4111) 2020-08-21 12:27:01 -05:00
cabal.project server: allow fragments to use variables (fix hasura/graphql-engine#6303) (#225) 2020-12-22 10:42:34 +00:00
cabal.project.ci server: Bump GHC version to 8.10.2 (#5659) 2020-08-26 23:16:23 -05:00
cabal.project.dev server: Bump GHC version to 8.10.2 (#5659) 2020-08-26 23:16:23 -05:00
cabal.project.dev-sh dev.sh: restore code coverage functionality 2020-01-23 18:35:18 -05:00
cabal.project.dev-sh.freeze dev.sh: restore code coverage functionality 2020-01-23 18:35:18 -05:00
cabal.project.dev-sh.local Migrate to GHC 8.10, upgrade dependencies. Closes #4517 2020-05-13 19:13:02 -04:00
cabal.project.freeze Merge pull request #113 from hasura/karthikeyan/remote-schema-permissions 2020-12-21 09:12:35 +00:00
commit_diff.txt Rewrite GraphQL schema generation and query parsing (close #2801) (#4111) 2020-08-21 12:27:01 -05:00
CONTRIBUTING.md Merge pull request #223 from hasura/jberryman/5863-prep-refactoring 2020-12-20 06:53:38 +00:00
graphql-engine.cabal server: support separate metadata database and server code setup for multi sources (#197) 2020-12-28 12:56:55 +00:00
Makefile server: hasura on PG v13 (#125) 2020-12-01 12:22:42 +00:00
sample.hie.yaml Merge oss/master onto mono/main 2020-11-12 22:37:19 +05:30
Setup.hs move raven into graphql-engine repo 2018-06-28 00:32:00 +05:30
STYLE.md server: Add a Haskell style guide (#2175) 2020-04-08 02:31:30 -05:00