{"action":"created","issue":{"url":"https://api.github.com/repos/18F/tock/issues/352","repository_url":"https://api.github.com/repos/18F/tock","labels_url":"https://api.github.com/repos/18F/tock/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/18F/tock/issues/352/comments","events_url":"https://api.github.com/repos/18F/tock/issues/352/events","html_url":"https://github.com/18F/tock/issues/352","id":152622406,"number":352,"title":"Adding Active Start and End Dates to Tock Projects","user":{"login":"joshuabailes","id":12254935,"avatar_url":"https://avatars.githubusercontent.com/u/12254935?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuabailes","html_url":"https://github.com/joshuabailes","followers_url":"https://api.github.com/users/joshuabailes/followers","following_url":"https://api.github.com/users/joshuabailes/following{/other_user}","gists_url":"https://api.github.com/users/joshuabailes/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuabailes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuabailes/subscriptions","organizations_url":"https://api.github.com/users/joshuabailes/orgs","repos_url":"https://api.github.com/users/joshuabailes/repos","events_url":"https://api.github.com/users/joshuabailes/events{/privacy}","received_events_url":"https://api.github.com/users/joshuabailes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2016-05-02T19:12:13Z","updated_at":"2016-06-09T18:54:38Z","closed_at":null,"body":"The Agreements Team would like to add a feature to Tock. This would allow the Agreements team to set a start and end date for a tock project being active. This would automatically turn the project on or off depending on the dates, and record the dates as part of the tock data downloaded. \r\n\r\n**Acceptance Criteria:**\r\n\r\n```gherkin\r\nFeature: As a Tock Admin user, I want to mark some projects as temporary, so the system should allow me to specify start and end dates for those projects.\r\n\r\nScenario: Admin can specify project start and end dates for new projects\r\nGiven I am a logged in admin user\r\nWhen I am creating a new project\r\nThen I should see inputs labeled \"Project Start Date\" and \"Project End Date\"\r\nAnd they should have no value by default\r\nAnd the inputs should be such that I am unable to specify an invalid date format (use a date picker or dropdowns for MM/DD/YYYY)\r\nAnd I should be able to save a dates I specify\r\n\r\nScenario: Admin can update start and end dates for existing projects\r\nGiven I am a logged in admin user\r\nAnd I am editing an existing project\r\nAnd that project has a start date or an end date\r\nThen I should see the project start date in the “Project Start Date” field\r\nAnd I should see the project end date in the “Project End Date” field\r\nAnd I should be able to update either date and save my changes\r\n\r\nScenario: Admin sees project start date and project end date in data export\r\nGiven I am a logged in admin user\r\nAnd I there is a project that has a project start date or project end date\r\nWhen I download data for that project\r\nThen the project start date or project end date should be included in the downloaded data\r\n\r\nFeature: As an 18F employee recording my time, I don’t want to mistakenly report time against a project that has not yet started, or has already ended, so the system should prevent me from doing that.\r\n\r\nScenario: 18F employee cannot report time against a project after it’s end date\r\nGiven I am a logged in 18F employee\r\nAnd the current reporting period is ENTIRELY after the project end date \r\nWhen I search for projects to report time against\r\nThen I should NOT see that project\r\n\r\nScenario: 18F employee cannot report time against a project before its start date\r\nGiven I am a logged in 18F employee\r\nAnd the current reporting period is ENTIRELY before the project start date\r\nWhen I search for projects to report time against\r\nThen I should NOT see that project\r\n\r\nFeature: As a consumer of the Tock API, I want to show important information about projects (including start and end dates), so if this data is available in the system, it should be returned in the API response.\r\n\r\nScenario: API returns project start and end dates\r\nGiven that an API request is made for data on a certain project\r\nAnd the requestor is authorized to access the data\r\nAnd the project has a start date and or an end date\r\nWhen the system sends a response\r\nThen the response should contain the project start and end dates\r\n```"},"comment":{"url":"https://api.github.com/repos/18F/tock/issues/comments/224991855","html_url":"https://github.com/18F/tock/issues/352#issuecomment-224991855","issue_url":"https://api.github.com/repos/18F/tock/issues/352","id":224991855,"user":{"login":"scottt2","id":1002266,"avatar_url":"https://avatars.githubusercontent.com/u/1002266?v=3","gravatar_id":"","url":"https://api.github.com/users/scottt2","html_url":"https://github.com/scottt2","followers_url":"https://api.github.com/users/scottt2/followers","following_url":"https://api.github.com/users/scottt2/following{/other_user}","gists_url":"https://api.github.com/users/scottt2/gists{/gist_id}","starred_url":"https://api.github.com/users/scottt2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottt2/subscriptions","organizations_url":"https://api.github.com/users/scottt2/orgs","repos_url":"https://api.github.com/users/scottt2/repos","events_url":"https://api.github.com/users/scottt2/events{/privacy}","received_events_url":"https://api.github.com/users/scottt2/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T18:54:38Z","updated_at":"2016-06-09T18:54:38Z","body":"@joshuabailes Cool! Thanks for this. Clarifies it on my end. Just a bit of work to the serializer, then."}}
{"actor":{"display_login":"scottt2"}}