Closed Bug 1457191 Opened 2 years ago Closed 2 years ago

Add dummy json file for testing with AS Router experiment

Categories

(Firefox :: Messaging System, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 61
Iteration:
61.4 - May 7
Tracking Status
firefox61 --- fixed

People

(Reporter: k88hudson, Assigned: k88hudson)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

We'd like to upload a dummy json file for testing with AS Router until we get a real endpoint from the snippet service. It will just have a small amount of JSON data, possibly with data uris, something like this: https://gist.github.com/k88hudson/2d627d17ebd3e622e5b05e060d98b182

If the AS Router experiment pref is turned on, Firefox will fetch this payload approximately every 4 hours.
Blocks: 1432588
Severity: normal → enhancement
What's involved in doing something like this?
Flags: needinfo?(jbuckley)
Assignee: nobody → jon
Iteration: --- → 61.4 - May 7
Priority: -- → P1
:ulfr - Kate would like to run an experiment in Firefox Beta that tests a new client implementation of Snippets. The idea would be to do a one-time conversion of the snippets currently running to a JSON format, upload that somewhere, and then roll out a Shield experiment changing a pref to use this new Snippets JSON endpoint.
Assignee: jon → jbuckley
Flags: needinfo?(jbuckley) → needinfo?(jvehent)
Works for me. It's not worse than the current snippets service.
Flags: needinfo?(jvehent)
Assignee: jbuckley → khudson
Attached file AS Router test messages for Nightly (obsolete) —
Comment on attachment 8972418 [details]
AS Router test messages for Nightly

{"messages": [
  {
    "id": "ADDON_MANAGER_42a35a10-2b2d-4fb0-9044-5c8a8575d45e",
    "template": "simple_snippet",
    "content": {
      "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABxZJREFUeNrsW1toHFUY/ndmd7OXbHY3m821zeZSYmtTErGtxYqWFhsEUdtaRAStIuKLUEFUfFGKCoIl+iLFBwUfWqRKkDy0KJS0EUlssS3RxjZokk3TNrtJdjfZ2+zcPGeSzGV3Jrub3WRrMj/MzpwzZ+b833fO/51/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KhJARyPA89y6B48xYqwZBPAsE6ZmA4qvwevNMDaMEWNdqhNfiRlI45ccnfqQCgXX/SzAWJeOxX/58P9yps/X9ZIBeA7/GZdlnWIPI/Cf9b/7zEegm26C/SfAAO0R0kkOgO30AAAAAElFTkSuQmCC",
      "text": "With Firefox's Add-ons Manager, there's just a few clicks between \"What are add-ons and why would I use them?\" to \"I didn't know an add-on could do that!\"",
      "button_label": "Read more",
      "button_url": "https://blog.mozilla.org/firefox/add-ons-manager/"
    }
  },
  {
    "id": "WIFI_38b24bfe-5e0c-4f6c-9164-03057dbd2d8b",
    "template": "simple_snippet",
    "content": {
      "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAAEJ5JREFUeAG9W3uMXFUZP+c+ZvY1u9sH2Cotr4AGalAgGCp0d3HboSAL0i4NIsFHAhr4Q4kSH9Fu/0ODxCgqGGIwREK6Bbotj25X6G4fKqEl0YSnWBBEkq7Sx+xr7uv4+507Z3pnd3a7MzvD2ezce88993t/3/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ASa13vg+IP9CQOVjC+wDxOoT1kork3lzD0UPQsHmPoBnnuqVgKYaMqo41EYDBPN0iTD+Pe24+uFQE+TNQCj4bX3Xp4iPOG/PhJIMnInqUCyNr1Lai90MvPMLPZ5LPU8i8hiB0PEjeW8j5/wH70sYaPrt0rQAAAABJRU5ErkJggg==",
      "text": "What’s the Wi-Fi? Stay safe the next time you connect to free public networks with these simple steps:",
      "button_label": "Learn More",
      "button_url": "https://advocacy.mozilla.org/en-US/safety/public-wifi"
    }
  }
]}
Attachment #8972418 - Attachment is obsolete: true
Uploaded as:

https://activity-stream-icons.services.mozilla.com/v1/messages.json
https://activity-stream-icons.services.mozilla.com/v1/messages.json.br
https://activity-stream-icons.services.mozilla.com/v1/messages.json.gz

They're all the same content, just using different compression (none, brotli, and gzip). I'd use the .br one
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Blocks: 1457543
Component: Activity Streams: Newtab → Messaging System
You need to log in before you can comment on or make changes to this bug.