github
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | issue | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/simonw/datasette/pull/1842#issuecomment-1288311852 | https://api.github.com/repos/simonw/datasette/issues/1842 | 1288311852 | IC_kwDOBm6k_c5MyhQs | 9599 | 2022-10-24T02:11:12Z | 2022-10-24T02:11:12Z | OWNER | I'm going to construct a `metadata.yml` which makes various databases and tables visible or invisible, then browse them using the root user. `block-instance.yml`: ```yaml allow: id: root ``` `block-database.yml`: ```yaml databases: fixtures: allow: id: root ``` `block-table.yml`: ```yaml databases: fixtures: tables: searchable: allow: id: root ``` `block-query.yml`: ```yaml databases: fixtures: queries: two: sql: select 1 + 1 allow: id: root ``` https://gist.github.com/simonw/2d007ebe43de46d44499c77a2a291756 - checkout that Gist to get all four. I manually tested all four scenarios with root and non-root users and confirmed that they worked correctly and padlocks were shown in the right places. | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1408561039 | |
https://github.com/simonw/datasette/pull/1842#issuecomment-1288304224 | https://api.github.com/repos/simonw/datasette/issues/1842 | 1288304224 | IC_kwDOBm6k_c5MyfZg | 9599 | 2022-10-24T02:00:14Z | 2022-10-24T02:00:14Z | OWNER | I need to do one last round of manual testing before I merge this. | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1408561039 |