mitodl / ocw-studio

Open Source Courseware authoring tool
BSD 3-Clause "New" or "Revised" License
9 stars 3 forks source link

Notify users when a preview/publish task has been successfully submitted/completed #370

Closed mbertrand closed 3 years ago

mbertrand commented 3 years ago

As the final step in the concourse-ci pipeline, a webhook should be sent back to ocw-studio. This will trigger a notification email to the site admins that the draft website is ready to view. (Global admins too?)

The same should be done for "Publish" when that button is added to the front end.

There is currently a Website.publish_date field that is populated as soon as a publish request is made to the REST API. That should be changed so that it's updated after the pipeline finishes.

A Website.preview_date field should also be added and updated after a preview pipeline run successfully completes.

mbertrand commented 3 years ago

Potential resource for concourse: https://github.com/aequitas/concourse-http-api-resource