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

Cookieexample #82

Merged
merged 10 commits into from Aug 19, 2019
Merged

Cookieexample #82

merged 10 commits into from Aug 19, 2019

Conversation

alexanderpalsson
Copy link
Contributor

Add a simple cookiejar example

@alexanderpalsson
Copy link
Contributor Author

Circleci behaved weird so had to push again

@wennmo
Copy link
Member

wennmo commented Aug 19, 2019

The example looks good, but a couple of things are still needed.

We need to add this example to the documentation https://github.com/qlik-oss/enigma-go/blob/master/examples/README.md

Also add it to the CCI pipeline. That is done by adding the example to this script: https://github.com/qlik-oss/enigma-go/blob/master/examples/run_examples.sh

Not sure if it's intentional but you have also generated a new qix-generated.go. Should be handled in a separate PR in my opinion.

@glooms
Copy link
Collaborator

glooms commented Aug 19, 2019

I reverted qix_generated.go to the one on master.

cookies := dialer.Jar.Cookies(urlTest)
for _, cookie := range cookies {
if cookie.Name == "_session" {
fmt.Println(cookie)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it would be nice if there was some additional information for context.
Maybe something as simple as "Cookies found:" before the cookies are printed.

@glooms
Copy link
Collaborator

glooms commented Aug 19, 2019

Overall it looks good but I agree with @wennmo that some additional work is still needed.

Copy link
Member

@wennmo wennmo left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@@ -0,0 +1,9 @@
# Cookier Jar

This example show you how to set a cookie jar to a enigma dialer.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Grammar: shows

Copy link
Collaborator

@glooms glooms left a comment

Choose a reason for hiding this comment

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

⭐ 🌮

@alexanderpalsson alexanderpalsson merged commit 0dbcc21 into master Aug 19, 2019
@wennmo wennmo deleted the cookieexample branch August 20, 2019 06:39
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.

None yet

3 participants