Skip to content

refactor: remove stale TODO comments in UserResource.java Removed outdated TODO comments related to addAuthMechanismToBot method. No functional changes were made.#27297

Open
Sayyed-Arslaan wants to merge 2 commits intoopen-metadata:mainfrom
Sayyed-Arslaan:main
Open

Conversation

@Sayyed-Arslaan
Copy link
Copy Markdown

Describe your changes:

Fixes #27292

This PR removes stale TODO comments from UserResource.java related to the addAuthMechanismToBot method.

These TODO comments were no longer relevant since the method is actively used and critical for bot authentication. Keeping them could cause confusion for contributors.

No functional changes were made.

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change
  • Documentation

Checklist:

  • I have read the [CONTRIBUTING](https://docs.open-metadata.org/developers/contribute) document.
  • My PR title is Fixes #27292: Remove stale TODO comments in UserResource.java
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

Testing:

Not required, as this change is purely a non-functional cleanup (removal of comments).

Impact:

  • Improves code readability and maintainability
  • Removes outdated and misleading comments
  • No impact on application behavior

google-labs-jules bot and others added 2 commits April 12, 2026 14:43
Removes the two stale TODO comments from UserResource.java associated with the addAuthMechanismToBot method. No functional code changes were made.

Co-authored-by: Sayyed-Arslaan <166531908+Sayyed-Arslaan@users.noreply.github.com>
… comments in UserResource.java Removed outdated TODO comments related to addAuthMechanismToBot method. No functional changes were made.

### Summary

This PR removes stale TODO comments from `UserResource.java` related to the `addAuthMechanismToBot` method.

### Background

The existing TODO comments suggested reviewing or removing the `addAuthMechanismToBot` method. However, this method is actively used and is critical for bot authentication workflows. As a result, the TODO comments are no longer relevant and may mislead contributors.

### Changes

* Removed outdated TODO comments in `UserResource.java`
* No modifications to functional code or logic

### Impact

* Improves code readability and cleanliness
* Eliminates misleading or outdated developer notes
* Ensures better maintainability for future contributors
* No impact on runtime behavior or existing features

### Testing

* Not required, as this change is purely non-functional (comment cleanup)

### Notes

This is a safe refactoring change with zero impact on application behavior.
@github-actions
Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@gitar-bot
Copy link
Copy Markdown

gitar-bot bot commented Apr 12, 2026

Code Review ✅ Approved

Removes stale TODO comments from UserResource.java with no functional changes. No issues found.

Options

Display: compact → Showing less information.

Comment with these commands to change:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

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.

[Tech Debt] Clean up stale TODO comments in UserResource.java

1 participant