Repository navigation
Put the browser tests into the FlowData as JavaScript properties - #318
Merged
Merged
Conversation
BrowserDerivedCloud is the cloud engine for browserderived. The browser tests are properties of browserderived that the accessible properties type as JavaScript. The cloud can return any number of them and no name is fixed. Through the engine the JSON bundler lists the tests, and the client script the server serves runs them and sends the answers back. The tests come only with a request that names HumanConfidence, so the engine logs nothing for a key without the product. The response cache stops looking for one name. As in the .NET package, a response is left out of the cache where a browserderived property that may be a browser test holds a value. A property may be one in three cases: - javascriptProperties lists it - the accessible properties give it the JavaScript type - the accessible properties give it no type at all The live 51Did tests find the browser tests the same way. Every browser test name in the tests is made up, so code that knows one name fails them.
Two builders now add BrowserDerivedCloud after the Cloud Request Engine: - the device detection cloud pipeline builder - the device detection pipeline builder, on its cloud route A pipeline from either has the browser tests in its FlowData without the user adding anything. The engine reads the Cloud Request Engine's response and sends no request of its own. Both packages now require the release that brings the engine, so upgrading one of them alone still brings it. The readmes say the builders add it. The ip-intelligence builders are unchanged.
jwrosewell
marked this pull request as ready for review
December 6, 2026 06:31
The cloud missing element test read the message's list of available element data keys and expected exactly ['device']. The cloud pipeline builder now adds the browserderived engine, so the list is ['browserderived', 'device'] and the test failed with a correct message. The test still checks the error names the missing key and links to the resource key explainer. It no longer checks the list, as the .NET and Java tests for a missing element check only that the error is raised.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BrowserDerivedCloud is the cloud engine for browserderived. The browser
tests are properties of browserderived that the accessible properties
type as JavaScript. The cloud can return any number of them and no name
is fixed.
Through the engine the JSON bundler lists the tests, and the client
script the server serves runs them and sends the answers back. The tests
come only with a request that names HumanConfidence, so the engine logs
nothing for a key without the product.
The response cache stops looking for one name. As in the .NET package, a
response is left out of the cache where a browserderived property that
may be a browser test holds a value. A property may be one in three
cases:
The live 51Did tests find the browser tests the same way. Every browser
test name in the tests is made up, so code that knows one name fails
them.
Two builders now add BrowserDerivedCloud after the Cloud Request Engine:
A pipeline from either has the browser tests in its FlowData without the
user adding anything. The engine reads the Cloud Request Engine's
response and sends no request of its own.
Both packages now require the release that brings the engine, so
upgrading one of them alone still brings it. The readmes say the
builders add it. The ip-intelligence builders are unchanged.