-
Notifications
You must be signed in to change notification settings - Fork 72
fix(ua): change the User-Agent to use the new specs lib (version) #481
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will also need some tests.
Deploy preview for angular-instantsearch ready! Built with commit be8e039 https://deploy-preview-481--angular-instantsearch.netlify.com |
Deploy preview for angular-instantsearch ready! Built with commit 046be61 https://deploy-preview-481--angular-instantsearch.netlify.com |
Deploy preview for angular-instantsearch ready! Built with commit 2fc3318 https://deploy-preview-481--angular-instantsearch.netlify.com |
Before approving, this should be tested for both client and server versions. |
@francoischalifour Tested both on client and server: Netlify: SSR: |
looks like SSR is missing the Angular version then? |
@Haroenv I didn't added it since in
|
It would seem useful to know for me: import {
VERSION as AngularVersion,
} from '@angular/core'; |
Looks like prettier wants the imports inlined. Also there are no tests for this, and they probably should be added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ready to merge 💯
Please refrain from merging if you can't release this yet, just so we don't block other feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't seem to have a test for the client side.
I added the client side UA + thanks to @tkrugg we spot a bug where the UA was only added when the |
Co-Authored-By: samouss <samuel.vllnt@gmail.com>
Summary
Update UA to
angular ($VERSION); angular-instantsearch ($VERSION)
Add the
addAlgoliaAgent
toSearchClient
and fix the issue where the UA is only added when theSearchClient
is not passed in configResult