Skip to content

Release to support Connect 2.4.5 #174

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

Merged
merged 12 commits into from
Aug 31, 2018
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
3 changes: 2 additions & 1 deletion config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@
"AUTH0_CLIENT_ID": "AUTH0_CLIENT_ID",
"AUTH0_CLIENT_SECRET": "AUTH0_CLIENT_SECRET",
"AUTH0_AUDIENCE": "AUTH0_AUDIENCE",
"TOKEN_CACHE_TIME" : "TOKEN_CACHE_TIME"
"TOKEN_CACHE_TIME" : "TOKEN_CACHE_TIME",
"whitelistedOriginsForUserIdAuth": "WHITELISTED_ORIGINS_FOR_USERID_AUTH"
}
3 changes: 2 additions & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@
"AUTH0_CLIENT_SECRET": "",
"AUTH0_AUDIENCE": "",
"AUTH0_URL": "",
"TOKEN_CACHE_TIME": ""
"TOKEN_CACHE_TIME": "",
"whitelistedOriginsForUserIdAuth": "[\"https:\/\/topcoder-newauth.auth0.com\/\",\"https:\/\/api.topcoder-dev.com\"]"
}
1 change: 1 addition & 0 deletions config/sample.local.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ if (process.env.NODE_ENV === 'test') {
indexName: 'projects',
docType: 'projectV4'
},
whitelistedOriginsForUserIdAuth: "[\"\"]",
};
}
module.exports = config;
3 changes: 2 additions & 1 deletion config/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
"maxPoolSize": 50,
"minPoolSize": 4,
"idleTimeout": 1000
}
},
"whitelistedOriginsForUserIdAuth": "[\"\"]"
}
27 changes: 27 additions & 0 deletions migrations/20180824_milestone_templates_metadata.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
--
-- UPDATE EXISTING TABLES:
-- product_milestone_templates:
-- removed constraint `product_milestone_templates_productTemplateId_fkey`
-- changed column `productTemplateId` to `referenceId`
-- added column `reference`
-- added column `metadata`
-- changed table name to `milestone_templates`

--
-- product_milestone_templates
--
ALTER TABLE product_milestone_templates DROP CONSTRAINT "product_milestone_templates_productTemplateId_fkey";

ALTER TABLE product_milestone_templates RENAME COLUMN "productTemplateId" TO referenceId;

ALTER TABLE product_milestone_templates ADD COLUMN "reference" character varying(45);
UPDATE product_milestone_templates set reference='productTemplate' where reference is null;
ALTER TABLE product_milestone_templates ALTER COLUMN "reference" SET NOT NULL;

ALTER TABLE product_milestone_templates ADD COLUMN "metadata" json;
UPDATE product_milestone_templates set metadata='{}' where metadata is null;
ALTER TABLE product_milestone_templates ALTER COLUMN "metadata" SET NOT NULL;

ALTER TABLE product_milestone_templates RENAME TO milestone_templates;


9 changes: 9 additions & 0 deletions migrations/20180827_project_phases_order.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--
-- UPDATE EXISTING TABLES:
-- project_phases:
-- added column `order`

--
-- project_phases
--
ALTER TABLE project_phases ADD COLUMN "order" integer NULL;
Loading