Closed Bug 937653 Opened 11 years ago Closed 11 years ago

Build a new endpoint serving android snippets JSON

Categories

(Snippets :: Service, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: hoosteeno, Assigned: giorgos)

References

Details

(Whiteboard: [kb=1187290] )

This endpoint will serve only json/android snippets that match the client-match rules in the request URL. It will serve all geographies and the client will sort out any geotargeted snippets. Let's use this bug's comments to specify the actual URL this endpoint will live at.
Current snippet url config lives under browser.aboutHomeSnippets.updateUrl and has a default value of https://snippets.mozilla.com/%STARTPAGE_VERSION%/%NAME%/%VERSION%/%APPBUILDID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/ Margaret: Do you plan to use the same configuration variable (updateUrl) or you'll be adding a new one? I'm asking so we can decide whether we will have to use the same endpoint for Android and depend on the %NAME% change to serve json and the Android snippets OR we are given the chance to create a new similar endpoint like for example: https://snippets.mozilla.com/json/%STARTPAGE_VERSION%/%NAME%/%VERSION%/%APPBUILDID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/ (Note the "json" part at the start) Thanks!
Flags: needinfo?(margaret.leibovic)
Got the answer on IRC: <mkelly> giorgos: margaret said they're using a seperate pref <mkelly> So we can set the URL to whatever
Flags: needinfo?(margaret.leibovic)
If you want to test, I put a test build with the patch from bug 937820 here (it will show up as fennec_leibovic in your app launcher): https://dl.dropboxusercontent.com/u/3358452/fennec-snippets.apk Here's the pref that patch uses: pref("browser.snippets.updateUrl", "https://snippets.mozilla.com/json/%SNIPPETS_VERSION%/%NAME%/%VERSION%/%APPBUILDID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/"); I used a %SNIPPETS_VERSION% variable name instead of %STARTPAGE_VERSION%, but the idea should be the same. Right now I just have it set to 1. So the URL this build actually uses is: https://snippets.mozilla.com/json/1/Fennec/28.0a1/20131118093510/Android_arm-eabi-gcc3/en-US/default/Linux%2018/default/default/ Feel free to go into about:config to change the pref to a development URL. (Also, FYI, that build just uses a hardcoded "US" country code, and it doesn't ping any metrics server.)
Whiteboard: [kb=1187290]
Assignee: nobody → giorgos
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Blocks: 962349
You need to log in before you can comment on or make changes to this bug.