disable new modeling code, until some future day
Yeah, mm, turns out I don't think it's actually viable to model from Impress 2020, because we can't reasonably set up the SWFs and PNGs in the ways we need, especially for compatibility with Classic DTI. We can turn this on again later, once Classic DTI is gone, and all assets are converted to HTML5 -- or if we build some kind of bridge to Classic's asset code, or we write new PNG conversion code.
This commit is contained in:
parent
c0ce71c206
commit
2578e1a431
3 changed files with 1312 additions and 0 deletions
|
@ -6,8 +6,20 @@
|
|||
* These days, most calls to this function are a no-op: we detect that the
|
||||
* database already contains this data, and end up doing no writes. But when a
|
||||
* pet contains data we haven't seen before, we write!
|
||||
*
|
||||
* NOTE: This function currently only acts if process.env["USE_NEW_MODELING"]
|
||||
* is set to "1". Otherwise, it does nothing. This is because, while this
|
||||
* new modeling code seems to work well for modern stuff, it doesn't
|
||||
* upload SWFs to the Classic DTI Linode box, and doesn't upload PNGs to
|
||||
* AWS. Both are necessary for compatibility with Classic DTI, and PNGs
|
||||
* are necessary (even on Impress 2020) until all assets are converted to
|
||||
* HTML5.
|
||||
*/
|
||||
async function saveModelingData(customPetData, petMetaData, context) {
|
||||
if (process.env["USE_NEW_MODELING"] !== "1") {
|
||||
return;
|
||||
}
|
||||
|
||||
const modelingLogs = [];
|
||||
const addToModelingLogs = (entry) => {
|
||||
console.log("[Modeling] " + JSON.stringify(entry, null, 4));
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -135,6 +135,10 @@ expect.extend({
|
|||
},
|
||||
});
|
||||
|
||||
// Use the new modeling code, even though it's disabled in most environments,
|
||||
// in order to test it.
|
||||
process.env["USE_NEW_MODELING"] = "1";
|
||||
|
||||
module.exports = {
|
||||
query,
|
||||
getDbCalls,
|
||||
|
|
Loading…
Reference in a new issue