[TV][2.5][Marketplace] Create offline cache content for Marketplace

RESOLVED FIXED

Status

P1
normal
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: jocheng, Assigned: Fischer)

Tracking

Points:
---
Dependency tree / graph

Firefox Tracking Flags

(blocking-b2g:2.5+)

Details

(Whiteboard: [ft:conndevices])

Attachments

(1 attachment)

(Reporter)

Description

3 years ago
We need to create a offline cache content for TV 2.5 marketplace.
(Reporter)

Updated

3 years ago
Assignee: nobody → fliu
No longer depends on: 1227160, 1227115
See Also: → bug 1227160
(Reporter)

Comment 1

3 years ago
We need:
1. Put offline content (https://github.com/jostw/marketplace-tv-front-end/tree/gh-pages) on a mock server.
2. Use Preload.py to create a offline package from the website.
3. Revise the "origin" to https://marketplace.allizom.org/tv
Flags: needinfo?(fliu)
(Reporter)

Updated

3 years ago
blocking-b2g: --- → 2.5+

Comment 2

3 years ago
(In reply to Josh Cheng [:josh] from comment #1)
> We need:
> 1. Put offline content
> (https://github.com/jostw/marketplace-tv-front-end/tree/gh-pages) on a mock
> server.
> 2. Use Preload.py to create a offline package from the website.
> 3. Revise the "origin" to https://marketplace.allizom.org/tv

Correctness:
1. Use preload.py script to get a version from testing server, and manually edit it's manifest.
2. The origin / manifestURL should point to production server, i.e. https://marketplace.firefox.com/tv/

Test:
Since there is no production server now, we could only test offline cases. Should cover the following scenarios:
1. Boot-up without network connection, see if offline screen shows.
2. connected to a network, see if "sever not found" (or something similar) error page shows.
3. disconnect network, and the offline screen displays when you try to access any link.
Flags: needinfo?(fliu)

Comment 3

3 years ago
(In reply to Evelyn Hung [:evelyn] from comment #2)
> (In reply to Josh Cheng [:josh] from comment #1)
> > We need:
> > 1. Put offline content
> > (https://github.com/jostw/marketplace-tv-front-end/tree/gh-pages) on a mock
> > server.
> > 2. Use Preload.py to create a offline package from the website.
> > 3. Revise the "origin" to https://marketplace.allizom.org/tv
> 
> Correctness:
> 1. Use preload.py script to get a version from testing server, and manually
> edit it's manifest.
> 2. The origin / manifestURL should point to production server, i.e.
> https://marketplace.firefox.com/tv/
> 
> Test:
> Since there is no production server now, we could only test offline cases.
> Should cover the following scenarios:
> 1. Boot-up without network connection, see if offline screen shows.
> 2. connected to a network, see if "sever not found" (or something similar)
> error page shows.

should be marketplace's customized error page: "We're sorry...". :)

> 3. disconnect network, and the offline screen displays when you try to
> access any link.
(Reporter)

Updated

3 years ago
Flags: needinfo?(fliu)
(Reporter)

Comment 4

3 years ago
Hi Fischer,
DO you have any update? Thanks
(Assignee)

Comment 5

3 years ago
Created attachment 8698384 [details]
marketplace.prod-1210.zip
Flags: needinfo?(fliu)
(Assignee)

Comment 6

3 years ago
The test result as below:
1. Put the attachment marketplace.prod-1210.zip under the external-apps folder and then make TV build
2. without Internet, open the target marketplace.prod app for the 1st time
3. The preloaded offline cache content of the target marketplace.prod app is present as expected
4. Turn on Internet
5. Open the target marketplace.prod app with Internet. The screen is blank white because the network downloads stop at 404 response.
6. Reopen the target marketplace.prod app with Internet. The screen shows the standard marketplace's not-found page because the network downloads proceed to download the standard not-found page.

Conclusion:
1. The preloaded offline cache works as expected and pass this test.
2. In the step 5 & 6, since the real TV marketplace is still unavailable, not-found result is expected.
3. Although the outcomes of the step 5 & 6 are different, in the bug 1228974 the example preload hosted app(hosted app on a available website) loads page correctly with internet. Since this bug aims to verify if the preloaded offline cache could still works with hosted app on a unavailable website and the bug 1228974's test result is passed. We make this bug fixed currently and will test the scenario of internet connected when the real website is avaiable.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.