-
Notifications
You must be signed in to change notification settings - Fork 115
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
Make concurrent acceptance tests smoother #41
Comments
Using the user agent seems like a good solution to me. If this is the contract that we'd like to have does it make sense to move the encoding/decoding logic into |
We don't need to move the logic to phoenix_ecto. We just need to agree on On Sunday, April 3, 2016, Chris Keathley notifications@github.com wrote:
José Valimwww.plataformatec.com.br |
That seems good to me. |
I also agree it is better to avoid having dependencies between the packages where we do not need them. In the current encoding, I am appending a string
Of course, if we are to make this a common format, I suppose we should replace Please let me know if you have suggestions to improve the encoding format. |
My propose in the Hound issues tracker was:
We could convert it to |
@tuvistavie could you please send a pull request to Phoenix.Ecto that uses the new metadata we have in Hound? Thank you! :) |
Then let's do new hound and phoenix-ecto releases and get the smoother concurrent tests out there :D |
Excited to get this into Wallaby as well 👍 |
@josevalim Sure! I should have time to do this during next week! |
@tuvistavie do you think it would be possible to have this sooner? We want to release a phoenix-rc. If you can't focus on it, it is OK, I can tackle the missing parts as you already did most of the work. :) Thank you. |
@josevalim Alright, it should not take too long so I will give it a try tonight! |
❤️ 💚 💙 💛 💜 |
Hi,
I am currently working on Hound and would like to have your feedback to make concurrent acceptance tests smoother.
After having discussed with @josevalim in HashNuke/hound#71, here is what we came up with:
HashNuke/hound#98
Basically, we can now pass any metadata to the driver, it will be sent through the UA string.
The serialization/deserialization will be handled automatically so that it works with any browser or driver.
An improvement compared to the current approach is that we do not rely on cookies, so PhantomJS should also work fine, at least for the Ecto part.
A sample usage would be
We could then have the plug to extract the metadata and allow the connection:
I believe the above example should work but I did not try it yet.
As it depends directly on Hound, I am not sure if it is ok to add
this here, or if it is better we create another package dependent
on both
phoenix_ecto
andhound
to avoid adding dependencies.Anyway, I would very much like to have your feedback.
Thank you!
The text was updated successfully, but these errors were encountered: