Project

General

Profile

Feature #16339

Adjust download counter to ISO vs IMG

Added by sajolida 4 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
01/10/2019
Due date:
% Done:

0%

QA Check:
Feature Branch:
bugfix/16339-counter-vs-img
Type of work:
Code
Blueprint:
Starter:
Affected tool:

History

#1 Updated by sajolida 4 months ago

  • Tracker changed from Bug to Feature
  • Subject changed from Download counter doesn't handle ISO vs IMG to Adjust download counter to ISO vs IMG
  • Description updated (diff)
  • Assignee changed from sajolida to lamby
  • QA Check set to Ready for QA
  • Feature Branch set to bugfix/16339-counter-vs-img

Chris: Would you be able to review this small branch to fix the download counter on the branch that integrates USB images?

We worked on the counter in parallel of the adaptations of the download page for the USB images and I clearly broke it in a buggy merge conflict.

Then tell me how much time you spent on this.

#2 Updated by sajolida 4 months ago

The branch is based on feature/15292-usb-image.

#3 Updated by u 4 months ago

@sajolida: when Chris is done with the review, could you please also check how this might affect the verification-extension? There is a patch in the extension for testing locally that is related to the code of the counter in download.js (I did not look at your branch, just at the title of this ticket and inferred that there might be a link.)

#4 Updated by lamby 4 months ago

  • Assignee changed from lamby to sajolida
  • QA Check changed from Ready for QA to Pass

LGTM. Methodology was:

  • Checked out bugfix/16339-counter-vs-img
  • Built the website
  • Served it locally via cd config/chroot_local-includes/usr/share/doc/tails/website && python -m SimpleHTTPServer to ensure HTTP and not file://
  • Navigate to http://127.0.0.1:8000/install/download.en.html
  • Note the "Download... USB" copy. ie. I have the right branch/build.
  • Check network console for baseline.
  • Check JS console - no errors
  • Click download
  • New window opens pointing to https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.8/tails-amd64-3.8.img (which 404s, FYI!)
  • See that we do a counter ping both in network console and SimpleHTTPServer
  • Click "I already.."
  • Note another counter ping in both network console and SimpleHTTPServer

(I spent 30 minutes on this; testing JS is click-intensive..)

#5 Updated by sajolida 4 months ago

LGTM

Cool! So I merged it into feature/15292-usb-image (and deleted
bugfix/16339-counter-vs-img from tails.git).

  • Served it locally via cd config/chroot_local-includes/usr/share/doc/tails/website && python -m SimpleHTTPServer to ensure HTTP and not file://

Wow, I didn't know that but it's really cool! :)

  • New window opens pointing to https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.8/tails-amd64-3.8.img (which 404s, FYI!)

We're not serving USB images yet on the mirrors.

(I spent 30 minutes on this; testing JS is click-intensive..)

I wouldn't have been faster...

#6 Updated by sajolida 4 months ago

@sajolida: when Chris is done with the review, could you please also check how this might affect the verification-extension?

Thanks for chiming in! The patch
verification-extension.git:tails.git-0001-Make-Tails-Verification-work-on-a-local-build-of-the.patch
stills applies fine on the branch feature/15292-usb-image. So we're good!

#7 Updated by sajolida 4 months ago

  • Status changed from Confirmed to Resolved
  • Assignee deleted (sajolida)
  • QA Check deleted (Pass)

Also available in: Atom PDF