Skip to content

FIX: Point the cloud examples at contact-us when a key lacks a paid property - #312

Merged
jwrosewell merged 4 commits into
rcfrom
fix/examples-contact-us
Dec 5, 2026
Merged

jwrosewell merged 4 commits into
rcfrom
fix/examples-contact-us

Conversation

@Rakesh51D

@Rakesh51D Rakesh51D commented Dec 5, 2026 •

Copy link
Copy Markdown
Collaborator

The examples now meet the examples' rules for running out of the box and for a paid property.

  • pipeline/fiftyone_pipeline_did/examples/fodid_example.py imported owid, which the published 51Did package does not install. It now imports from the package's own module, so it runs with only the published package installed.
  • The cloud examples (Device Detection getting started, failure to match, and configurator, the five IP Intelligence cloud examples, both location examples, and the pipeline's mixed cloud example) print one note where the key can't return a paid property they ask for. It names those properties, says a paid key needs them added on the configuration page, and gives the link to contact us about a paid key. Each examples package has a helper for it, and the three cloud web pages that show paid properties give the same note in HTML, with the link as a link.
  • offlineprocessing.py and performance.py crashed with a TypeError when the evidence file could not be downloaded. They now say where the evidence file goes and exit cleanly.

New tests check each note and link, the 51Did example with owid unavailable, and both missing-evidence paths. The link lint and the repository's lint pass.

Rakesh51D and others added 4 commits December 5, 2026 08:06
…roperty, and run the 51Did example on the published package
Four places still told the reader that a free resource key carries
every property the example uses, while the same example now notes
that some of those properties need a paid key.

- The Device Detection getting started and User-Agent Client Hints web
  pages now say a key with the free properties the example uses can be
  created for free, which is what their console versions say.
- The mixed getting started web page has the same wording in its
  header comment and in its no-key message. Its header now also says
  which of the properties it shows need a paid key, and what the page
  does when the key cannot return them.
- The cloud request engine examples readme has the same wording, and
  says the hardware and IP location properties need a paid key.

The countries console example can only show translated country names,
and those need a paid key, but its no-key message offered a free key
first. It now says the names need a paid key, links to contact us,
and then says where a key carrying them is created with a License Key.
Its header comment says the same. The Device Detection settings file
comment no longer says "for free" twice.
The web examples keep their pipeline on the class, and the getting
started web tests build theirs when they are collected. The paid key
note tests then built a page against a stand-in cloud. Once the
stand-in stopped, the class still held a pipeline pointing at it.
With a resource key set, the getting started web tests ran later
against that pipeline. The call was refused and the page answered 500.

The paid key note tests now put back the pipeline the class had, or
remove it where the class had none. A new test checks both.
@jwrosewell
jwrosewell marked this pull request as ready for review December 5, 2026 18:53
@jwrosewell
jwrosewell merged commit 8d5077b into rc Dec 5, 2026
6 of 7 checks passed
@jwrosewell
jwrosewell deleted the fix/examples-contact-us branch December 5, 2026 18:53
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.

2 participants