Summary
Several frontend controllers and model files in WebAPP/App/ contain leftover console.log debug statements that fire during normal user actions - page loads, cell edits, case selections, technology deletions, etc.
Grepping WebAPP/App/ for active (uncommented) console.log calls returns 25 sites across 20 files. Examples:
WebAPP/App/Controller/AddCase.js:99 - console.log('model ', model) on every Add Case page render (dumps the entire model object)
WebAPP/App/Controller/DataFile.js:585 - on every case selection
WebAPP/App/Controller/RYS.js:54, RYT.js:54 - on every parameter page open
WebAPP/App/Model/RESViewer.Model.js:211-215 - five logs per RES viewer render
This is consistent with the cleanup precedent set by PR #422, which removed similar debug console.log calls from Pivot.js, DataModelResult.Class.js, and Const.Class.js during the v5.5 sync.
What did you expect? (optional)
Production frontend code should not emit debug logs during normal user interactions. Browser DevTools console should stay clean unless an actual error occurs (console.error is fine and intentional).
How can we reproduce it?
- Check out current
main (commit 5f8f89a)
- Open the app and load the Add Case page → DevTools console shows
model {...} dump
- Select a case from the case picker → console shows
select, {...} dump
- Edit a season name in the seasons grid → console shows
seId ... log
- Open any RT-family parameter page → console shows
model {...} dump
Static repro:
grep -rn --include='*.js' '^[[:space:]]*console\.log' WebAPP/App/
Returns 25 hits across 20 files in Controllers and Models.
Environment (optional)
Branch: main @ 5f8f89a
Affected files: WebAPP/App/Controller/.js, WebAPP/App/Model/.js
Browser-agnostic (any modern browser will display the logs)
Logs or screenshots (optional)
No response
Related issue, PR, or discussion (optional)
Precedent: PR #422 ("Absorb MUIO v5.5 changes") removed similar debug console.log statements from WebAPP/AppResults/Controller/Pivot.js, WebAPP/Classes/DataModelResult.Class.js, and WebAPP/Classes/Const.Class.js. This issue extends the same cleanup pattern to the remaining sites under WebAPP/App/.
Note: WebAPP/Classes/*.js also contains a few similar lines, but those files are upstream-overlap surface per docs/UPSTREAM_SYNC.md. Leaving those out of scope to avoid conflicts at the next upstream sync — happy to file a separate issue for them if maintainers prefer.
Plan: open a narrow PR removing only the active calls in WebAPP/App/ (~56 line deletions across 20 files). Will preserve console.error and commented-out lines.
Proposed track
None
Summary
Several frontend controllers and model files in
WebAPP/App/contain leftoverconsole.logdebug statements that fire during normal user actions - page loads, cell edits, case selections, technology deletions, etc.Grepping
WebAPP/App/for active (uncommented)console.logcalls returns 25 sites across 20 files. Examples:WebAPP/App/Controller/AddCase.js:99-console.log('model ', model)on every Add Case page render (dumps the entire model object)WebAPP/App/Controller/DataFile.js:585- on every case selectionWebAPP/App/Controller/RYS.js:54,RYT.js:54- on every parameter page openWebAPP/App/Model/RESViewer.Model.js:211-215- five logs per RES viewer renderThis is consistent with the cleanup precedent set by PR #422, which removed similar debug
console.logcalls fromPivot.js,DataModelResult.Class.js, andConst.Class.jsduring the v5.5 sync.What did you expect? (optional)
Production frontend code should not emit debug logs during normal user interactions. Browser DevTools console should stay clean unless an actual error occurs (
console.erroris fine and intentional).How can we reproduce it?
main(commit 5f8f89a)model {...}dumpselect, {...}dumpseId ...logmodel {...}dumpStatic repro:
Returns 25 hits across 20 files in Controllers and Models.
Environment (optional)
Branch: main @ 5f8f89a
Affected files: WebAPP/App/Controller/.js, WebAPP/App/Model/.js
Browser-agnostic (any modern browser will display the logs)
Logs or screenshots (optional)
No response
Related issue, PR, or discussion (optional)
Precedent: PR #422 ("Absorb MUIO v5.5 changes") removed similar debug console.log statements from
WebAPP/AppResults/Controller/Pivot.js,WebAPP/Classes/DataModelResult.Class.js, andWebAPP/Classes/Const.Class.js. This issue extends the same cleanup pattern to the remaining sites underWebAPP/App/.Note:
WebAPP/Classes/*.jsalso contains a few similar lines, but those files are upstream-overlap surface perdocs/UPSTREAM_SYNC.md. Leaving those out of scope to avoid conflicts at the next upstream sync — happy to file a separate issue for them if maintainers prefer.Plan: open a narrow PR removing only the active calls in
WebAPP/App/(~56 line deletions across 20 files). Will preserveconsole.errorand commented-out lines.Proposed track
None