Skip to content

GO: pubsub channels command#3665

Merged
jbrinkman merged 11 commits intomainfrom
go/jbrinkman-pubsub-channels-command
Apr 25, 2025
Merged

GO: pubsub channels command#3665
jbrinkman merged 11 commits intomainfrom
go/jbrinkman-pubsub-channels-command

Conversation

@jbrinkman
Copy link
Copy Markdown
Collaborator

Description

  • Add PubSubChannels and PubSubChannelsWithPattern commands
  • Add examples
  • Add Table driven Integration tests
  • Update Changelog

Issue link

This Pull Request is linked to issue (#3664)

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one issue.
  • Commit message has a detailed description of what changed and why.
  • Tests are added or updated.
  • CHANGELOG.md and documentation files are updated.
  • Destination branch is correct - main or release
  • Create merge commit if merging release branch into main, squash otherwise.

@jbrinkman jbrinkman requested a review from a team as a code owner April 24, 2025 13:15
@jbrinkman jbrinkman added the go 🏃 golang wrapper label Apr 24, 2025
@jbrinkman jbrinkman added this to the 2.0 milestone Apr 24, 2025
@jbrinkman jbrinkman force-pushed the go/jbrinkman-pubsub-channels-command branch from a2121cb to dd33b7d Compare April 24, 2025 13:19
…e PubSubMessageQueue with signal channel support; refactor integration tests to utilize new client creation methods and improve message handling.

Signed-off-by: jbrinkman <joe.brinkman@improving.com>
…erns into a single comprehensive test function, improving maintainability and readability. This change introduces a parameterized approach to test various client types and message reading methods.

Signed-off-by: jbrinkman <joe.brinkman@improving.com>
…e verification logic and introducing parameterized tests for various client types and message reading methods. This update improves test maintainability and readability while ensuring comprehensive coverage of PubSub functionality.

Signed-off-by: jbrinkman <joe.brinkman@improving.com>
…t for enhanced channel management. Update PubSubCommands interface to include new methods. Introduce example utility functions for standalone and cluster clients with subscription capabilities, ensuring a clean state before tests.

Signed-off-by: jbrinkman <joe.brinkman@improving.com>
…client function. Update Go module dependencies to include new libraries for improved functionality. Refactor baseClient methods for PubSubChannels and PubSubChannelsWithPattern, ensuring proper error handling and client closure in tests.

Signed-off-by: jbrinkman <joe.brinkman@improving.com>
Signed-off-by: jbrinkman <joe.brinkman@improving.com>
@jbrinkman jbrinkman force-pushed the go/jbrinkman-pubsub-channels-command branch from dd33b7d to 41bf80f Compare April 24, 2025 13:20
Signed-off-by: jbrinkman <joe.brinkman@improving.com>
Signed-off-by: jbrinkman <joe.brinkman@improving.com>
Signed-off-by: jbrinkman <joe.brinkman@improving.com>
jbrinkman and others added 2 commits April 25, 2025 14:19
Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: Joseph Brinkman <joe.brinkman@improving.com>
Signed-off-by: jbrinkman <joe.brinkman@improving.com>
@jbrinkman jbrinkman force-pushed the go/jbrinkman-pubsub-channels-command branch from 76e15b6 to 0ed6be4 Compare April 25, 2025 18:20
@jbrinkman jbrinkman force-pushed the go/jbrinkman-pubsub-channels-command branch from 0ed6be4 to fc8a6f5 Compare April 25, 2025 18:20
@jbrinkman jbrinkman force-pushed the go/jbrinkman-pubsub-channels-command branch from fc8a6f5 to 0ed6be4 Compare April 25, 2025 18:27
@jbrinkman jbrinkman merged commit db6a9ba into main Apr 25, 2025
25 of 30 checks passed
@jbrinkman jbrinkman deleted the go/jbrinkman-pubsub-channels-command branch April 25, 2025 20:28
ikolomi pushed a commit that referenced this pull request May 11, 2025
* Add PubSubHandler interface and GetQueue method to BaseClient; enhance PubSubMessageQueue with signal channel support; refactor integration tests to utilize new client creation methods and improve message handling.

Signed-off-by: jbrinkman <joe.brinkman@improving.com>

* Refactor PubSub integration tests to consolidate message receipt patterns into a single comprehensive test function, improving maintainability and readability. This change introduces a parameterized approach to test various client types and message reading methods.

Signed-off-by: jbrinkman <joe.brinkman@improving.com>

* Refactor and enhance PubSub integration tests by consolidating message verification logic and introducing parameterized tests for various client types and message reading methods. This update improves test maintainability and readability while ensuring comprehensive coverage of PubSub functionality.

Signed-off-by: jbrinkman <joe.brinkman@improving.com>

* Add PubSubChannels and PubSubChannelsWithPattern methods to baseClient for enhanced channel management. Update PubSubCommands interface to include new methods. Introduce example utility functions for standalone and cluster clients with subscription capabilities, ensuring a clean state before tests.

Signed-off-by: jbrinkman <joe.brinkman@improving.com>

* Enhance client management by adding strong reference checks in close_client function. Update Go module dependencies to include new libraries for improved functionality. Refactor baseClient methods for PubSubChannels and PubSubChannelsWithPattern, ensuring proper error handling and client closure in tests.

Signed-off-by: jbrinkman <joe.brinkman@improving.com>

* add pubsub integration test for PubSub channels

Signed-off-by: jbrinkman <joe.brinkman@improving.com>

* fix formatting

Signed-off-by: jbrinkman <joe.brinkman@improving.com>

* Update changelog

Signed-off-by: jbrinkman <joe.brinkman@improving.com>

* code review feedback updates

Signed-off-by: jbrinkman <joe.brinkman@improving.com>

* Update go/api/base_client.go

Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: Joseph Brinkman <joe.brinkman@improving.com>

* remove unneeded logic

Signed-off-by: jbrinkman <joe.brinkman@improving.com>

---------

Signed-off-by: jbrinkman <joe.brinkman@improving.com>
Signed-off-by: Joseph Brinkman <joe.brinkman@improving.com>
Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go 🏃 golang wrapper

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants