mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01:00
[github] code spaces: tweaks from initial feedback (#32834)
* [github] code spaces: add more standard users with a common password * [github] code spaces: automatically share dev-env with Overleaf org * [github] code spaces: merge split tests rather than replacing them * [github] code spaces: ts-check the setup script in web GitOrigin-RevId: 1a86ac7e0304d47e68290352f58a0e193eed1d77
This commit is contained in:
@@ -85,8 +85,10 @@ async function deleteUser(email) {
|
||||
await UserDeleter.promises.expireDeletedUser(user._id)
|
||||
}
|
||||
|
||||
export async function createProjectWithOldHistoryId(userId) {
|
||||
const projectName = 'old history id'
|
||||
export async function createProjectWithOldHistoryId(
|
||||
userId,
|
||||
projectName = 'old history id'
|
||||
) {
|
||||
const historyId = parseInt(
|
||||
await HistoryManager.promises.initializeProject(),
|
||||
10
|
||||
@@ -137,7 +139,7 @@ async function purgeNewUsers() {
|
||||
)
|
||||
}
|
||||
|
||||
export async function provisionSplitTests() {
|
||||
export async function provisionSplitTests(merge = false) {
|
||||
const backup = Path.join(
|
||||
MONOREPO,
|
||||
'backup',
|
||||
@@ -181,7 +183,11 @@ export async function provisionSplitTests() {
|
||||
],
|
||||
})
|
||||
console.log(`> Importing ${SPLIT_TESTS.length} split-tests from production.`)
|
||||
await SplitTestManager.replaceSplitTests(SPLIT_TESTS)
|
||||
if (merge) {
|
||||
await SplitTestManager.mergeSplitTests(SPLIT_TESTS, false)
|
||||
} else {
|
||||
await SplitTestManager.replaceSplitTests(SPLIT_TESTS)
|
||||
}
|
||||
}
|
||||
|
||||
async function checkNoTableScan() {
|
||||
|
||||
Reference in New Issue
Block a user