{"html_url": "https://github.com/dogsheep/dogsheep-photos/issues/15#issuecomment-623739934", "issue_url": "https://api.github.com/repos/dogsheep/dogsheep-photos/issues/15", "id": 623739934, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzczOTkzNA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-04T22:24:26Z", "updated_at": "2020-05-04T22:24:26Z", "author_association": "MEMBER", "body": "Twitter thread with some examples of photos that are coming up from queries against these scores: https://twitter.com/simonw/status/1257434670750408705", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 612151767, "label": "Expose scores from ZCOMPUTEDASSETATTRIBUTES"}, "performed_via_github_app": null} {"html_url": "https://github.com/dogsheep/dogsheep-photos/issues/15#issuecomment-623730934", "issue_url": "https://api.github.com/repos/dogsheep/dogsheep-photos/issues/15", "id": 623730934, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzczMDkzNA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-04T22:00:38Z", "updated_at": "2020-05-04T22:00:48Z", "author_association": "MEMBER", "body": "Here's the query to create the new table:\r\n```sql\r\ncreate table apple_photos_scores as select\r\n ZGENERICASSET.ZUUID,\r\n ZGENERICASSET.ZOVERALLAESTHETICSCORE,\r\n ZGENERICASSET.ZCURATIONSCORE,\r\n ZGENERICASSET.ZPROMOTIONSCORE,\r\n ZGENERICASSET.ZHIGHLIGHTVISIBILITYSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZBEHAVIORALSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZFAILURESCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZHARMONIOUSCOLORSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZIMMERSIVENESSSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZINTERACTIONSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZINTERESTINGSUBJECTSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZINTRUSIVEOBJECTPRESENCESCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZLIVELYCOLORSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZLOWLIGHT,\r\n ZCOMPUTEDASSETATTRIBUTES.ZNOISESCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZPLEASANTCAMERATILTSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZPLEASANTCOMPOSITIONSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZPLEASANTLIGHTINGSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZPLEASANTPATTERNSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZPLEASANTPERSPECTIVESCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZPLEASANTPOSTPROCESSINGSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZPLEASANTREFLECTIONSSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZPLEASANTSYMMETRYSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZSHARPLYFOCUSEDSUBJECTSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZTASTEFULLYBLURREDSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZWELLCHOSENSUBJECTSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZWELLFRAMEDSUBJECTSCORE,\r\n ZCOMPUTEDASSETATTRIBUTES.ZWELLTIMEDSHOTSCORE\r\nfrom\r\n attached.ZGENERICASSET\r\n join attached.ZCOMPUTEDASSETATTRIBUTES on\r\n attached.ZGENERICASSET.Z_PK = attached.ZCOMPUTEDASSETATTRIBUTES.Z_PK;\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 612151767, "label": "Expose scores from ZCOMPUTEDASSETATTRIBUTES"}, "performed_via_github_app": null} {"html_url": "https://github.com/dogsheep/dogsheep-photos/issues/15#issuecomment-623723687", "issue_url": "https://api.github.com/repos/dogsheep/dogsheep-photos/issues/15", "id": 623723687, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzcyMzY4Nw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-04T21:43:06Z", "updated_at": "2020-05-04T21:43:06Z", "author_association": "MEMBER", "body": "It looks like I can map the photos I'm importing to these tables using the `ZUUID` column on `ZGENERICASSET` to get a `Z_PK` which then maps to the rows in `ZGENERICASSET`.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 612151767, "label": "Expose scores from ZCOMPUTEDASSETATTRIBUTES"}, "performed_via_github_app": null} {"html_url": "https://github.com/dogsheep/dogsheep-photos/issues/15#issuecomment-623723026", "issue_url": "https://api.github.com/repos/dogsheep/dogsheep-photos/issues/15", "id": 623723026, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzcyMzAyNg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-04T21:41:30Z", "updated_at": "2020-05-04T21:41:30Z", "author_association": "MEMBER", "body": "I'm going to put these in a table called `apple_photos_scores` - I'll also pull in the following columns from the `ZGENERICASSET` table:\r\n\r\n* `ZOVERALLAESTHETICSCORE`\r\n* `ZCURATIONSCORE`\r\n* `ZHIGHLIGHTVISIBILITYSCORE`\r\n* `ZPROMOTIONSCORE`", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 612151767, "label": "Expose scores from ZCOMPUTEDASSETATTRIBUTES"}, "performed_via_github_app": null}