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

Publish production entity #76

Merged
merged 6 commits into from
Nov 3, 2017
Merged

Conversation

MKodde
Copy link
Contributor

@MKodde MKodde commented Nov 3, 2017

Review notes
A database migration was added.

Todo

  • Integration test the CommandHandler
  • Implement feature to edit published production form
  • Add extra information to service mail message

Checklist

  • Tests are written
  • Travis build is passing
  • Git history is clean
  • Issue in Pivotal is updated

@MKodde MKodde force-pushed the feature/publication-of-production-entity branch 4 times, most recently from 3bdf2f1 to 1f775d3 Compare November 3, 2017 13:43

return $this->redirectToRoute('service_published');
}
return $this->publishEnity($entity, $flashBag);
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo!

@MKodde MKodde changed the title WIP: Publish production entity Publish production entity Nov 3, 2017
@MKodde MKodde force-pushed the feature/publication-of-production-entity branch from d44a669 to eb69d97 Compare November 3, 2017 14:09
MKodde and others added 6 commits November 3, 2017 15:15
For now the Publishing of entities where always aimed at the test env.
In the upcomming changes, the entities can also be published to
production. To facilitate this change, the current name of the publish
command/handler and tests where misleading. And have been change to
more clearly indicate the test environment is being targeted.
The entity needs to be set to published when a production entity has
been published.
 - A new command was introduced to cover the publication to production
 - The command is handled by a new command handler
 - This command handler sends the confirmation mail and sets the entity
   status to 'published'
 - The Entity edit controller is tasked with creating the correct mail
   message that is sent with the publish command
 - The published thank you actions have been moved to their own
   controller.
 - A new web test was added to test the production publish flow also
   verifying the sending of the publishing request mail
An edit of a published production form is a valid action in the sp
dashboard. To facilitate this, the entity status is reset to draft
before editing it.
Additional information is passed along in the production request message
to servicedesk.
@MKodde MKodde force-pushed the feature/publication-of-production-entity branch from eb69d97 to 59382c0 Compare November 3, 2017 14:17
@MKodde MKodde merged commit 6fc9ea9 into master Nov 3, 2017
@MKodde MKodde deleted the feature/publication-of-production-entity branch November 3, 2017 14:24
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.

2 participants