Trashing space doesn't generate `page_trashed` and `blog_trashed` webhook event

XMLWordPrintable

    • Minor

      Issue Summary

      When space is moved to trash, it doesn't trigger `page_trashed` and `blog_trashed` events for pages and blogs that the space contains. Only `space_soft_deleted` webhook event is generated.
      Currently, `page_trashed` and `blog_trashed` events are only generated when a page or blog is purged from a spaces content trash.

      In comparison, when a space is deleted it triggers `space_removed` as well as `page_removed` and `blog_removed` webhook events. So, when a space is trashed webhook events should fire similarly.

      Steps to Reproduce

      1. Register the following webhooks with a connect app
           "webhooks": [
              {
                "event": "space_soft_deleted",
                "url": "/api/webhook"
              },
              {
                "event": "blog_trashed",
                "url": "/api/webhook"
              },
              {
                "event": "page_trashed",
                "url": "/api/webhook"
              },
              {
                "event": "space_removed",
                "url": "/api/webhook"
              },
              {
                "event": "blog_removed",
                "url": "/api/webhook"
              },
              {
                "event": "page_removed",
                "url": "/api/webhook"
              }
            ]
        
      2. Send a space to trash that contains blogs and pages.

      Expected Results

      `space_soft_deleted` event should be generated and `page_trashed` and `blog_trashed` events should also generate.

      Actual Results

      Only `space_soft_deleted` webhook event is generated.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Unassigned
            Reporter:
            Nashid Farhad
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: