Repository navigation
Description
The example helpers answer a Property the data file or resource key in use cannot give with a link to the contact page in every answer, tagged with the helper's own file. The specification asks for the link once in an example's output, tagged with the example's file.
What the specification says
device-detection-specification/required-examples.md lines 101 to 113 at d79bbe3b:
Where the data file in use has no value for one of them, the example says that the Property needs the Enterprise Data File, rather than leaving it out or showing a default value, and once in its output gives a link to the 51Degrees contact page to ask for a copy. The link the example writes carries
utm_source=code,utm_medium=example, the language repository's name asutm_campaignand the example's file asutm_content, so that an enquiry can be traced to the example that prompted it.
ip-intelligence-specification/required-examples.md lines 88 to 91 at the same commit say an example "says of each one the data file in use cannot give that it needs the Enterprise data file, and once gives a link to the contact page to ask for a copy".
What the examples do
Once #193 is in, the answer is plain text, which that pull request fixes, and these two gaps remain. Both were there before #193 as well.
- The link is in every missing Property's answer.
PropertyHelper.tryGetinexamples/device-detection/sharedand inexamples/ip-intelligence/sharedputs the whole link into each answer. An example that reads many Properties through it, such as the IP IntelligenceGettingStartedCloudMixed(24 reads) orGettingStartedCloud(16 reads), can print the link once for each Property it cannot answer. - The link is tagged with the helper's file. Every answer, and the IP Intelligence advisory
PRICING_MESSAGEthat the helper logs once, carriesutm_content=shared-src-main-java-...-shared-propertyhelper.java, so an enquiry cannot be traced to the example that prompted it. The banner the web examples'HtmlContentHelperadds is tagged with that helper's file in the same way.
What is wanted
- The helper's answer names the Property and says it needs the Enterprise data file or a resource key that includes it, without the link.
- Each example gives its own tagged link once in its output. Most on-premise console examples already hold a
CONTACT_USconstant tagged with their own file and print it once, so the cloud console examples, the IP Intelligence advisory and the web banners are the ones to change. - A test for each shared helper that its answer holds no link, and a test that an example's output holds the link once.
Related: #197, making the link an anchor on the web pages.
Activity