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

setting userAuthUserId tag from ai_authUser cookie field #394

Merged
merged 4 commits into from
May 25, 2018

Conversation

spike008t
Copy link
Contributor

A small contribution to populate userAuthUserId from ai_authUser cookie field (like ai_user)

Seems that also concerns #356

@spike008t spike008t changed the title handle ai_authUser cookie field to userAuthUserId tag setting userAuthUserId tag from ai_authUser cookie field May 16, 2018
@OsvaldoRosado
Copy link
Member

Thanks for this PR! Looks great!

@@ -122,6 +123,7 @@ describe("AutoCollection/HttpRequestParser", () => {
var newTags = helper.getRequestTags(originalTags);
assert.equal(newTags[(<any>HttpRequestParser).keys.locationIp], 'originalIp');
assert.equal(newTags[(<any>HttpRequestParser).keys.userId], 'originalUserId');
assert.equal(newTags[(<any>HttpRequestParser).keys.userAuthUserId], 'originalAuthUserId');
Copy link
Member

Choose a reason for hiding this comment

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

You might want to add another assertion like this to the next section "should read tags from headers"

Copy link
Contributor Author

@spike008t spike008t May 17, 2018

Choose a reason for hiding this comment

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

Yep! I didn't notice the next section.
Done!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@OsvaldoRosado I still dont know why the tests failed...

Copy link
Member

Choose a reason for hiding this comment

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

Looks like something changed in the test environment. I'll look into this

@OsvaldoRosado OsvaldoRosado merged commit 3abe097 into microsoft:develop May 25, 2018
@OsvaldoRosado OsvaldoRosado added this to the 1.0.3 milestone Jun 1, 2018
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