Question about custom plugin and untagging
See original GitHub issueIssue Summary I try to tag and untag within a custom plugin. Tagging is working, but untagging not. Am I doing something wrong?
def take_action(self, alert, action, text, **kwargs):
# mark for feedback
if action == FEEDBACK_ACTION:
alert.status = FEEDBACK_STATUS
if FEEDBACK_TAG in alert.tags:
alert.untag([FEEDBACK_TAG])
text = FEEDBACK_LOG_REMOVE
else:
alert.tag([FEEDBACK_TAG])
text = FEEDBACK_LOG
# ...
return alert, action, text
It’s going into the right if branch but the untag isn’t working.
Environment
-
OS: Linux
-
API version: 7.4.1
-
Deployment: Docker
-
Database: MongoDB
-
Server config: Auth enabled? Yes Auth provider? OpenID Customer views? Yes
-
web UI version: 7.4.1
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
TaxoPress is the WordPress Tag, Category, and Taxonomy ...
TaxoPress allows you to create and manage Tags, Categories, and all your WordPress ... all the taxonomies created by WordPress and your plugins...
Read more >6 Questions To Ask Before You Install A WordPress Plugin
Questions to Ask Yourself before Installing a WordPress Plugin · Do I need this plugin? · Can I do what I need without...
Read more >Solve Problems With Plugins
Go to Plugins → Installed Plugins and deactivate the plugin(s) you determined to be the source of the issue. You can leave the...
Read more >Troubleshooting the SketchUp Plugin
Move all envelope geometry to Layer0/Untagged (default layer). These steps should generate cove.tool layers, if some layers are missing check FAQ #3. 2....
Read more >Importing Operations Director custom questions - TechDocs
Once the questions are published, they are available in the security assessment questionnaire. Contents of the sample CSV file. Following are the columns ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Either late this week or early next.
Ok, to you have a planed date for the next release?