{"action":"created","issue":{"url":"https://api.github.com/repos/intermine/intermine/issues/1218","labels_url":"https://api.github.com/repos/intermine/intermine/issues/1218/labels{/name}","comments_url":"https://api.github.com/repos/intermine/intermine/issues/1218/comments","events_url":"https://api.github.com/repos/intermine/intermine/issues/1218/events","html_url":"https://github.com/intermine/intermine/pull/1218","id":116078083,"number":1218,"title":"Add template tags to JSON export.","user":{"login":"julie-sullivan","id":1663057,"avatar_url":"https://avatars.githubusercontent.com/u/1663057?v=3","gravatar_id":"","url":"https://api.github.com/users/julie-sullivan","html_url":"https://github.com/julie-sullivan","followers_url":"https://api.github.com/users/julie-sullivan/followers","following_url":"https://api.github.com/users/julie-sullivan/following{/other_user}","gists_url":"https://api.github.com/users/julie-sullivan/gists{/gist_id}","starred_url":"https://api.github.com/users/julie-sullivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julie-sullivan/subscriptions","organizations_url":"https://api.github.com/users/julie-sullivan/orgs","repos_url":"https://api.github.com/users/julie-sullivan/repos","events_url":"https://api.github.com/users/julie-sullivan/events{/privacy}","received_events_url":"https://api.github.com/users/julie-sullivan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/intermine/intermine/labels/enhancement","name":"enhancement","color":"02d7e1"},{"url":"https://api.github.com/repos/intermine/intermine/labels/please-test","name":"please-test","color":"0b02e1"}],"state":"open","locked":false,"assignee":{"login":"joshkh","id":4752532,"avatar_url":"https://avatars.githubusercontent.com/u/4752532?v=3","gravatar_id":"","url":"https://api.github.com/users/joshkh","html_url":"https://github.com/joshkh","followers_url":"https://api.github.com/users/joshkh/followers","following_url":"https://api.github.com/users/joshkh/following{/other_user}","gists_url":"https://api.github.com/users/joshkh/gists{/gist_id}","starred_url":"https://api.github.com/users/joshkh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshkh/subscriptions","organizations_url":"https://api.github.com/users/joshkh/orgs","repos_url":"https://api.github.com/users/joshkh/repos","events_url":"https://api.github.com/users/joshkh/events{/privacy}","received_events_url":"https://api.github.com/users/joshkh/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-11-10T10:24:34Z","updated_at":"2015-11-10T10:25:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/intermine/intermine/pulls/1218","html_url":"https://github.com/intermine/intermine/pull/1218","diff_url":"https://github.com/intermine/intermine/pull/1218.diff","patch_url":"https://github.com/intermine/intermine/pull/1218.patch"},"body":"Refs #1154 \r\n\r\nAdd template tags to toJSON() method on templates."},"comment":{"url":"https://api.github.com/repos/intermine/intermine/issues/comments/155380925","html_url":"https://github.com/intermine/intermine/pull/1218#issuecomment-155380925","issue_url":"https://api.github.com/repos/intermine/intermine/issues/1218","id":155380925,"user":{"login":"julie-sullivan","id":1663057,"avatar_url":"https://avatars.githubusercontent.com/u/1663057?v=3","gravatar_id":"","url":"https://api.github.com/users/julie-sullivan","html_url":"https://github.com/julie-sullivan","followers_url":"https://api.github.com/users/julie-sullivan/followers","following_url":"https://api.github.com/users/julie-sullivan/following{/other_user}","gists_url":"https://api.github.com/users/julie-sullivan/gists{/gist_id}","starred_url":"https://api.github.com/users/julie-sullivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julie-sullivan/subscriptions","organizations_url":"https://api.github.com/users/julie-sullivan/orgs","repos_url":"https://api.github.com/users/julie-sullivan/repos","events_url":"https://api.github.com/users/julie-sullivan/events{/privacy}","received_events_url":"https://api.github.com/users/julie-sullivan/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T10:25:55Z","updated_at":"2015-11-10T10:25:55Z","body":"Here's the current export:\r\n\r\n```\r\n        \"AllGene_Chromosome\": {\r\n            \"model\": {\r\n                \"name\": \"genomic\"\r\n            },\r\n            \"title\": \"All genes in organism --> All chromosomal locations.\",\r\n            \"description\": \"For a specified organism, show the chromosomal location and sequence length for all genes.\",\r\n            \"select\": [\r\n                \"Gene.chromosome.primaryIdentifier\",\r\n                \"Gene.chromosomeLocation.strand\",\r\n                \"Gene.chromosomeLocation.start\",\r\n                \"Gene.chromosomeLocation.end\",\r\n                \"Gene.length\",\r\n                \"Gene.symbol\",\r\n                \"Gene.secondaryIdentifier\"\r\n            ],\r\n            \"name\": \"AllGene_Chromosome\",\r\n            \"comment\": \"\",\r\n            \"orderBy\": [\r\n                {\r\n                    \"Gene.chromosome.primaryIdentifier\": \"ASC\"\r\n                }\r\n            ],\r\n            \"where\": [\r\n                {\r\n                    \"path\": \"Gene.organism.name\",\r\n                    \"op\": \"=\",\r\n                    \"code\": \"A\",\r\n                    \"editable\": true,\r\n                    \"switchable\": false,\r\n                    \"switched\": \"LOCKED\",\r\n                    \"value\": \"Drosophila melanogaster\"\r\n                }\r\n            ]\r\n        },\r\n```\r\n\r\nHere's the new export:\r\n\r\n```\r\n        \"AllGene_Chromosome\": {\r\n            \"model\": {\r\n                \"name\": \"genomic\"\r\n            },\r\n            \"title\": \"All genes in organism --> All chromosomal locations.\",\r\n            \"description\": \"For a specified organism, show the chromosomal location and sequence length for all genes.\",\r\n            \"select\": [\r\n                \"Gene.chromosome.primaryIdentifier\",\r\n                \"Gene.chromosomeLocation.strand\",\r\n                \"Gene.chromosomeLocation.start\",\r\n                \"Gene.chromosomeLocation.end\",\r\n                \"Gene.length\",\r\n                \"Gene.symbol\",\r\n                \"Gene.secondaryIdentifier\"\r\n            ],\r\n            \"name\": \"AllGene_Chromosome\",\r\n            \"comment\": \"\",\r\n            \"tags\": [\r\n                \"im:aspect:Genes\",\r\n                \"im:public\",\r\n                \"monkey\"\r\n            ],\r\n            \"orderBy\": [\r\n                {\r\n                    \"Gene.chromosome.primaryIdentifier\": \"ASC\"\r\n                }\r\n            ],\r\n            \"where\": [\r\n                {\r\n                    \"path\": \"Gene.organism.name\",\r\n                    \"op\": \"=\",\r\n                    \"code\": \"A\",\r\n                    \"editable\": true,\r\n                    \"switchable\": false,\r\n                    \"switched\": \"LOCKED\",\r\n                    \"value\": \"Drosophila melanogaster\"\r\n                }\r\n            ]\r\n        },\r\n```\r\n\r\nThey both match (except for the tags additon) and are valid JSON."}}