-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add senses and sentences * import dialects * import photo and audio * fix onondaga sort * save import content updates * don't write log files in CI * only do content_updates for entry to denote import_id * add tags to db and separate multiples in same column of imports with pipe * fix multiple senses when having multiple audio bug
- Loading branch information
Showing
91 changed files
with
2,365 additions
and
5,132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// const bucket = admin.storage().bucket() | ||
|
||
// return bucket.deleteFiles({ | ||
// prefix: `${dictionaryId}`, | ||
// }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,4 +38,4 @@ export const entryInterface = { | |
ca: 'created at', | ||
ua: 'updated at', | ||
ei: 'Elicitation Id', | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// import * as functions from 'firebase-functions'; | ||
// const firebase_tools = require('firebase-tools'); | ||
|
||
// /** | ||
// * Initiate a recursive delete of documents at a given path. | ||
// * | ||
// * The calling user must be authenticated and have the custom "admin" attribute | ||
// * set to true on the auth token. | ||
// * | ||
// * This delete is NOT an atomic operation and it's possible | ||
// * that it may fail after only deleting some documents. | ||
// * | ||
// * @param {string} data.path the document or collection path to delete. | ||
// */ | ||
// export default async (data: any, context: functions.https.CallableContext) => { | ||
// // if (!(context.auth && context.auth.token && context.auth.token.admin)) { | ||
// // Only allow authorized users to execute this function. // Could improve by reading user data from Firestore and looking at admin role > 1 | ||
// if ( | ||
// !( | ||
// context.auth && | ||
// (context.auth.uid === '0seqYnZOqkUz050y6jVQI9QvlW62' || | ||
// context.auth.uid === '2PELJgjxMHXEOcuZfv9MtGyiXdE3') | ||
// ) | ||
// ) { | ||
// throw new functions.https.HttpsError( | ||
// 'permission-denied', | ||
// 'Must be an administrative user to initiate delete.' | ||
// ); | ||
// } | ||
|
||
// const {path} = data; | ||
// console.log(`User ${context.auth.uid} has requested to delete path ${path}`); | ||
|
||
// // Run a recursive delete on the given document or collection path. | ||
// // The 'token' must be set in the functions config, and can be generated | ||
// // at the command line by running 'firebase login:ci'. | ||
// await firebase_tools.firestore.delete(path, { | ||
// project: process.env.GCLOUD_PROJECT, | ||
// recursive: true, | ||
// yes: true, | ||
// token: functions.config().fb.token, | ||
// }); | ||
// return { | ||
// path, | ||
// }; | ||
// }; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
packages/functions/src/deletion/deleteMediaOnDictionaryDelete.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
124 changes: 0 additions & 124 deletions
124
packages/functions/src/export/semanticDomainOfDictionary.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.