From f77b37a5a620822276f4f68b5cd352978f538bf9 Mon Sep 17 00:00:00 2001 From: Snowysauce <22599992+Snowysauce@users.noreply.github.com> Date: Mon, 23 Dec 2024 23:21:21 -0500 Subject: [PATCH] modified Wikidata sync script to ignore certain Facebook API warnings * dry runs of the script were used to test/verify the new code's validity and its impact on performance * warnings regarding Facebook usernames tagged with one of three "online access value" qualifier/value pairings (Q113165094 - location restrictions, Q58370623 - private account, Q107459441 - only visible when logged in) were successfully suppressed * there did not appear to be any impact to the script's performance in terms of either function or speed * resolves #10233 --- app/src/CategoryRow.jsx | 4 ++-- docs/index.js.map | 2 +- scripts/build_features.js | 2 +- scripts/build_wikidata.js | 49 +++++++++++++++++++++++++++++++++------ 4 files changed, 46 insertions(+), 11 deletions(-) diff --git a/app/src/CategoryRow.jsx b/app/src/CategoryRow.jsx index 270eeb7c181..6f752abf05b 100644 --- a/app/src/CategoryRow.jsx +++ b/app/src/CategoryRow.jsx @@ -20,7 +20,7 @@ export function CategoryRow(props) { const v = params.v; const filters = getFilterParams(params); // filters are used here for highlighting - // Determine dissolutation date (if any) + // Determine dissolution date (if any) const dissolvedInfo = context.dissolved[item.id]; let dissolved; if (Array.isArray(dissolvedInfo)) { @@ -302,7 +302,7 @@ relation[${k}=${v}][network:wikidata=${qid}] `; }); - /* Add an
a||125d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n", "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n", "/**\n * @license React\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"react\"),ca=require(\"scheduler\");function p(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;c