{"action":"opened","issue":{"url":"https://api.github.com/repos/runnerty/runnerty/issues/109","repository_url":"https://api.github.com/repos/runnerty/runnerty","labels_url":"https://api.github.com/repos/runnerty/runnerty/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/runnerty/runnerty/issues/109/comments","events_url":"https://api.github.com/repos/runnerty/runnerty/issues/109/events","html_url":"https://github.com/runnerty/runnerty/issues/109","id":330569054,"node_id":"MDU6SXNzdWUzMzA1NjkwNTQ=","number":109,"title":"Interpreter function not resolving in config.json","user":{"login":"pakitovic","id":18547138,"node_id":"MDQ6VXNlcjE4NTQ3MTM4","avatar_url":"https://avatars0.githubusercontent.com/u/18547138?v=4","gravatar_id":"","url":"https://api.github.com/users/pakitovic","html_url":"https://github.com/pakitovic","followers_url":"https://api.github.com/users/pakitovic/followers","following_url":"https://api.github.com/users/pakitovic/following{/other_user}","gists_url":"https://api.github.com/users/pakitovic/gists{/gist_id}","starred_url":"https://api.github.com/users/pakitovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pakitovic/subscriptions","organizations_url":"https://api.github.com/users/pakitovic/orgs","repos_url":"https://api.github.com/users/pakitovic/repos","events_url":"https://api.github.com/users/pakitovic/events{/privacy}","received_events_url":"https://api.github.com/users/pakitovic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-08T08:39:02Z","updated_at":"2018-06-08T08:39:02Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING\r\n-->\r\n\r\n**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[ ] bug report => search github for a similar issue or PR before submitting\r\n[x] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/Coderty/runnerty/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\n<!-- Describe how the bug manifests. -->\r\nIf you use an interpreter function in the config.json file it is not resolved properly before using that variable in the plan.\r\n\r\n> config.json:\r\n> ```JSON\r\n> \"CSV_OUTPUT\": \"/tmp/@GETDATE('YYYY_MM_DD').csv\"\r\n> ```\r\n> \r\n\r\n> plan.json:\r\n> ```JSON\r\n> \"command\": \"python3 @GV(BATCH_PATH)/script.py -u @GVQ(API_URL) -o @GV(CSV_OUTPUT)\"\r\n> ```\r\n\r\n**Expected behavior**\r\n<!-- Describe what the behavior would be without the bug. -->\r\n\r\nThe executed comand should be:\r\n\r\n```JSON\r\n\"command\": \"python3 /batch/script.py -u 'https://my.service.api' -o /tmp/2018_06_08.csv\"\r\n```\r\n\r\nAnd the actual result is this:\r\n\r\n```JSON\r\n\"command\": \"python3 /batch/script.py -u 'https://my.service.api' -o /tmp/@GETDATE('YYYY_MM_DD').csv\"\r\n```\r\n\r\n**Minimal reproduction of the problem with instructions**\r\n<!--\r\nIf the current behavior is a bug or you can illustrate your feature request better with an example, \r\nplease provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via\r\nhttps://plnkr.co or similar \r\n-->\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\n<!-- Describe the motivation or the concrete use case -->\r\n\r\n**Please tell us about your environment:**\r\n<!-- Operating system, IDE, package manager, HTTP server, ... -->\r\n\r\n* **Runnerty version:** 2.1.0-rc4\r\n<!-- Check whether this is still an issue in the most recent Runnerty version -->\r\n\r\n* **Operation system:** macOS High Sierra 10.13.5\r\n\r\n* **Node version:** `node --version` = 9.2.0"}}
{"actor":{"display_login":"pakitovic"}}