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

Adding RFQs to solicitation query #167

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions server/certs/cert_location.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Place holder for where the certs will be when deployed.
2 changes: 1 addition & 1 deletion server/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ module.exports = {
"ENERGY, DEPARTMENT OF":"Department of Energy",
"MILLENNIUM CHALLENGE CORPORATION":"Millennium Challenge Corporation"
},
VisibleNoticeTypes : ['Solicitation', 'Combined Synopsis/Solicitation'],
VisibleNoticeTypes : ['Solicitation', 'Combined Synopsis/Solicitation', 'RFQ'],
//"minPredictionCutoffDate" : "2020-02-01T00:00:00.000Z",
"predictionCutoffDays" : 60,
"updatePredictionTableMaxRunTime" : 10,
Expand Down
8 changes: 8 additions & 0 deletions server/routes/auth.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,17 @@ function updateUser(login_gov_data, user) {
}
}

function capitalize(s)
{
return s[0].toUpperCase() + s.slice(1);
}

function createUser(loginGovUser) {
let now = new Date()
let date = (now.getMonth() + 1) + "-" + now.getDate() + "-" + now.getFullYear()

//console.log("Login.gov user:", loginGovUser)

let user_data = {
'firstName': loginGovUser.given_name || null,
'lastName': loginGovUser.family_name || null,
Expand Down
2 changes: 1 addition & 1 deletion server/routes/noticeType.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
getNoticeTypes : function(req, res) {

return res.status(200).send(
configuration.getConfig("VisibleNoticeTypes", ['Solicitation', 'Combined Synopsis/Solicitation'])
configuration.getConfig("VisibleNoticeTypes", ['Solicitation', 'Combined Synopsis/Solicitation', 'RFQ'])
)

//
Expand Down
2 changes: 1 addition & 1 deletion server/routes/prediction.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ async function getPredictions (filter, user) {
}

// filter to allowed notice types
let types = configuration.getConfig("VisibleNoticeTypes", ['Solicitation', 'Combined Synopsis/Solicitation'])
let types = configuration.getConfig("VisibleNoticeTypes", ['Solicitation', 'Combined Synopsis/Solicitation', 'RFQ'])

attributes.where = {
noticeType: {
Expand Down