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

BHBC-1952 #897

Merged
merged 16 commits into from
Dec 23, 2022
Merged

BHBC-1952 #897

merged 16 commits into from
Dec 23, 2022

Conversation

AlfredRosenthal
Copy link
Contributor

Overview

Links to Jira tickets

BHBC-1952

Description of relevant changes

  • Added new file/ script in database to convert JSON objects into validation schema

PR Checklist

A list of items that are good to consider when making any changes.

Note: this list is not exhaustive, and not all items are always applicable.

Code

  • New files/classes/functions have appropriately descriptive names and comment blocks to describe their use/behaviour
  • I have avoided duplicating code when possible, moving re-usable pieces into functions
  • I have avoided hard-coding values where possible and moved any re-usable constants to a constants file
  • My code is as flat as possible (avoids deeply nested if/else blocks, promise chains, etc)
  • My code changes account for null/undefined values and handle errors appropriately
  • My code uses types/interfaces to help describe values/parameters/etc, help ensure type safety, and improve readability

Style

  • My code follows the established style conventions
  • My code uses native material-ui components/icons/conventions when possible

Documentation

  • I have commented my code sufficiently, such that an unfamiliar developer could understand my code
  • I have added/updated README's and related documentation, as needed

Tests

  • I have added/updated unit tests for any code I've added/updated
  • I have added/updated the Postman requests/tests to account for any API endpoints I've added/updated

Linting/Formatting

  • I have run the linter and fixed any issues, as needed
    See the lint commands in package.json
  • I have run the formatter and fixed any issues, as needed
    See the format commands in package.json

SonarCloud

  • I have addressed all SonarCloud Bugs, Vulnerabilities, Security Hotspots, and Code Smells

@AlfredRosenthal AlfredRosenthal marked this pull request as ready for review December 21, 2022 18:38
@codecov
Copy link

codecov bot commented Dec 21, 2022

Codecov Report

Merging #897 (57a9168) into dev (97865c1) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##              dev     #897      +/-   ##
==========================================
- Coverage   64.91%   64.90%   -0.01%     
==========================================
  Files         351      351              
  Lines       11163    11163              
  Branches     1986     1986              
==========================================
- Hits         7246     7245       -1     
  Misses       3546     3546              
- Partials      371      372       +1     
Impacted Files Coverage Δ
...d}/survey/{surveyId}/observation/submission/get.ts 88.37% <ø> (ø)
api/src/services/validation-service.ts 84.97% <ø> (ø)
api/src/utils/media/csv/csv-file.ts 72.54% <ø> (ø)
...rc/utils/media/csv/validation/csv-row-validator.ts 88.52% <0.00%> (-0.82%) ⬇️
...p/src/features/surveys/view/SurveyObservations.tsx 37.83% <ø> (ø)
...src/utils/media/xlsx/validation/xlsx-validation.ts 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@NickPhura NickPhura changed the title Bhbc 1952 BHBC-1952 Dec 22, 2022
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@AlfredRosenthal AlfredRosenthal merged commit 5cc843e into dev Dec 23, 2022
@AlfredRosenthal AlfredRosenthal deleted the BHBC-1952 branch December 23, 2022 18:20
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