{"html_url": "https://github.com/simonw/datasette/issues/185#issuecomment-412299013", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/185", "id": 412299013, "node_id": "MDEyOklzc3VlQ29tbWVudDQxMjI5OTAxMw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-08-11T20:14:54Z", "updated_at": "2018-08-11T20:14:54Z", "author_association": "OWNER", "body": "I've been worrying about how this one relates to #260 - I'd like to validate metadata (to help protect against people e.g. misspelling `license_url` and then being confused when their license isn't displayed properly), but this issue requests the ability to add arbitrary additional keys to the metadata structure.\r\n\r\nI think the solution is to introduce a metadata key called `extra_metadata_keys` which allows you to specifically list the extra keys that you want to enable. Something like this:\r\n\r\n```\r\n{\r\n \"title\": \"My title\",\r\n \"source\": \"Source\",\r\n \"source_url\": \"https://www.example.com/\",\r\n \"release_date\": \"2018-04-01\",\r\n \"extra_metadata_keys\": [\"release_date\"]\r\n}\r\n```\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 299760684, "label": "Metadata should be a nested arbitrary KV store"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/185#issuecomment-379595253", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/185", "id": 379595253, "node_id": "MDEyOklzc3VlQ29tbWVudDM3OTU5NTI1Mw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-04-09T00:24:10Z", "updated_at": "2018-04-09T00:24:10Z", "author_association": "OWNER", "body": "@carlmjohnson in case you aren't following along with #189 I've shipped the first working prototype of sort-by-column - you can try it out here: https://datasette-issue-189-demo-2.now.sh/salaries-7859114-7859114/2017+Maryland+state+salaries?_search=university&_sort_desc=annual_salary", "reactions": "{\"total_count\": 1, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 1, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 299760684, "label": "Metadata should be a nested arbitrary KV store"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/185#issuecomment-376604558", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/185", "id": 376604558, "node_id": "MDEyOklzc3VlQ29tbWVudDM3NjYwNDU1OA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-03-27T17:16:27Z", "updated_at": "2018-03-27T17:16:27Z", "author_association": "OWNER", "body": "I am SO inspired by what you've done with https://salaries.news.baltimoresun.com/ - that's pretty much my ideal use-case for Datasette, and it's by far the most elaborate customization I've seen so far. I'd love to hear other ideas that came up while building that.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 299760684, "label": "Metadata should be a nested arbitrary KV store"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/185#issuecomment-376589591", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/185", "id": 376589591, "node_id": "MDEyOklzc3VlQ29tbWVudDM3NjU4OTU5MQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-03-27T16:30:51Z", "updated_at": "2018-03-27T16:30:51Z", "author_association": "OWNER", "body": "Also needed: the ability to unset metadata. If the root metadata specifies a license_url it should be possible to set \"license_url\": null on a child database or table. The current implementation will ignore null (or empty string) values and default to the top level value.\r\n\r\nI think the templates themselves should be able to indicate if they want the inherited values or not. That way we could support arbitrary key/values and avoid the application code having special knowledge of license_url etc.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 299760684, "label": "Metadata should be a nested arbitrary KV store"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/185#issuecomment-376587017", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/185", "id": 376587017, "node_id": "MDEyOklzc3VlQ29tbWVudDM3NjU4NzAxNw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-03-27T16:22:59Z", "updated_at": "2018-03-27T16:22:59Z", "author_association": "OWNER", "body": "One thing that's missing from this: if you set source/license data at the individual database level they should be inherited by tables within that database.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 299760684, "label": "Metadata should be a nested arbitrary KV store"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/185#issuecomment-376585911", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/185", "id": 376585911, "node_id": "MDEyOklzc3VlQ29tbWVudDM3NjU4NTkxMQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-03-27T16:19:43Z", "updated_at": "2018-03-27T16:19:43Z", "author_association": "OWNER", "body": "OK, I have an implementation of this. I realised that not ALL metadata should be inherited: it makes sense for source/source_url/license/license_url to be inherited, but it doesn't make sense for the title and description to be inherited down to the individual databases and tables.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 299760684, "label": "Metadata should be a nested arbitrary KV store"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/185#issuecomment-370273359", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/185", "id": 370273359, "node_id": "MDEyOklzc3VlQ29tbWVudDM3MDI3MzM1OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-03-04T23:10:56Z", "updated_at": "2018-03-04T23:10:56Z", "author_association": "OWNER", "body": "Are you talking specifically about accessing metadata from HTML templates? That makes a lot of sense, I'll think about how this could work.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 299760684, "label": "Metadata should be a nested arbitrary KV store"}, "performed_via_github_app": null}