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

Execute Produce code lens in kafka file with progress #141

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

angelozerr
Copy link
Collaborator

Execute Produce code lens in kafka file with progress

Fixes #117

Signed-off-by: azerr [email protected]

@angelozerr
Copy link
Collaborator Author

This PR provides the ProducerCollection concept to be consistent with existing ConsumerCollection. The main idea is to store a wrapper of producer in a collection with a given uri (like consumer does). The uri of producer (identifier) use clusterId, key and value.

I set this PR as draft because I need to clean my code but here a little demo where you can see Producing... code lens:

ProducerWithProgressDemo

src/client/client.ts Outdated Show resolved Hide resolved
@angelozerr angelozerr force-pushed the producer-withProgress branch 7 times, most recently from b14f13e to 2fa0a02 Compare March 25, 2021 16:43
@fbricon
Copy link
Collaborator

fbricon commented Mar 25, 2021

apart from the missing entry in the changelog, everything LGTM

@angelozerr angelozerr force-pushed the producer-withProgress branch from 2fa0a02 to ce4354c Compare March 25, 2021 20:36
@angelozerr
Copy link
Collaborator Author

apart from the missing entry in the changelog, everything LGTM
added

Please note that I updat emy code to refresh code lensonly for connecting and disconnecting states.

CHANGELOG.md Outdated Show resolved Hide resolved
@angelozerr angelozerr marked this pull request as ready for review March 26, 2021 08:47
@angelozerr angelozerr force-pushed the producer-withProgress branch 3 times, most recently from b174082 to be846e7 Compare March 26, 2021 10:03
src/client/producer.ts Outdated Show resolved Hide resolved
channel.appendLine(`Error: ${error.message}`);
} else {
channel.appendLine(`Error: ${error}`);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

should prolly disconnect the producer in case of an error

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Disconnect producer is a bad idea because producer connect takes some times. In otherwise you connect one time to the producer and you disconnect never.

@angelozerr angelozerr force-pushed the producer-withProgress branch 2 times, most recently from 4f3b013 to 269afab Compare March 26, 2021 11:06
src/commands/producers.ts Outdated Show resolved Hide resolved
@angelozerr angelozerr force-pushed the producer-withProgress branch 6 times, most recently from 9283388 to 3d2c14f Compare March 26, 2021 16:47
src/client/producer.ts Outdated Show resolved Hide resolved
@angelozerr angelozerr force-pushed the producer-withProgress branch from 3d2c14f to fec5c7a Compare March 26, 2021 17:17
@fbricon fbricon merged commit a3782ff into jlandersen:master Mar 29, 2021
@fbricon
Copy link
Collaborator

fbricon commented Mar 29, 2021

Thanks @angelozerr!

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.

Execute Produce code lens in kafka file with progress
2 participants