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

wth - (SPARCDashboard) Validate Calendar when Sending Protocol to Epic #1198

Merged
merged 2 commits into from Dec 15, 2017

Conversation

wtholt
Copy link
Contributor

@wtholt wtholt commented Dec 5, 2017

Background: On SPARCDashboard Admin Edit "Request Details" tab, the "Send to Epic" button sends a whole protocol to Epic. But it's currently showing on requests for admins who don't have services going to Epic, and doesn't validate the service calendar.

Acceptance criteria:
1). The "Send to Epic" button should only show up when a protocol has been selected to be sent to Epic (protocols.selected_for_epic = 1);
2). The "Send to Epic" button should only show up on if the SSR organization has services that goes to Epic (services.send_to_epic = 1);
3). Validation should be put on the "Send to Epic" button, with a popup error message "This protocol has failed to be sent to Epic because of failed validation. Please make sure the service calendar is intact before trying again." when it has a broken calendar;
4). When the validation fails, no protocol (SOAP) message should be sent to Epic.

[#151880302]

Story - https://www.pivotaltracker.com/story/show/151880302

Background: On SPARCDashboard Admin Edit "Request Details" tab, the "Send to Epic" button sends a whole protocol to Epic. But it's currently showing on requests for admins who don't have services going to Epic, and doesn't validate the service calendar.

Acceptance criteria:
1). The "Send to Epic" button should only show up when a protocol has been selected to be sent to Epic (protocols.selected_for_epic = 1);
2). The "Send to Epic" button should only show up on if the SSR organization has services that goes to Epic (services.send_to_epic = 1);
3). Validation should be put on the "Send to Epic" button, with a popup error message "This protocol has failed to be sent to Epic because of failed validation. Please make sure the service calendar is intact before trying again." when it has a broken calendar;
4). When the validation fails, no protocol (SOAP) message should be sent to Epic.

[#151880302]

Story - https://www.pivotaltracker.com/story/show/151880302
@Stuart-Johnson Stuart-Johnson merged commit 8d91722 into v3.1.0 Dec 15, 2017
@Stuart-Johnson Stuart-Johnson deleted the wth-validate-calendar branch December 15, 2017 14:21
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

2 participants