graphql-engine/server/tests-py/queries/graphql_mutation/insert/permissions
Rakesh Emmadi d52bfcda4e
backend only insert permissions (rfc #4120) (#4224)
* move user info related code to Hasura.User module

* the RFC #4120 implementation; insert permissions with admin secret

* revert back to old RoleName based schema maps

An attempt made to avoid duplication of schema contexts in types
if any role doesn't possess any admin secret specific schema

* fix compile errors in haskell test

* keep 'user_vars' for session variables in http-logs

* no-op refacto

* tests for admin only inserts

* update docs for admin only inserts

* updated CHANGELOG.md

* default behaviour when admin secret is not set

* fix x-hasura-role to X-Hasura-Role in pytests

* introduce effective timeout in actions async tests

* update docs for admin-secret not configured case

* Update docs/graphql/manual/api-reference/schema-metadata-api/permission.rst

Co-Authored-By: Marion Schleifer <marion@hasura.io>

* Apply suggestions from code review

Co-Authored-By: Marion Schleifer <marion@hasura.io>

* a complete iteration

backend insert permissions accessable via 'x-hasura-backend-privilege'
session variable

* console changes for backend-only permissions

* provide tooltip id; update labels and tooltips;

* requested changes

* requested changes

- remove className from Toggle component
- use appropriate function name (capitalizeFirstChar -> capitalize)

* use toggle props from definitelyTyped

* fix accidental commit

* Revert "introduce effective timeout in actions async tests"

This reverts commit b7a59c19d6.

* generate complete schema for both 'default' and 'backend' sessions

* Apply suggestions from code review

Co-Authored-By: Marion Schleifer <marion@hasura.io>

* remove unnecessary import, export Toggle as is

* update session variable in tooltip

* 'x-hasura-use-backend-only-permissions' variable to switch

* update help texts

* update docs

* update docs

* update console help text

* regenerate package-lock

* serve no backend schema when backend_only: false and header set to true

- Few type name refactor as suggested by @0x777

* update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* fix a merge bug where a certain entity didn't get removed

Co-authored-by: Marion Schleifer <marion@hasura.io>
Co-authored-by: Rishichandra Wawhal <rishi@hasura.io>
Co-authored-by: rikinsk <rikin.kachhia@gmail.com>
Co-authored-by: Tirumarai Selvan <tiru@hasura.io>
2020-04-24 14:40:53 +05:30
..
address_permission_error.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
article_on_conflict_constraint_on_user_role_error.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
article_on_conflict_user_role.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
author_on_conflict_ignore_user_role.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
author_student_role_insert_check_bio_fail.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
author_student_role_insert_check_bio_success.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
author_user_role_insert_check_is_registered_fail.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
author_user_role_insert_check_perm_success.yaml fix postgres query error when computed fields included in mutation response, fix #4035 2020-03-11 10:23:28 +05:30
author_user_role_insert_check_user_id_fail.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
backend_user_insert_fail.yaml backend only insert permissions (rfc #4120) (#4224) 2020-04-24 14:40:53 +05:30
backend_user_insert_invalid_bool.yaml backend only insert permissions (rfc #4120) (#4224) 2020-04-24 14:40:53 +05:30
backend_user_insert_pass.yaml backend only insert permissions (rfc #4120) (#4224) 2020-04-24 14:40:53 +05:30
backend_user_no_admin_secret_fail.yaml backend only insert permissions (rfc #4120) (#4224) 2020-04-24 14:40:53 +05:30
blog_on_conflict_update_preset.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
company_user_role_on_conflict.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
company_user_role.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
developer_insert_has_keys_any_fail.yaml allow session variables in operators which expect array input (#2475) 2019-07-10 15:49:58 +05:30
developer_insert_has_keys_any_pass.yaml allow session variables in operators which expect array input (#2475) 2019-07-10 15:49:58 +05:30
insert_article_arr_sess_var_editor_allowed_user_id.yaml Fix result ordering in some incorrect tests 2019-11-05 15:15:25 -06:00
insert_article_arr_sess_var_editors_err_not_allowed_user_id.yaml allow session variables in operators which expect array input (#2475) 2019-07-10 15:49:58 +05:30
resident_5_modifies_resident_6_upsert.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
resident_infant_fail.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
resident_infant.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
resident_on_conflict_where.yaml support where clause in on_conflict of insert mutation (close #2795) (#3002) 2019-10-09 05:09:20 -05:00
resident_user.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
schema_setup.yaml backend only insert permissions (rfc #4120) (#4224) 2020-04-24 14:40:53 +05:30
schema_teardown.yaml fix postgres query error when computed fields included in mutation response, fix #4035 2020-03-11 10:23:28 +05:30
seller_insert_computer_has_keys_all_fail.yaml allow session variables in operators which expect array input (#2475) 2019-07-10 15:49:58 +05:30
seller_insert_computer_has_keys_all_pass.yaml allow session variables in operators which expect array input (#2475) 2019-07-10 15:49:58 +05:30
user_article_error_unexpected_on_conflict_action.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
user_article_on_conflict_error_missing_article_constraint.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
user_article_unexpected_on_conflict_constraint_error.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
user_insert_account_fail.yaml allow creating permissions with conditions spanning tables (close #2512) (#2701) 2019-09-05 13:04:53 +05:30
user_insert_account_success.yaml allow creating permissions with conditions spanning tables (close #2512) (#2701) 2019-09-05 13:04:53 +05:30
user_with_no_backend_privilege.yaml backend only insert permissions (rfc #4120) (#4224) 2020-04-24 14:40:53 +05:30
values_setup.yaml allow creating permissions with conditions spanning tables (close #2512) (#2701) 2019-09-05 13:04:53 +05:30
values_teardown.yaml allow creating permissions with conditions spanning tables (close #2512) (#2701) 2019-09-05 13:04:53 +05:30