We need to resolve #4 first.
QuerySuggestionRewritingPath will disable the Add to mine button for those rules already in the user's app's rule base.
Then we can modify the Add to mine button not to populate the query-pair but the rule itself to the RewritingRuleModal for adding a new rule.
Also, we need to check if a suggested rule already exists in the user's rule base but just not enabled for the app, the Add to mine button should be a Enable for this app button.
We need to resolve #4 first.
QuerySuggestionRewritingPathwill disable theAdd to minebutton for those rules already in the user's app's rule base.Then we can modify the
Add to minebutton not to populate the query-pair but the rule itself to theRewritingRuleModalfor adding a new rule.Also, we need to check if a suggested rule already exists in the user's rule base but just not enabled for the app, the
Add to minebutton should be aEnable for this appbutton.