{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/awx/issues/208","repository_url":"https://api.github.com/repos/ansible/awx","labels_url":"https://api.github.com/repos/ansible/awx/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/ansible/awx/issues/208/comments","events_url":"https://api.github.com/repos/ansible/awx/issues/208/events","html_url":"https://github.com/ansible/awx/issues/208","id":258830990,"number":208,"title":"Allow creating a project that does not auto-update","user":{"login":"AlanCoding","id":1385596,"avatar_url":"https://avatars3.githubusercontent.com/u/1385596?v=4","gravatar_id":"","url":"https://api.github.com/users/AlanCoding","html_url":"https://github.com/AlanCoding","followers_url":"https://api.github.com/users/AlanCoding/followers","following_url":"https://api.github.com/users/AlanCoding/following{/other_user}","gists_url":"https://api.github.com/users/AlanCoding/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanCoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanCoding/subscriptions","organizations_url":"https://api.github.com/users/AlanCoding/orgs","repos_url":"https://api.github.com/users/AlanCoding/repos","events_url":"https://api.github.com/users/AlanCoding/events{/privacy}","received_events_url":"https://api.github.com/users/AlanCoding/received_events","type":"User","site_admin":false},"labels":[{"id":687169246,"url":"https://api.github.com/repos/ansible/awx/labels/component:api","name":"component:api","color":"fbca04","default":false},{"id":719162362,"url":"https://api.github.com/repos/ansible/awx/labels/good%20first%20issue","name":"good first issue","color":"4b1489","default":true},{"id":719162216,"url":"https://api.github.com/repos/ansible/awx/labels/help%20wanted","name":"help wanted","color":"61f235","default":true},{"id":670226707,"url":"https://api.github.com/repos/ansible/awx/labels/state:needs_devel","name":"state:needs_devel","color":"ededed","default":false},{"id":607283750,"url":"https://api.github.com/repos/ansible/awx/labels/type:enhancement","name":"type:enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-19T13:58:52Z","updated_at":"2018-05-18T14:53:02Z","closed_at":null,"author_association":"MEMBER","body":"##### ISSUE TYPE\r\n - Feature Idea\r\n\r\n##### COMPONENT NAME\r\n - API\r\n\r\n##### SUMMARY\r\nClients using the API directly should have the ability to create a project that will not automatically update itself on creation. This would be exclusively an API feature, and its benefit would be to allow standing up data in Tower without requiring project updates to happen.\r\n\r\nThe existing create_demo_data awx-manage command already does this, but API consumers can not.\r\n\r\nIf a client creates a project without an auto-update, that client should be obligated to provide:\r\n - SCM revision\r\n - playbook file listing\r\n\r\nThese are necessary to allow the project to be used in job templates (again, without the auto-updating), and to allow project syncs (before job runs) to know what to check out.\r\n\r\nThe auto-updating forces API consumers to implement a \"wait\" condition, and this is extremely non-ideal.\r\n\r\n\r\nFor now, I want to put the idea out there and get our community to weigh in on the value of this proposal."},"comment":{"url":"https://api.github.com/repos/ansible/awx/issues/comments/390232601","html_url":"https://github.com/ansible/awx/issues/208#issuecomment-390232601","issue_url":"https://api.github.com/repos/ansible/awx/issues/208","id":390232601,"user":{"login":"AlanCoding","id":1385596,"avatar_url":"https://avatars3.githubusercontent.com/u/1385596?v=4","gravatar_id":"","url":"https://api.github.com/users/AlanCoding","html_url":"https://github.com/AlanCoding","followers_url":"https://api.github.com/users/AlanCoding/followers","following_url":"https://api.github.com/users/AlanCoding/following{/other_user}","gists_url":"https://api.github.com/users/AlanCoding/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanCoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanCoding/subscriptions","organizations_url":"https://api.github.com/users/AlanCoding/orgs","repos_url":"https://api.github.com/users/AlanCoding/repos","events_url":"https://api.github.com/users/AlanCoding/events{/privacy}","received_events_url":"https://api.github.com/users/AlanCoding/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T14:53:02Z","updated_at":"2018-05-18T14:53:02Z","author_association":"MEMBER","body":"Proposal:\r\n\r\n - Make fields writable on create only:\r\n   - `playbook_files`\r\n   - `scm_revision` (required if playbook files provided)\r\n - in model `.save()` method, if `self.pk` is `None` _and_ `self.scm_revision` is True-ish, then do not update\r\n - some other provisions may be necessary in the task code to accommodate a null `last_update` and other details\r\n\r\nIf you don't know the SCM revision, you don't be able to use this feature. That just wouldn't be viable."}}
{"actor":{"display_login":"AlanCoding"}}