Skip to content

fix: remove console.log and console.error statements from production …#343

Merged
snehar-nd merged 2 commits into
PSMRI:mainfrom
Aarti-panchal01:fix/remove-console-statements-production
May 14, 2026
Merged

fix: remove console.log and console.error statements from production …#343
snehar-nd merged 2 commits into
PSMRI:mainfrom
Aarti-panchal01:fix/remove-console-statements-production

Conversation

@Aarti-panchal01
Copy link
Copy Markdown
Contributor

📋 Description

Removes 21 debug console.log and console.error statements from production
components across 5 files. Console statements in production code expose
internal application state and degrade performance.

Related to PSMRI/AMRIT#130 (MMU-UI Angular 19 migration - C4GT DMP 2026)


✅ Type of Change

  • 🐞 Bug fix
  • 🚀 Performance

ℹ️ Additional Information

Files changed:

  • captcha.component.ts: 2 console.error removed
  • workarea.component.ts: 5 console statements removed
  • reset-password.component.ts: 6 console.log removed
  • set-security-questions.component.ts: 7 console statements removed
  • main.ts: 1 console.error removed

Total: 21 console statements removed across 5 files.
All existing functionality preserved.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 12, 2026

Warning

Rate limit exceeded

@Aarti-panchal01 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 25 minutes and 46 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f992f447-b8dc-48bf-9a30-d6315b374e4f

📥 Commits

Reviewing files that changed from the base of the PR and between 91045e5 and f786eb9.

📒 Files selected for processing (5)
  • src/app/app-modules/captcha/captcha.component.ts
  • src/app/app-modules/data-sync/workarea/workarea.component.ts
  • src/app/app-modules/reset-password/reset-password.component.ts
  • src/app/app-modules/set-security-questions/set-security-questions.component.ts
  • src/main.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link
Copy Markdown

@Aarti-panchal01
Copy link
Copy Markdown
Contributor Author

Hi @drtechie,

Removed 21 debug console.log and console.error statements from 5 production components in MMU-UI.
These expose internal state and affect performance.

I'm applying for C4GT DMP 2026 — specifically the MMU-UI Angular 16→19
migration (#130).
This PR demonstrates my familiarity with the MMU-UI codebase.

Happy to address any review feedback!

@snehar-nd snehar-nd merged commit f786eb9 into PSMRI:main May 14, 2026
3 checks passed
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.

2 participants