graphql-engine/server/tests-py/queries/v1/update/permissions
Samir Talwar 3fc25a39d3 server: Handle special characters in parseJSONPath and encodeJSONPath.
This improves `parseJSONPath` and `encodeJSONPath` to encode special characters appropriately by delegating to Aeson.

This also makes a couple of improvements to `encodeJSONPath`.

1. The function is moved from `Hasura.Base.Error` to `Data.Parser.JSONPath`. This still doesn't seem too appropriate but it is somewhat better. I am basing this on the fact that its test cases already lived in `Data.Parser.JSONPathSpec`.
2. It now returns `Text`, not `String`.
4. It quotes strings with double quotes (`"`) rather than single quotes (`'`), just like JSON.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4935
GitOrigin-RevId: bf44353cd740500245f2e38907a7d6263ae0291c
2022-07-05 15:53:45 +00:00
..
schema_setup.yaml [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
schema_teardown.yaml run graphql tests on both http and websocket; add parallelism (close #1868) (#1921) 2019-04-08 12:52:38 +05:30
user_can_update_unpublished_article.yaml add python based tests, remove haskell tests 2018-10-04 18:14:15 +05:30
user_cannot_update_another_users_article.yaml add python based tests, remove haskell tests 2018-10-04 18:14:15 +05:30
user_cannot_update_id_col_article.yaml server: Handle special characters in parseJSONPath and encodeJSONPath. 2022-07-05 15:53:45 +00:00
user_cannot_update_published_article_version.yaml add python based tests, remove haskell tests 2018-10-04 18:14:15 +05:30
user_update_resident_preset_error.yaml server: Handle special characters in parseJSONPath and encodeJSONPath. 2022-07-05 15:53:45 +00:00
user_update_resident_preset_session_var.yaml support column presets in update mutation (closes #1449, closes #1464) (#1473) 2019-02-11 18:15:30 +05:30
user_update_resident_preset.yaml support column presets in update mutation (closes #1449, closes #1464) (#1473) 2019-02-11 18:15:30 +05:30
values_setup.yaml [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
values_teardown.yaml run graphql tests on both http and websocket; add parallelism (close #1868) (#1921) 2019-04-08 12:52:38 +05:30