-
Notifications
You must be signed in to change notification settings - Fork 5
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: Feat/wdfGrantLetter #4771
base: test
Are you sure you want to change the base?
WIP: Feat/wdfGrantLetter #4771
Conversation
const adobeSignBaseUrl = config.get('adobeSign.apiBaseUrl'); | ||
const adobeApiKey = config.get('adobeSign.apiKey'); | ||
|
||
module.exports.createAgreement = async (claimData, isNationalOrg) => { |
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.
Function createAgreement
has 72 lines of code (exceeds 25 allowed). Consider refactoring.
@@ -0,0 +1,50 @@ | |||
'use strict'; | |||
|
|||
module.exports = function (sequelize, DataTypes) { |
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.
Function exports
has 45 lines of code (exceeds 25 allowed). Consider refactoring.
This pull request fixes 1 alert when merging 6bb9663 into 676edf2 - view on LGTM.com fixed alerts:
|
This pull request fixes 1 alert when merging bcf617d into 676edf2 - view on LGTM.com fixed alerts:
|
Codecov Report
@@ Coverage Diff @@
## test #4771 +/- ##
==========================================
- Coverage 51.66% 43.49% -8.17%
==========================================
Files 975 409 -566
Lines 38308 17407 -20901
Branches 4561 0 -4561
==========================================
- Hits 19793 7572 -12221
+ Misses 14510 9835 -4675
+ Partials 4005 0 -4005
Continue to review full report at Codecov.
|
const adobeSignBaseUrl = config.get('adobeSign.apiBaseUrl'); | ||
const adobeApiKey = config.get('adobeSign.apiKey'); | ||
|
||
module.exports.createAgreement = async (claimData) => { |
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.
Function createAgreement
has 64 lines of code (exceeds 25 allowed). Consider refactoring.
This pull request introduces 1 alert and fixes 1 when merging b4d4bb6 into 676edf2 - view on LGTM.com new alerts:
fixed alerts:
|
Co-authored-by: M Daley <[email protected]>
@@ -0,0 +1,54 @@ | |||
'use strict'; | |||
|
|||
module.exports = function (sequelize, DataTypes) { |
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.
Function exports
has 49 lines of code (exceeds 25 allowed). Consider refactoring.
This pull request introduces 1 alert and fixes 1 when merging 21bfebc into 676edf2 - view on LGTM.com new alerts:
fixed alerts:
|
Co-authored-by: M Daley <[email protected]>
@@ -0,0 +1,57 @@ | |||
'use strict'; | |||
|
|||
module.exports = function (sequelize, DataTypes) { |
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.
Function exports
has 52 lines of code (exceeds 25 allowed). Consider refactoring.
const DevelopmentFundGrants = require('../../../models/developmentFundGrants'); | ||
const { createAgreement, queryAgreementStatus } = require('./adobeSign'); | ||
|
||
const generateDevelopmentFundGrantLetter = async (req, res, next) => { |
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.
Function generateDevelopmentFundGrantLetter
has 32 lines of code (exceeds 25 allowed). Consider refactoring.
This pull request introduces 1 alert and fixes 1 when merging 027798b into 676edf2 - view on LGTM.com new alerts:
fixed alerts:
|
@@ -0,0 +1,68 @@ | |||
'use strict'; | |||
|
|||
module.exports = function (sequelize, DataTypes) { |
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.
Function exports
has 62 lines of code (exceeds 25 allowed). Consider refactoring.
This pull request introduces 1 alert and fixes 1 when merging 0cda855 into 676edf2 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 1 alert and fixes 1 when merging 200c139 into 676edf2 - view on LGTM.com new alerts:
fixed alerts:
|
@@ -0,0 +1,88 @@ | |||
'use strict'; | |||
|
|||
module.exports = function (sequelize, DataTypes) { |
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.
Function exports
has 82 lines of code (exceeds 25 allowed). Consider refactoring.
const models = require('../../../models'); | ||
const { createAgreement, queryAgreementStatus } = require('./adobeSign'); | ||
|
||
const generateDevelopmentFundGrantLetter = async (req, res, next) => { |
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.
Function generateDevelopmentFundGrantLetter
has 28 lines of code (exceeds 25 allowed). Consider refactoring.
This pull request introduces 1 alert and fixes 1 when merging 700b7b5 into 676edf2 - view on LGTM.com new alerts:
fixed alerts:
|
Co-authored-by: M Daley <[email protected]>
Co-authored-by: M Daley <[email protected]>
This pull request introduces 2 alerts and fixes 1 when merging b89076d into 676edf2 - view on LGTM.com new alerts:
fixed alerts:
|
Co-authored-by: M Daley <[email protected]>
const adobeSignBaseUrl = config.get('adobeSign.apiBaseUrl'); | ||
const adobeApiKey = config.get('adobeSign.apiKey'); | ||
|
||
module.exports.createAgreement = async (claimData) => { |
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.
Function createAgreement
has 64 lines of code (exceeds 25 allowed). Consider refactoring.
const models = require('../../../models'); | ||
const { createAgreement, queryAgreementStatus } = require('../../../utils/adobeSign'); | ||
|
||
const generateDevelopmentFundGrantLetter = async (req, res, next) => { |
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.
Function generateDevelopmentFundGrantLetter
has 28 lines of code (exceeds 25 allowed). Consider refactoring.
This pull request introduces 2 alerts and fixes 1 when merging 0e8c872 into 676edf2 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 2 alerts and fixes 1 when merging 9edd46d into 676edf2 - view on LGTM.com new alerts:
fixed alerts:
|
@@ -0,0 +1,83 @@ | |||
'use strict'; | |||
|
|||
module.exports = function (sequelize, DataTypes) { |
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.
Function exports
has 77 lines of code (exceeds 25 allowed). Consider refactoring.
This pull request introduces 2 alerts and fixes 1 when merging 763a0ec into 676edf2 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 2 alerts and fixes 1 when merging 38b8551 into 676edf2 - view on LGTM.com new alerts:
fixed alerts:
|
@@ -0,0 +1,105 @@ | |||
'use strict'; | |||
|
|||
module.exports = function (sequelize, DataTypes) { |
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.
Function exports
has 97 lines of code (exceeds 25 allowed). Consider refactoring.
const models = require('../../../models'); | ||
const { createAgreement, queryAgreementStatus } = require('../../../utils/adobeSign'); | ||
|
||
const generateDevelopmentFundGrantLetter = async (req, res, next) => { |
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.
Function generateDevelopmentFundGrantLetter
has 27 lines of code (exceeds 25 allowed). Consider refactoring.
}); | ||
}; | ||
|
||
DevelopmentFundGrants.updateStatus = async function (establishmentId, status) { |
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.
Similar blocks of code found in 2 locations. Consider refactoring.
This pull request introduces 2 alerts and fixes 1 when merging 52235ff into 676edf2 - view on LGTM.com new alerts:
fixed alerts:
|
Code Climate has analyzed commit 0e58b43 and detected 4 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
This pull request introduces 2 alerts and fixes 1 when merging 0e58b43 into 676edf2 - view on LGTM.com new alerts:
fixed alerts:
|
Work done
Tests
Does this PR include tests for the changes introduced?