Skip to content

chore: remove leftover debug console.log statements from WebAPP/App/ (fixes #436)#437

Open
parthdagia05 wants to merge 1 commit intoEAPD-DRB:mainfrom
parthdagia05:chore/remove-debug-console-logs
Open

chore: remove leftover debug console.log statements from WebAPP/App/ (fixes #436)#437
parthdagia05 wants to merge 1 commit intoEAPD-DRB:mainfrom
parthdagia05:chore/remove-debug-console-logs

Conversation

@parthdagia05
Copy link
Copy Markdown

Linked issue

Existing related work reviewed

Overlap assessment

  • Classification: New, non-overlapping cleanup
  • Overlapping items: None
  • Why this is not duplicate/superseded: PR Absorb MUIO v5.5 changes #422 only cleaned files it was already touching for v5.5; the 25 sites under WebAPP/App/ were untouched and no open issue/PR covers them.

Why this PR should proceed

  • Pure deletion-only cleanup, zero behavior change. Matches the precedent set by Absorb MUIO v5.5 changes #422. Touches only MUIOGO-native files (avoids WebAPP/Classes/* per docs/UPSTREAM_SYNC.md).

Summary

  • What changed: Removed 25 active console.log calls across 20 files in WebAPP/App/Controller/ and WebAPP/App/Model/.
  • Why: They fired on normal user actions (page loads, cell edits, case selection) and dumped model objects to the browser console.

Validation

  • Tests added/updated (or not applicable) - N/A: deletion-only, no logic change.
  • Validation steps documented
  • Evidence attached

grep -rn '^\s*console\.log' WebAPP/App/ returns no matches. All 20 files pass node --input-type=module --check. git diff --check clean. Branched off latest upstream/main (5f8f89a).

Documentation

  • Docs updated in this PR (or not applicable) - N/A
  • Any setup/workflow changes reflected in repo docs - N/A

Scope check

  • No unrelated refactors
  • Implemented from a feature branch (chore/remove-debug-console-logs)
  • Change is deliverable without upstream OSeMOSYS/MUIO dependency
  • Base repo/branch is EAPD-DRB/MUIOGO:main

Exception rationale

N/A - uses linked issue #436.

Removes 25 active console.log debug calls across 20 files in
WebAPP/App/Controller/ and WebAPP/App/Model/. These fired during
normal user actions (page loads, cell edits, case selection) and
in some cases dumped entire model objects to the browser console.

Scope notes:
- Preserves console.error (intentional error logging) and
  commented-out // console.log(...) lines (out of scope).
- Skips WebAPP/Classes/*.js since those are upstream-overlap
  surface per docs/UPSTREAM_SYNC.md and would risk merge
  conflicts at the next MUIO sync.

Follows the cleanup precedent from EAPD-DRB#422, which removed similar
debug logs from Pivot.js, DataModelResult.Class.js, and
Const.Class.js during the v5.5 sync.

Fixes EAPD-DRB#436
@parthdagia05
Copy link
Copy Markdown
Author

@SeaCelo small cleanup following the same pattern as your console.log removals in #422, covering the remaining sites under WebAPP/App/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Leftover debug console.log statements in WebAPP/App/ controllers and models

1 participant