graphql-engine/server/tests-py/queries/v1/track_table
paritosh-08 8c05efb6d9 server: disable mutation for materialised views
The materialized views cannot be mutated, so this commit removes the option to run mutation on the materialized views via graphql endpoint. Before this, users could have tried running mutation for the materialized views using the graphql endpoint (or from HGE console), which would have resulted in the following error:
``` JSON
{
  "errors": [
    {
      "extensions": {
        "internal": {
          "statement": "WITH \"articles_mat_view__mutation_result_alias\" AS (DELETE FROM \"public\".\"articles_mat_view\"  WHERE (('true') AND (((((\"public\".\"articles_mat_view\".\"id\") = (('20155721-961c-4d8b-a5c4-873ed62c7a61')::uuid)) AND ('true')) AND ('true')) AND ('true'))) RETURNING * ), \"articles_mat_view__all_columns_alias\" AS (SELECT  \"id\" , \"author_id\" , \"content\" , \"test_col\" , \"test_col2\"  FROM \"articles_mat_view__mutation_result_alias\"      ) SELECT  json_build_object('affected_rows', (SELECT  COUNT(*)  FROM \"articles_mat_view__all_columns_alias\"      ) )        ",
          "prepared": false,
          "error": {
            "exec_status": "FatalError",
            "hint": null,
            "message": "cannot change materialized view \"articles_mat_view\"",
            "status_code": "42809",
            "description": null
          },
          "arguments": []
        },
        "path": "$",
        "code": "unexpected"
      },
      "message": "database query error"
    }
  ]
}
```
So, we don't want to generate the mutation fields for the materialized views altogether.

https://github.com/hasura/graphql-engine-mono/pull/2226

GitOrigin-RevId: 4ef441764035a8039e1c780d454569ee1f2febc3
2021-09-06 10:10:35 +00:00
..
setup.yaml Server: fix issue of not being able to track tables with non-compliant GraphQL names (#313) 2021-01-12 08:13:58 +00:00
teardown.yaml Server: fix issue of not being able to track tables with non-compliant GraphQL names (#313) 2021-01-12 08:13:58 +00:00
track_function_table_same_name.yaml fail on tracking table/function with name conflict (close #2020) (#2383) 2019-07-11 07:41:20 +00:00
track_non_graphql_compliant_table.yaml Server: fix issue of not being able to track tables with non-compliant GraphQL names (#313) 2021-01-12 08:13:58 +00:00
track_table_function_same_name.yaml fail on tracking table/function with name conflict (close #2020) (#2383) 2019-07-11 07:41:20 +00:00
track_untrack_materialized_view.yaml server: disable mutation for materialised views 2021-09-06 10:10:35 +00:00
track_untrack_table_as_not_admin_error.yaml add python based tests, remove haskell tests 2018-10-04 18:14:15 +05:30
track_untrack_table_deps.yaml server: support separate metadata database and server code setup for multi sources (#197) 2020-12-28 12:56:55 +00:00
track_untrack_table_non_public_schema.yaml add python based tests, remove haskell tests 2018-10-04 18:14:15 +05:30
track_untrack_table.yaml add python based tests, remove haskell tests 2018-10-04 18:14:15 +05:30