Skip to content

Put the browser tests into the FlowData as JavaScript properties - #318

Merged
jwrosewell merged 3 commits into
rcfrom
fix/browserderived-standard-properties
Dec 6, 2026
Merged

jwrosewell merged 3 commits into
rcfrom
fix/browserderived-standard-properties

Conversation

@jwrosewell

Copy link
Copy Markdown
Contributor

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.

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
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.
@jwrosewell
jwrosewell merged commit 32ead7c into rc Dec 6, 2026
10 checks passed
@jwrosewell
jwrosewell deleted the fix/browserderived-standard-properties branch December 6, 2026 10:09
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.

1 participant