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

Feature/334 report email confirmation form #395

Merged
merged 19 commits into from
Jul 21, 2022

Conversation

Elaine-Krauss-TCG
Copy link
Contributor

@Elaine-Krauss-TCG Elaine-Krauss-TCG commented Jul 19, 2022

#334

Paired with this API branch

Re: Cloudsonar feedback:

The code smell is a block that was commented out on Mitchell's request. It contained a line that is probably unnecessary now that we are collecting the change of address at the end of the report instead of the beginning. Mitchell wants it preserved in a comment in case this proves incorrect.

The security vulnerability is the regex that provides simple checking for whether or not an email is valid. Supposedly it could be used in a Denial-of-service attack? A saved email could be difficult for the local validator in the browser to parse later.

I don't think the fear is relevant given the small maximum length allowed.

Copy link
Contributor

@mjtravers mjtravers left a comment

Choose a reason for hiding this comment

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

See inline comments. Feel free to debate my recommendations.
Unit testing is a couple of percentage points shy of 80%

Copy link
Contributor

@mjtravers mjtravers left a comment

Choose a reason for hiding this comment

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

This is good. I like the way you remembered to dispatch to the store to refresh the committee account info and make sure the reportCodeList has data.
Only request is to expand the unit testing to get it over 80%:
image

Oh and one ANDI issue. The other issues are with the left nav and can be ignored but here is a label issue on the email input elements of the form:
image

@sonarcloud
Copy link

sonarcloud bot commented Jul 21, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 1 Code Smell

73.4% 73.4% Coverage
3.5% 3.5% Duplication

@mjtravers mjtravers merged commit 75f5704 into develop Jul 21, 2022
@mjtravers mjtravers deleted the feature/334-report-email-confirmation-form branch July 21, 2022 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants