console: only show tables from current schema in clone permissions section

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3823
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
GitOrigin-RevId: ec47f1578c89bea42fbe5db0b742a7058604c4b8
This commit is contained in:
Rikin Kachhia 2022-03-02 11:40:33 +05:30 committed by hasura-bot
parent deb3baa504
commit 8b88d15f06
2 changed files with 7 additions and 1 deletions

View File

@ -15,6 +15,7 @@
- server: add a `request_headers` field to the `test_webhook_transform` API.
- console: include cron trigger with include in metadata as false on cron trigger manage page
- console: show an error notification if Hasura CLI migrations fail
- console: only show tables from current schema in clone permissions section
- console: provide checkbox to remove body in rest connectors
- cli: fix metadata version being set to 3 when doing `hasura init --version 2` (#8148)

View File

@ -67,6 +67,8 @@ import {
import {
findTable,
generateTableDef,
getSchemaTableNames,
getTrackedTables,
QUERY_TYPES,
dataSource,
isFeatureSupported,
@ -1601,7 +1603,10 @@ class Permissions extends Component {
const getApplyToList = () => {
const _applyToListHtml = [];
const tableOptions = allSchemas.map(schema => schema.table_name);
const tableOptions = getSchemaTableNames(
getTrackedTables(allSchemas),
currentSchema
);
const actionsList = supportedQueryTypes || [
'insert',
'select',