You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UoE/Remove debug console output and avoidable failed requests
Make the running app look professional by removing development console
logging and eliminating avoidable failed network requests. Each issue was
reproduced against the live dev and production instances and traced to its
source.
Console noise removed (fired during normal browser use):
- "Bitstream: <object>" logged once per file on every item page
- "Environment extended with app config" on every page load
- debug logs across the submission, upload, access-control and datashare
services, the submission footer and the section container
Avoidable failed requests eliminated (the request is now avoided, since a
browser always logs a network 404/401 that JS cannot suppress):
- 404 google.analytics.key on every page -> gated behind a new
info.enableGoogleAnalytics flag (default false; DataShare does not use GA)
- 404 bulkedit.export.max.items on /search -> only requested once the admin
export button is shown
- 401 qualityassurancesources on item pages for anonymous users -> gated on
the CanSeeQA authorization inside the QA component
- 404 /favicon.ico -> the DataShare favicon is served from the web root
Specs updated for the new GA flag and CanSeeQA gate (with added coverage).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments