{"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":16,"created_at":"2016-05-02T19:12:13Z","updated_at":"2016-06-09T18:18:35Z","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/224981851","html_url":"https://github.com/18F/tock/issues/352#issuecomment-224981851","issue_url":"https://api.github.com/repos/18F/tock/issues/352","id":224981851,"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},"created_at":"2016-06-09T18:18:34Z","updated_at":"2016-06-09T18:18:34Z","body":"   1. Can start date also be null (allows for indefinite and avoids gnarly\n   migration)?\n\nYes.\n\n   1. Export doesn't seem to be in admin. Is adding that functionality\n   assumed Feature 1, Scenario 3?\n\nI don't think this is contemplated. Currently, I download a csv of the\ndata. @mtorres253 thoughts?\n\nJoshua Bailes\n18F Acquisitions/Agreements Lead\nJoshua.Bailes@gsa.gov\n202-550-6659\n18F.gsa.gov <https://18f.gsa.gov/>\n\nOn Thu, Jun 9, 2016 at 12:13 PM, Tyler Scott <notifications@github.com>\nwrote:\n\n> Friendly bump, @joshuabailes <https://github.com/joshuabailes>\n>\n> *TL;DR*\n>\n>    1. Can start date also be null (allows for indefinite and avoids\n>    gnarly migration)?\n>    2. Export doesn't seem to be in admin. Is adding that functionality\n>    assumed Feature 1, Scenario 3?\n>\n> Thanks!\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/18F/tock/issues/352#issuecomment-224945427>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe/ALr-12UkuNdxtDlMbHrzlIIz6TYJxXXLks5qKDuNgaJpZM4IVn76>\n> .\n>\n"}}
{"actor":{"display_login":"joshuabailes"}}