Skip to content

Go: pubsub numpat command#3666

Merged
jbrinkman merged 10 commits intomainfrom
go/jbrinkman-pubsub-numpat
Apr 25, 2025
Merged

Go: pubsub numpat command#3666
jbrinkman merged 10 commits intomainfrom
go/jbrinkman-pubsub-numpat

Conversation

@jbrinkman
Copy link
Copy Markdown
Collaborator

Description

  • Add PubSubNumPat command
  • Add documentation example
  • 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.

Copy link
Copy Markdown

@Yury-Fridlyand Yury-Fridlyand left a comment

Choose a reason for hiding this comment

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

Please update PR title to include both new commands added

@jbrinkman jbrinkman mentioned this pull request Apr 24, 2025
7 tasks
…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>
…patterns. Update PubSubCommands interface and implement integration tests for standalone and cluster clients. Add example usage for documentation.

Signed-off-by: jbrinkman <joe.brinkman@improving.com>
Signed-off-by: jbrinkman <joe.brinkman@improving.com>
…lish and PubSubChannelsWithPattern functions. Clean up unused imports and comments for improved code clarity.

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 jbrinkman merged commit 2a9a8a8 into main Apr 25, 2025
15 of 16 checks passed
@jbrinkman jbrinkman deleted the go/jbrinkman-pubsub-numpat 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 PubSubNumPat method to baseClient for counting unique subscribed patterns. Update PubSubCommands interface and implement integration tests for standalone and cluster clients. Add example usage for documentation.

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

* Update changelog with corrected PR number

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

* Refactor baseClient methods by removing redundant error checks in Publish and PubSubChannelsWithPattern functions. Clean up unused imports and comments for improved code clarity.

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

* remove unneeded check

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

* fix linting errors

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

---------

Signed-off-by: jbrinkman <joe.brinkman@improving.com>
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.

3 participants