{"action":"created","issue":{"url":"https://api.github.com/repos/pantheon-systems/terminus/issues/1115","repository_url":"https://api.github.com/repos/pantheon-systems/terminus","labels_url":"https://api.github.com/repos/pantheon-systems/terminus/issues/1115/labels{/name}","comments_url":"https://api.github.com/repos/pantheon-systems/terminus/issues/1115/comments","events_url":"https://api.github.com/repos/pantheon-systems/terminus/issues/1115/events","html_url":"https://github.com/pantheon-systems/terminus/issues/1115","id":162902634,"number":1115,"title":"Terminus doesn't detect changes to multidev environment when env is in SFTP mode","user":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-29T11:29:49Z","updated_at":"2016-07-12T23:59:21Z","closed_at":null,"body":"After I've created a new multidev environment and installed a plugin using WP-CLI, running `terminus site code diffstat` doesn't indicate any changed files. If you open the dashboard for the environment, wait for the code to refresh, and then execute the previous command again, it will indicate changed files.\r\n\r\nI'd expect `terminus site code diffstat` to indicate changed files without requiring the dashboard to be refreshed.\r\n\r\n### Reproduction steps\r\n\r\n_Replace `TERMINUS_SITE` and `TERMINUS_ENV` with a test site you have access to_\r\n\r\n```\r\n$ export TERMINUS_SITE=wp-saml-auth\r\n$ export TERMINUS_ENV=test-2\r\n$ export PANTHEON_SITE_URL=\"$TERMINUS_ENV-$TERMINUS_SITE.pantheonsite.io\"\r\n$ terminus site create-env --to-env=$TERMINUS_ENV --from-env=dev\r\n............................\r\n[2016-06-29 11:15:17] [info] Created Multidev environment \"test-2\"\r\n$ terminus site set-connection-mode --mode=sftp\r\n..........\r\n[2016-06-29 11:19:41] [info] Enabled on-server development via SFTP for \"test-2\"\r\n$ terminus wp \"plugin install wp-native-php-sessions --activate\"\r\n[2016-06-29 11:21:05] [info] Running wp plugin install wp-native-php-sessions --activate on wp-saml-auth-test-2\r\n    cmd: 'plugin install wp-native-php-sessions --activate'\r\n    site: 'wp-saml-auth'\r\n    env: 'test-2'\r\nInstalling WordPress Native PHP Sessions (0.5)\r\nDownloading install package from https://downloads.wordpress.org/plugin/wp-native-php-sessions.0.5.zip...\r\nUnpacking the package...\r\nInstalling the plugin...\r\nPlugin installed successfully.\r\nActivating 'wp-native-php-sessions'...\r\nSuccess: Plugin 'wp-native-php-sessions' activated.\r\n$ terminus site code diffstat\r\n[2016-06-29 11:21:35] [info] No changes on server.\r\n$ terminus site code commit --message=\"Set up WP Native Sessions for testing\"\r\nThere are no changed files. Commit anyway? [y/n]\r\n..\r\n[2016-06-29 11:23:12] [info] Committed code changes in \"test-2\"\r\n```"},"comment":{"url":"https://api.github.com/repos/pantheon-systems/terminus/issues/comments/232217068","html_url":"https://github.com/pantheon-systems/terminus/issues/1115#issuecomment-232217068","issue_url":"https://api.github.com/repos/pantheon-systems/terminus/issues/1115","id":232217068,"user":{"login":"stevector","id":211029,"avatar_url":"https://avatars.githubusercontent.com/u/211029?v=3","gravatar_id":"","url":"https://api.github.com/users/stevector","html_url":"https://github.com/stevector","followers_url":"https://api.github.com/users/stevector/followers","following_url":"https://api.github.com/users/stevector/following{/other_user}","gists_url":"https://api.github.com/users/stevector/gists{/gist_id}","starred_url":"https://api.github.com/users/stevector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevector/subscriptions","organizations_url":"https://api.github.com/users/stevector/orgs","repos_url":"https://api.github.com/users/stevector/repos","events_url":"https://api.github.com/users/stevector/events{/privacy}","received_events_url":"https://api.github.com/users/stevector/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T23:59:21Z","updated_at":"2016-07-12T23:59:21Z","body":"@TeslaDethray, do you know of any workarounds that could trigger a refresh of the code status from the command line? This bug changes the way @danielbachhuber are writing tests for some of the Pantheon WordPress plugins. We also got a question about it on the power users group: https://groups.google.com/a/pantheon.io/forum/#!topic/power-users/eKVU0A5NFIU "}}
{"actor":{"display_login":"stevector"}}