1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/website/docs
weekwith.me d75c63b6e8
feat: Add PROJECT_ARCHIVED event to send message to Slack (#8848)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->

## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

### Summary

- Add `PROJECT_ARCHIVED` event on `EVENT_MAP` to use
- Add a test case for `PROJECT_ARCHIVED` event formatting 
- Add `PROJECT_ARCHIVED` event when users choose which events they send
to Slack
- Fix Slack integration document by adding `PROJECT_ARCHIVED`

### Example

The example message looks like the image below. I covered my email with
a black rectangle to protect my privacy 😄
The link refers `/projects-archive` to see archived projects.

<img width="529" alt="Slack message example"
src="https://github.com/user-attachments/assets/938c639f-f04a-49af-9b4a-4632cdea9ca7">

## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

I considered the reason why Unleash didn't implement to send
`PROJECT_ARCHIVED` message to Slack integration.

One thing I assumed that it is impossible to create a new project with
open source codes, which means it is only enabled in the enterprise
plan. However,
[document](https://docs.getunleash.io/reference/integrations/slack-app#events)
explains that users can send `PROJECT_CREATED` and `PROJECT_DELETED`
events to Slack, which are also available only in the enterprise plan,
hence it means we need to embrace all worthwhile events.

I think it is reasonable to add `PROJECT_ARCHIVED` event to Slack
integration because users, especially operators, need to track them
through Slack by separating steps, `_CREATED`, `_ARCHIVED`, and
`_DELETED`.
2024-11-25 14:33:50 +00:00
..
contributing
feature-flag-tutorials 11 principles page improvements (#8704) 2024-11-12 13:44:45 +01:00
how-to Terraform provider docs (#8598) 2024-11-07 17:56:16 +01:00
migrations
reference feat: Add PROJECT_ARCHIVED event to send message to Slack (#8848) 2024-11-25 14:33:50 +00:00
topics 11 principles page improvements (#8704) 2024-11-12 13:44:45 +01:00
understanding-unleash Introduce availability page in the docs (#8644) 2024-11-06 12:43:03 +01:00
unleash-academy Introduce availability page in the docs (#8644) 2024-11-06 12:43:03 +01:00
using-unleash FedRAMP docs (#8815) 2024-11-22 10:44:19 +01:00
availability.md Introduce availability page in the docs (#8644) 2024-11-06 12:43:03 +01:00
client-specification.md
quickstart.mdx Introduce availability page in the docs (#8644) 2024-11-06 12:43:03 +01:00
welcome.md Update titles, descriptions, and slugs based on ercule feedback (#8509) 2024-10-24 16:09:57 +02:00