Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused command code #2569

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

sagerb
Copy link
Collaborator

@sagerb sagerb commented Jan 29, 2025

Intent

Removes legacy CLI commands which are not needed for VSCode extension

Resolves #2521

Type of Change

    • Bug Fix
    • New Feature
    • Breaking Change
    • Documentation
    • Refactor
    • Tooling

Approach

The VSCode extension executes the agent with the following command parameters:
<agent> UI -vv --listen <port>
It is also useful to support
<agent> version

I removed the CLI commands within the kong infrastructure and then trimmed down the sub-commands located
within the UI command. There were a few impacts to the httpserver that we are setting up, but that was for features which were not in use.

User Impact

The user should see no difference other than when executing <agent> -h (help).

Automated Tests

Bat tests have been removed, which were what was executing the CLI. This was done in a different PR (#2558)

Directions for Reviewers

Build checks and CI should pass. Manual tests should be performed to just make sure the UX is able to communicate with the agent.

Checklist

@sagerb sagerb self-assigned this Jan 29, 2025
Copy link
Collaborator

@marcosnav marcosnav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great!

Approving with some nits, seems also the errTlsRequiredFiles error can be removed now.

cmd/publisher/commands/ui.go Outdated Show resolved Hide resolved
internal/services/api/api_service.go Outdated Show resolved Hide resolved
internal/services/api/http_service.go Outdated Show resolved Hide resolved
@sagerb sagerb requested a review from dotNomad January 31, 2025 01:01
Copy link
Collaborator

@dotNomad dotNomad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once we get CI passing this is looking good. Agreed with @marcosnav, lets get those comments cleaned up 🔥

@sagerb sagerb added the blocked Blocked on something label Feb 13, 2025
@sagerb
Copy link
Collaborator Author

sagerb commented Feb 13, 2025

To get CI to pass, we have to merge #2584 first. That PR is waiting on replacement tests for what it is removing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Blocked on something
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove legacy CLI code
3 participants