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

Added authentication support for AQMP broker url #8057

Merged
merged 15 commits into from
Sep 20, 2021
Merged

Conversation

nakshathru
Copy link
Contributor

@nakshathru nakshathru commented Feb 26, 2021

Updated AQMP url to include username, password and port params from the configuration
Issue #8042

@CLAassistant
Copy link

CLAassistant commented Feb 26, 2021

CLA assistant check
All committers have signed the CLA.

@nakshathru
Copy link
Contributor Author

Reference issue raised
#8042

@sara-tagger
Copy link
Collaborator

Thanks for submitting a pull request 🚀 @koaning will take a look at it as soon as possible ✨

@nakshathru
Copy link
Contributor Author

can some one verify it ? or provide an ETA ?

@koaning
Copy link
Contributor

koaning commented Mar 22, 2021

Ah, it seems that I was notified of this during my holiday. The tagger shouldn't have tagged me in this case. I'll poke folks on slack to have a look right away. This is part of the codebase that I'm not familiar with so I prefer to have somebody else review.

@TyDunn TyDunn removed the request for review from koaning April 21, 2021 13:48
@nakshathru nakshathru requested a review from a team as a code owner July 11, 2021 18:57
@TyDunn TyDunn requested a review from alwx July 12, 2021 09:31
@wochinge wochinge removed the request for review from a team July 12, 2021 12:14
Copy link
Contributor

@alwx alwx left a comment

Choose a reason for hiding this comment

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

Hey @nakshathru!
Thanks for your contribution and sorry that it took us so long to actually process and review it. I did the review today and left two smallish comments — could you please update your PR based on the information in this comments? Thanks a lot in advance!

@@ -168,7 +169,9 @@ async def _connect(self) -> aio_pika.RobustConnection:
# The `url` parameter will take precedence over parameters like `login` or
# `password`.
if self.host.startswith("amqp"):
url = self.host

host_ob = urlparse(self.host)
Copy link
Contributor

Choose a reason for hiding this comment

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

What does the name host_ob mean in this context? Can there be a better name for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alwx
I almost lost hope of you reviewing this PR after 6 months!!!!
Thanks for the update.
I renamed host_ob to parsed_host, does that make sense for you?
This object is just for holding the parsed url components values.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds better now, thanks!

CHANGELOG.mdx Outdated
@@ -3924,3 +3924,4 @@ Regression: changes from `1.2.12` were missing from `1.4.0`, readded them

* utterance templates defined in actions are checked for existence upon training a new agent, and a warning
is thrown before training if one is missing
* added authentication support for rabbitmq url which was missing before
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't usually change old changelog entries — the new one needs to be added instead. This guide contains the detailed information about the process: https://github.com/RasaHQ/rasa/blob/main/changelog/README.md

But to keep it short: could you please create a 8057.improvement.md file inside a changelog directory with all the information about what was done in this PR instead of modifying CHANGELOG.mdx?

Copy link
Contributor Author

@nakshathru nakshathru Aug 5, 2021

Choose a reason for hiding this comment

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

@alwx Sounds good!! removed change log entry and created new one as per your suggestion

Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome, thanks!

Copy link
Contributor

@alwx alwx left a comment

Choose a reason for hiding this comment

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

Just a couple of small changelog suggestions (in order to make it clear what's going on here)

changelog/8057.improvement.md Outdated Show resolved Hide resolved
changelog/8057.improvement.md Outdated Show resolved Hide resolved
@nakshathru
Copy link
Contributor Author

@alwx Are we good now?

@alwx alwx self-requested a review August 19, 2021 07:49
@alwx
Copy link
Contributor

alwx commented Aug 19, 2021

@nakshathru approved and ran all the tests.

@alwx alwx enabled auto-merge August 19, 2021 07:50
@alwx
Copy link
Contributor

alwx commented Aug 19, 2021

@nakshathru Ok, now we have the code quality issue (https://github.com/RasaHQ/rasa/pull/8057/checks?check_run_id=3369311492) — you can resolve it by running make formatter and committing the changes.

@alwx
Copy link
Contributor

alwx commented Sep 17, 2021

@nakshathru just let me know if you still want to continue working on this and fix the remaining code style issues. Otherwise, I would step in and update the code style.

auto-merge was automatically disabled September 18, 2021 20:31

Head branch was pushed to by a user without write access

@nakshathru
Copy link
Contributor Author

@alwx Thanks for the reminder. I tried make formatter but it didn't fix anything. Later I found a max length lint error.
So updated the code and make lint is now passing.
Please take a look!!!

@alwx alwx merged commit 491890b into RasaHQ:main Sep 20, 2021
@alwx
Copy link
Contributor

alwx commented Sep 20, 2021

@nakshathru thanks for your contribution!

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.

5 participants