Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KG - Editable Status Bug #1082

Merged
merged 2 commits into from Aug 22, 2017
Merged

Conversation

kayla-glick
Copy link
Contributor

@kayla-glick kayla-glick commented Aug 21, 2017

https://www.pivotaltracker.com/story/show/150407042

Issue:
first_draft is not shown to users under available statuses or editable statuses. What was happening is that first_draft editable statuses were not being saved when updating an organization because we were not creating inputs for them (which would have had to be hidden on the page all the time).

Solution:
At first I considered making 'first_draft' just a hidden checkbox, but instead of doing that, I decided that moving the check self.status == 'first_draft' into sub_service_request.rb#can_be_edited? was a simpler method. This prevents the various << 'first_draft' calls to add first_draft as an editable status. Also because first_draft is not technically an available status, having first_draft editable status goes against how the editable statuses are supposed to be shown.

@Stuart-Johnson Stuart-Johnson merged commit 571c600 into v3.0.0 Aug 22, 2017
@Stuart-Johnson Stuart-Johnson deleted the kg-editable_status_first_draft_bug branch August 22, 2017 16:13
@kayla-glick kayla-glick restored the kg-editable_status_first_draft_bug branch September 19, 2017 21:08
@kayla-glick kayla-glick deleted the kg-editable_status_first_draft_bug branch September 19, 2017 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants