1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/website/docs/reference
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
..
api/legacy/unleash Introduce availability page in the docs (#8644) 2024-11-06 12:43:03 +01:00
integrations feat: Add PROJECT_ARCHIVED event to send message to Slack (#8848) 2024-11-25 14:33:50 +00:00
sdks Docusaurus v3 (#8485) 2024-10-30 11:55:51 +00:00
actions.md Fix incorrect md file extensions in docs (#8462) 2024-10-17 11:52:02 +02:00
activation-strategies.md Fix incorrect md file extensions in docs (#8462) 2024-10-17 11:52:02 +02:00
api-tokens-and-client-keys.mdx Introduce availability page in the docs (#8644) 2024-11-06 12:43:03 +01:00
applications.mdx Fix incorrect md file extensions in docs (#8462) 2024-10-17 11:52:02 +02:00
banners.md Align availability information in the docs (#8177) 2024-10-03 10:33:22 +02:00
change-requests.mdx Fix incorrect md file extensions in docs (#8462) 2024-10-17 11:52:02 +02:00
command-menu.md Align availability information in the docs (#8177) 2024-10-03 10:33:22 +02:00
custom-activation-strategies.md docs: suggest to use strategy constraints instead of custom strategies (#4215) 2023-07-11 11:35:58 +02:00
environments.md Update and restructure environments (#8496) 2024-10-22 17:55:11 +02:00
events.mdx Restructure features documentation (#8394) 2024-10-16 13:59:30 +02:00
feature-toggle-variants.md Fix incorrect md file extensions in docs (#8462) 2024-10-17 11:52:02 +02:00
feature-toggles.mdx Introduce availability page in the docs (#8644) 2024-11-06 12:43:03 +01:00
front-end-api.md Align availability information in the docs (#8177) 2024-10-03 10:33:22 +02:00
impression-data.md Fix incorrect md file extensions in docs (#8462) 2024-10-17 11:52:02 +02:00
insights.mdx Introduce availability page in the docs (#8644) 2024-11-06 12:43:03 +01:00
login-history.md Align availability information in the docs (#8177) 2024-10-03 10:33:22 +02:00
maintenance-mode.mdx Align availability information in the docs (#8177) 2024-10-03 10:33:22 +02:00
network-view.mdx Introduce availability page in the docs (#8644) 2024-11-06 12:43:03 +01:00
notifications.md Introduce availability page in the docs (#8644) 2024-11-06 12:43:03 +01:00
playground.mdx Fix incorrect md file extensions in docs (#8462) 2024-10-17 11:52:02 +02:00
project-collaboration-mode.md Fix incorrect md file extensions in docs (#8462) 2024-10-17 11:52:02 +02:00
projects.mdx Introduce availability page in the docs (#8644) 2024-11-06 12:43:03 +01:00
public-signup.mdx docs: custom root roles (#4451) 2023-08-10 08:21:58 +01:00
rbac.md Introduce availability page in the docs (#8644) 2024-11-06 12:43:03 +01:00
resource-limits.mdx Introduce availability page in the docs (#8644) 2024-11-06 12:43:03 +01:00
scim.md Align availability information in the docs (#8177) 2024-10-03 10:33:22 +02:00
search-operators.md Align availability information in the docs (#8177) 2024-10-03 10:33:22 +02:00
segments.mdx Introduce availability page in the docs (#8644) 2024-11-06 12:43:03 +01:00
service-accounts.md Events docs revamp (#8360) 2024-10-08 12:11:05 +02:00
signals.md Align availability information in the docs (#8177) 2024-10-03 10:33:22 +02:00
sso.md Fix incorrect md file extensions in docs (#8462) 2024-10-17 11:52:02 +02:00
stickiness.md Fix incorrect md file extensions in docs (#8462) 2024-10-17 11:52:02 +02:00
strategy-constraints.mdx Fix incorrect md file extensions in docs (#8462) 2024-10-17 11:52:02 +02:00
strategy-variants.mdx Fix incorrect md file extensions in docs (#8462) 2024-10-17 11:52:02 +02:00
tags.md Align availability information in the docs (#8177) 2024-10-03 10:33:22 +02:00
technical-debt.md Restructure features documentation (#8394) 2024-10-16 13:59:30 +02:00
terraform.mdx 11 principles page improvements (#8704) 2024-11-12 13:44:45 +01:00
unleash-context.md Fix incorrect md file extensions in docs (#8462) 2024-10-17 11:52:02 +02:00
whats-new-v4.md Fix incorrect md file extensions in docs (#8462) 2024-10-17 11:52:02 +02:00