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

Convert most AMQP types to read-only; Significant API surface cleanup. #4640

Merged

Conversation

LarryOsterman
Copy link
Member

Significant cleanup of AMQP internals.

Fixes #4504 #4505.

Pull Request Checklist

Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:

See the detailed list in the contributing guide.

  • C++ Guidelines
  • Doxygen docs
  • Unit tests
  • No unwanted commits/changes
  • Descriptive title/description
    • PR is single purpose
    • Related issue listed
  • Comments in source
  • No typos
  • Update changelog
  • Not work-in-progress
  • External references or docs updated
  • Self review of PR done
  • Any breaking changes?

@LarryOsterman
Copy link
Member Author

Ping :).

… connections; sender and receiver don't use URLs in samples any more; all samples key off environment variables created by new-testresources.ps1
@LarryOsterman
Copy link
Member Author

Ping :).

@LarryOsterman
Copy link
Member Author

Ping 2 :)

Copy link
Member

@antkmsft antkmsft left a comment

Choose a reason for hiding this comment

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

Partial review, only 4 files so far.

Copy link
Member

@antkmsft antkmsft left a comment

Choose a reason for hiding this comment

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

10 more files reviewed

Copy link
Member

@antkmsft antkmsft left a comment

Choose a reason for hiding this comment

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

7 more files, bringing the total to 21/70 files reviewed (30%).

Copy link
Member

@antkmsft antkmsft left a comment

Choose a reason for hiding this comment

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

Reviewed 14 more files, bringing the total to 35/70 files reviewed (50%).

Copy link
Member

@antkmsft antkmsft left a comment

Choose a reason for hiding this comment

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

Reviewed 14 more files, bringing the total to 35/70 files reviewed (50%).

@antkmsft
Copy link
Member

@LarryOsterman, BTW, if samples do show the usage for the Azure SDK developers, then they can use Core::_internal::Environment, the same way they also do use Amqp::_internal, i.e. once you are user of _internal, the entire _internal surface is available to you. Other thing is if getenv() in samples plays purely a helper role and not the intended use case that we would like to emphasize. Then both are fine.

@LarryOsterman
Copy link
Member Author

@LarryOsterman, BTW, if samples do show the usage for the Azure SDK developers, then they can use Core::_internal::Environment, the same way they also do use Amqp::_internal, i.e. once you are user of _internal, the entire _internal surface is available to you. Other thing is if getenv() in samples plays purely a helper role and not the intended use case that we would like to emphasize. Then both are fine.

getenv() in these samples plays the exact same role as it does in all the other samples: It allows external configuration of the samples to work with the service.

Copy link
Member

@antkmsft antkmsft left a comment

Choose a reason for hiding this comment

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

44/88 files reviewed (new 50%)

Copy link
Member

@antkmsft antkmsft left a comment

Choose a reason for hiding this comment

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

Thank you! - And sorry it took so long.

@LarryOsterman LarryOsterman merged commit 99b1ef5 into Azure:main May 26, 2023
gearama added a commit that referenced this pull request May 30, 2023
* Remove -Login and -PushImages parameters from stress helper (#4615)

* Add Azure OpenAI (#4644)

Co-authored-by: Shawn Fang <[email protected]>

* move the cleanup config to -SaveInputs parameter on the cli (#4646)

Co-authored-by: m-nash <[email protected]>

* Fixes for uploading proxy logs (#4652)

Co-authored-by: Bill Wert <[email protected]>

* Handle docker hangs and subscription mismatch on acr login (#4653)

Co-authored-by: Ben Broderick Phillips <[email protected]>

* Sync eng/common directory with azure-sdk-tools for PR 6202 (#4651)

* Adding initial commit of TypeSpecE2E common script

* add TODO comment

* Updated per feedback

---------

Co-authored-by: raychen <[email protected]>

* added a test helper to test each type for having the expected default operations. (#4627)

* add test helper

* constructible from Args

* restucture ClassTraits to ensure portability of static constexpr

* fix Etags tests and format

* clang format

* Add DefaultAzureCredential auth flow diagram (#4654)

* Add DefaultAzureCredential auth flow diagram

* Update cspell.json

---------

Co-authored-by: Anton Kolesnyk <[email protected]>

* Remove defunct template (#4659)

Co-authored-by: James Suplizio <[email protected]>

* Convert most AMQP types to read-only; Significant API surface cleanup. (#4640)

* Prep for readonly connection

* Added options for Connection and Session to enable read-only configuration

* Read-only connection and session objects; use message source and target for message sender and receiver

* Enabled read-only session; added tests for incorrect AMQPS port

* Added token reader sample; flushed out eventhubs properties sample, added some timeouts to send async test

* Moved AMQP samples to internal

* Moved samples to use GetEnvHelper

---------

Co-authored-by: Anton Kolesnyk <[email protected]>

* Define a standardized header ordering for Azure SDK for C++ (#4632)

* Standardized header ordering for C++ repo

* Reordered categories to move private headers above public headers; added space between categories to enable future flexibility

* fix flaky storage testcase (#4660)

---------

Co-authored-by: Ben Broderick Phillips <[email protected]>
Co-authored-by: Azure SDK Bot <[email protected]>
Co-authored-by: Shawn Fang <[email protected]>
Co-authored-by: m-nash <[email protected]>
Co-authored-by: Bill Wert <[email protected]>
Co-authored-by: raychen <[email protected]>
Co-authored-by: Jennifer Chukwu <[email protected]>
Co-authored-by: Scott Addie <[email protected]>
Co-authored-by: Anton Kolesnyk <[email protected]>
Co-authored-by: James Suplizio <[email protected]>
Co-authored-by: Larry Osterman <[email protected]>
Co-authored-by: JinmingHu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Removed SetXxx APIs in favor of Options structures for Connection, Session, MessageSender, and MessageReceiver
2 participants