-
-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visibility of automatically created analyses because of reflex rules actions #242
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Espurna , your turn
return DisplayList([ | ||
('default', 'Visibility (default)'), | ||
('visible', 'Show in Report'), | ||
('invisible', 'Hide In Report')]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be:
return DisplayList([
('default', _('Visibility (default)')),
('visible', _('Show in Report'))),
('invisible', _('Hide In Report')))])
Otherwise, these strings will never appear translated.
@@ -427,7 +435,17 @@ def getActionVoc(self): | |||
return DisplayList([ | |||
('repeat', 'Repeat'), | |||
('duplicate', 'Duplicate'), | |||
('setresult', 'Set result')]) | |||
('setresult', 'Set result'), | |||
('setvisibility', 'Set Visibility')]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return DisplayList([
('repeat', _('Repeat')),
('duplicate', _('Duplicate')),
('setresult', _('Set result')),
('setvisibility', _('Set Visibility'))])
Currently, all analyses of AR are visible/invisible in final report depending of their Default AS settings. In some cases it is not necessary to show original (base) analysis or other duplicated analyses which don't contain final result. This pull request aims to let users define visibility of duplicated/repeated analyses in Reflex Rule level. However, it is possible to update that value from 'Manage Results' view with enough privileges. For more information about visibility settings of analyses, please see #241 .
With this Pull Request new action- 'Set visibility', will be added to the actions list of Reflex Rules. Moreover, for 'Repeat' and 'Duplicate' actions (which they create new analysis) there will be new select field as well to show or hide new analysis.
In the attached image you can see a simple example of this new feature.