Skip to content
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

Merged
merged 6 commits into from
Sep 1, 2017

Conversation

nihadness
Copy link
Contributor

@nihadness nihadness commented Sep 1, 2017

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.

image

@nihadness nihadness requested a review from xispa September 1, 2017 09:03
@xispa xispa requested a review from Espurna September 1, 2017 09:56
Copy link
Member

@xispa xispa left a 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')])
Copy link
Member

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')])
Copy link
Member

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'))])

@xispa xispa changed the title NMRL-190 Show-hide duplicated analyses NMRL-190 Automate visibility of analyses based on reflex rules Sep 1, 2017
@xispa xispa changed the title NMRL-190 Automate visibility of analyses based on reflex rules NMRL-190 Visibility of analyses automatically generated because of reflex rules actions Sep 1, 2017
@xispa xispa changed the title NMRL-190 Visibility of analyses automatically generated because of reflex rules actions NMRL-190 Visibility of automatically created analyses because of reflex rules actions Sep 1, 2017
@Espurna Espurna merged commit d078d4c into wip Sep 1, 2017
@xispa xispa deleted the feature/NMRL-190-RR-visibbility-in-reports branch September 1, 2017 15:19
@xispa xispa changed the title NMRL-190 Visibility of automatically created analyses because of reflex rules actions Visibility of automatically created analyses because of reflex rules actions Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants