Skip to content

Commit

Permalink
quilt3.admin.tabulator: get/set open query
Browse files Browse the repository at this point in the history
  • Loading branch information
nl0 committed Dec 19, 2024
1 parent e7743a7 commit 14a0fee
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 0 deletions.
14 changes: 14 additions & 0 deletions api/python/quilt3-admin/queries.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,17 @@ mutation bucketTabulatorTableRename($bucketName: String!, $tableName: String!, $
}
}
}

query tabulatorGetOpenQuery {
admin {
tabulatorOpenQuery
}
}

mutation tabulatorSetOpenQuery($enabled: Boolean!) {
admin {
setTabulatorOpenQuery(enabled: $enabled) {
tabulatorOpenQuery
}
}
}
11 changes: 11 additions & 0 deletions api/python/quilt3/admin/_graphql_client/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions api/python/quilt3/admin/_graphql_client/client.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions api/python/quilt3/admin/tabulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,17 @@ def rename_table(bucket_name: str, table_name: str, new_table_name: str) -> None
"""
result = util.get_client().bucket_tabulator_table_rename(bucket_name, table_name, new_table_name)
util.handle_errors(result)


def get_open_query() -> bool:
"""
Get the **open query** status.
"""
return util.get_client().tabulator_get_open_query()

Check warning on line 36 in api/python/quilt3/admin/tabulator.py

View check run for this annotation

Codecov / codecov/patch/informational

api/python/quilt3/admin/tabulator.py#L36

Added line #L36 was not covered by tests


def set_open_query(enabled: bool) -> None:
"""
Set the **open query** status.
"""
util.get_client().tabulator_set_open_query(enabled)

Check warning on line 43 in api/python/quilt3/admin/tabulator.py

View check run for this annotation

Codecov / codecov/patch/informational

api/python/quilt3/admin/tabulator.py#L43

Added line #L43 was not covered by tests

0 comments on commit 14a0fee

Please sign in to comment.