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

Add autoIncremented parameter to batch-post in bmqtool #357

Merged
merged 10 commits into from
Jul 23, 2024
Merged

Conversation

syuzvinsky
Copy link
Collaborator

A new parameter 'autoIncremented' can be provided to 'batch-post' command in bmqtool.
It can be used to test subscriptions with expressions like 'x % 3 == 0' where "x" is a value of 'autoIncremented' field, so, every 3rd element will be received by the subscriber.

@syuzvinsky syuzvinsky requested a review from a team as a code owner July 15, 2024 15:23
@syuzvinsky syuzvinsky force-pushed the auto-inc-field branch 2 times, most recently from 2b067ba to e7bfc4f Compare July 16, 2024 13:46
A new parameter 'autoIncremented' can be provided to 'batch-post'
command in bmqtool. It can be used to test subscriptions with
expressions like 'x % 3 == 0' where "x" is a value of
'autoIncremented' field, so, every 3rd element will be received by
the subscriber.

Signed-off-by: Stanislav Yuzvinsky <[email protected]>
@678098 678098 self-assigned this Jul 18, 2024
@678098 678098 self-requested a review July 18, 2024 12:53
@@ -268,6 +268,10 @@ class Parameters {

bsl::vector<Subscription> d_subscriptions;

bsl::string d_autoIncrementedField;
// A name of a property to put auto-incremented values
// in batch-posting mode.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's use Doxygen style comment, /// and before the variable

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The style is derived from the style used for all private variables in this file. Applying doxygen style for just one field looks impractical.

src/applications/bmqtool/README.md Outdated Show resolved Hide resolved
src/applications/bmqtool/m_bmqtool_parameters.h Outdated Show resolved Hide resolved
src/applications/bmqtool/m_bmqtool_poster.h Outdated Show resolved Hide resolved
@@ -95,6 +95,10 @@ class PostingContext {
bmqa::MessageProperties d_properties;
// Properties that will be added to a posted message

unsigned int d_autoIncrementedValue;
// A value that will be auto-incremented and added to
// the message properties.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might convert to Doxygen style comment

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the same comment about style uniformity

syuzvinsky and others added 3 commits July 22, 2024 17:03
Co-authored-by: Evgeny Malygin <[email protected]>
Signed-off-by: Stanislav Yuzvinsky <[email protected]>
Co-authored-by: Evgeny Malygin <[email protected]>
Signed-off-by: Stanislav Yuzvinsky <[email protected]>
Co-authored-by: Evgeny Malygin <[email protected]>
Signed-off-by: Stanislav Yuzvinsky <[email protected]>
Co-authored-by: Evgeny Malygin <[email protected]>
Signed-off-by: Stanislav Yuzvinsky <[email protected]>
Copy link
Collaborator

@678098 678098 left a comment

Choose a reason for hiding this comment

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

LGTM!

@syuzvinsky syuzvinsky merged commit 9714d1c into main Jul 23, 2024
31 checks passed
@syuzvinsky syuzvinsky deleted the auto-inc-field branch July 23, 2024 13:07
alexander-e1off pushed a commit to alexander-e1off/blazingmq that referenced this pull request Oct 24, 2024
A new parameter 'autoIncremented' can be provided to 'batch-post'
command in bmqtool. It can be used to test subscriptions with
expressions like 'x % 3 == 0' where "x" is a value of
'autoIncremented' field, so, every 3rd element will be received by
the subscriber.

Signed-off-by: Stanislav Yuzvinsky <[email protected]>
Co-authored-by: Evgeny Malygin <[email protected]>
alexander-e1off pushed a commit to alexander-e1off/blazingmq that referenced this pull request Oct 24, 2024
A new parameter 'autoIncremented' can be provided to 'batch-post'
command in bmqtool. It can be used to test subscriptions with
expressions like 'x % 3 == 0' where "x" is a value of
'autoIncremented' field, so, every 3rd element will be received by
the subscriber.

Signed-off-by: Stanislav Yuzvinsky <[email protected]>
Co-authored-by: Evgeny Malygin <[email protected]>
alexander-e1off pushed a commit to alexander-e1off/blazingmq that referenced this pull request Oct 24, 2024
A new parameter 'autoIncremented' can be provided to 'batch-post'
command in bmqtool. It can be used to test subscriptions with
expressions like 'x % 3 == 0' where "x" is a value of
'autoIncremented' field, so, every 3rd element will be received by
the subscriber.

Signed-off-by: Stanislav Yuzvinsky <[email protected]>
Co-authored-by: Evgeny Malygin <[email protected]>
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.

2 participants