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

SAW - dashboard history add changed by column #583

Merged
merged 11 commits into from Jul 27, 2016

Conversation

SamWord
Copy link
Contributor

@SamWord SamWord commented Jul 22, 2016

Added changed_by to past statuses, moved update_past_status to controllers instead of sub_service_request model because it now requires current_user, wrote specs to ensure a past_status is being created where it is called.
Need to add spec to sub_service_requests/put_update_spec once it has been merged in.

Did not get previous status changes from the audit trail - that will be extracted into a separate story.

@amcates
Copy link
Collaborator

amcates commented Jul 26, 2016

Fix conflicts and re-review

@@ -386,6 +388,7 @@ def add_service
ssr.update_attribute :status, 'first_draft'
elsif ssr.status.nil? || (ssr.can_be_edited? && ssr_has_changed?(@service_request, ssr) && (ssr.status != 'complete'))
ssr.update_attribute :status, 'draft'
ssr.update_past_status(current_user) unless ssr.status.nil?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to save off past status and then check against it

@amcates amcates merged commit 56e5a5d into master Jul 27, 2016
@amcates amcates deleted the saw-dashboard-history-add-changed-by-column branch July 27, 2016 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants