Merge "Disable error logging for missing settings cog on references beta feature"

This commit is contained in:
jenkins-bot 2023-09-15 18:50:08 +00:00 committed by Gerrit Code Review
commit 0d591abfe7
4 changed files with 8 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View file

@ -312,6 +312,12 @@ export function bindBehavior( preview, behavior ) {
behavior.showSettings( event );
} );
} else if (
preview.el.classList.contains( 'mwe-popups-type-reference' ) &&
mw.config.get( 'wgPopupsReferencePreviewsBetaFeature' )
) {
// The reference preview when in beta feature doesn't have a settings cog (T346404).
return;
} else {
const err = new Error( 'Page previews: No settings button found in preview.' );
mw.errorLogger.logError( err, 'error.web-team' );

View file

@ -118,8 +118,8 @@ module.exports = ( env, argv ) => ( {
// Minified uncompressed size limits for chunks / assets and entrypoints. Keep these numbers
// up-to-date and rounded to the nearest 10th of a kibibyte so that code sizing costs are
// well understood. Related to bundlesize minified, gzipped compressed file size tests.
maxAssetSize: 46.7 * 1024,
maxEntrypointSize: 46.7 * 1024,
maxAssetSize: 46.8 * 1024,
maxEntrypointSize: 46.8 * 1024,
// The default filter excludes map files but we rename ours.
assetFilter: ( filename ) => !filename.endsWith( srcMapExt )