fisjac opened a new pull request, #27239:
URL: https://github.com/apache/superset/pull/27239

   <!---
   Please write the PR title following the conventions at 
https://www.conventionalcommits.org/en/v1.0.0/
   Example:
   fix(dashboard): load charts correctly
   -->
   
   ### SUMMARY
   <!--- Describe the change below, including rationale and design decisions -->
   When adding notification methods to an alert or report, a user can select 
duplicate methods (select email twice or slack twice). This PR updates the 
behavior to exclude notification methods that are already being used.
   
   Additionally, the delete notification method for additional methods only 
appears after a user has selected a notification method. This PR changes this 
so that the ability to delete additional notification methods is always 
available, even if the method has not yet been selected.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   <!--- Skip this if not applicable -->
   Before:
   
https://www.loom.com/share/7bb024ba1d2a483eb6db44be6c137e32?sid=5620dc39-24aa-4165-8b12-39dddf6b48b5
   
   After:
   
https://www.loom.com/share/c4c9c68f4f0446f18f5e4cbf1064d052?sid=3caccb4a-e2ec-4cd4-989e-d34ec31e6b7e
   ### TESTING INSTRUCTIONS
   <!--- Required! What steps can be taken to manually verify the changes? -->
   Ensure that within either your local superset_config.py or 
docker/pythonpath_dev/superset_config_docker.py files, you have a 
SLACK_API_TOKEN string filled in. It doesn't need to be an active api token, 
just any string.
   
   Open superset and navigate to the alerts and reports section.
   Create an alert or report and open the Notification method collapse section.
   Observe that there are two options for notification method.
   Add a new notification method.
   Check the options of the newly added notification method which should 
exclude the previously added option.
   
   Update the method of the first notification setting, and ensure that 
subsequent notification settings are being removed, and the add notification 
method button reappears.
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [x] Required feature flags: "ALERT_REPORTS": True
   - [x] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to