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

WIP: Notification profile #5824

Merged
merged 24 commits into from
Mar 9, 2022
Merged

Conversation

dsever
Copy link
Contributor

@dsever dsever commented Jan 25, 2022

Screencast.2022-01-27.22.09.24.mp4

It implements single template for notifications that is applied automatically during the user creation (GUI only)

@StefanFl can you please take a look...do you have better idea how to do it?

TODO:

  • API support
  • adapt unittest
  • integrations tests

@github-actions github-actions bot added New Migration Adding a new migration file. Take care when merging. ui labels Jan 25, 2022
Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are accessibility issues in these changes.

@@ -69,6 +72,11 @@ <h3> {% if scope == 'system' %}System{% else %}Personal{% endif %} Notification
<td class="centered">
<input type="checkbox" name="{{ field.name }}" {% if c in field.value %}checked{% endif %} value="{{ c }}"/>
</td>
{% elif scope == 'template' and c in enabled_notifications and c != 'msteams' %}
<td class="centered">
<input type="checkbox" name="{{ field.name }}" {% if c in field.value %}checked{% endif %} value="{{ c }}"/>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

Copy link
Member

@StefanFl StefanFl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small comment, the rest is great.

dojo/templates/dojo/notifications.html Outdated Show resolved Hide resolved
@github-actions github-actions bot added apiv2 docker docs parser settings_changes Needs changes to settings.py based on changes in settings.dist.py included in this PR unittests labels Feb 1, 2022
@github-actions github-actions bot removed settings_changes Needs changes to settings.py based on changes in settings.dist.py included in this PR unittests docs docker parser apiv2 labels Feb 1, 2022
@github-actions github-actions bot added the apiv2 label Feb 4, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2022

Conflicts have been resolved. A maintainer will review the pull request shortly.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2022

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2022

Conflicts have been resolved. A maintainer will review the pull request shortly.

@StefanFl
Copy link
Member

@dsever Is this PR still a draft or ready for review?

@dsever
Copy link
Contributor Author

dsever commented Feb 22, 2022

@dsever Is this PR still a draft or ready for review?

sorry @StefanFl now i see the comment, it is still draft. I still have tests to fix, and introduce new tests for API calls

@dsever dsever marked this pull request as ready for review March 9, 2022 12:43
@dsever
Copy link
Contributor Author

dsever commented Mar 9, 2022

@StefanFl I think it is ready.

Copy link
Contributor

@Maffooch Maffooch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty solid to me

@StefanFl
Copy link
Member

StefanFl commented Mar 9, 2022

I will have a look at it as soon as possible

Copy link
Member

@StefanFl StefanFl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, great work @dsever

@StefanFl StefanFl merged commit 6fee021 into DefectDojo:dev Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apiv2 integration_tests New Migration Adding a new migration file. Take care when merging. ui unittests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants