Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed TODOs and documented them in ticket tracker #3615

Merged
merged 1 commit into from
Jun 29, 2018

Conversation

heartsucker
Copy link
Contributor

Status

Ready for review

Description of Changes

(kinda sorta) Fixes #724

Just removed TODOs

Testing

Just let CI run.

@heartsucker heartsucker requested a review from conorsch as a code owner June 29, 2018 14:33
@heartsucker heartsucker requested a review from a user June 29, 2018 14:33
@codecov-io
Copy link

codecov-io commented Jun 29, 2018

Codecov Report

Merging #3615 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #3615   +/-   ##
========================================
  Coverage    85.12%   85.12%           
========================================
  Files           37       37           
  Lines         2367     2367           
  Branches       260      260           
========================================
  Hits          2015     2015           
  Misses         289      289           
  Partials        63       63
Impacted Files Coverage Δ
crypto_util.py 96% <0%> (ø) ⬆️
journalist_app/decorators.py 100% <0%> (ø) ⬆️
models.py 88.35% <0%> (ø) ⬆️
config.py 85.36% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3554e7...3909172. Read the comment docs.

Copy link
Contributor

@redshiftzero redshiftzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a big fan of tracking these TODOs in the bug tracker 🤘 thanks @heartsucker

@redshiftzero redshiftzero merged commit 25d988b into develop Jun 29, 2018
@redshiftzero redshiftzero deleted the remove-todos branch June 29, 2018 21:27
@ghost
Copy link

ghost commented Jun 29, 2018

How do we relate the TODO's with their replacement in the list of issues?

Copy link
Contributor

@redshiftzero redshiftzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey - I went through and wrote out my justifications for these line by line for @dachary to peruse. also: @dachary or @heartsucker, if either you disagree with any of my comments, feel free to add a note on the corresponding issue or file a followup

@@ -50,9 +50,6 @@ output like this:
Passphrases include the spaces between the words, but not leading or trailing
whitespace. Be sure to save this passphrase in the appropriate KeePassX database.

.. todo:: Clarify how to set up TOTP/HOTP through ``./manage.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue #3594

@@ -164,15 +164,6 @@ from the `Vagrant Downloads page`_ and then install it.
instructions in Vagrantfile that would enable vagrant-cachier are
currently commented out.

.. todo:: This warning is here because a common refrain during hackathons for
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

irrelevant, we use the Docker dev env at hackathons (rarely if ever to people wade into the waters 🌊 of the staging VMs at hackathons)

@@ -40,13 +40,6 @@ key, used for decryption, stays on the *Journalist Workstation*. The
public key, used for encryption, is copied to the *Secure Viewing
Station*.

.. todo:: This document recommends transferring documents from the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue #3598

@@ -41,9 +41,6 @@ you have a lot of journalists who wish to access SecureDrop
concurrently, you will need to provision multiple *Secure Viewing
Stations*.

.. todo:: Describe best practices for provisioning multiple Secure
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue #3596

@@ -58,9 +58,6 @@ the sources, and the journalists.

|SecureDrop architecture overview diagram|

.. todo:: A picture of an actual physical setup (e.g. the office
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue #3599

@@ -161,7 +161,6 @@ def test_unauthorized_access_redirects_to_login(journalist_app):

def test_login_throttle(journalist_app, test_journo):
# Overwrite the default value used during testing
# TODO this may break other tests during parallel testing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

covered by #2755 and #2535

@@ -1130,9 +1129,6 @@ def tearDown(self):
# making a point of this, we hope to avoid the introduction of new tests,
# that do not truly prove their result because of this disconnect between
# request context in Flask Testing and production.
#
# TODO: either ditch Flask Testing or subclass it as discussed in the
# aforementioned issue to fix the described problem.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue #3607

@@ -16,7 +16,7 @@

FILES_DIR = abspath(join(dirname(realpath(__file__)), '..', 'files'))

# TODO: the PID file for the redis worker is hard-coded below. Ideally this
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one is also issue #3606

@@ -13,7 +13,6 @@ def test_tor_service_directories(File, Sudo, tor_service):
with Sudo():
f = File("/var/lib/tor/services/{}".format(tor_service['name']))
assert f.is_directory
# TODO: tor might mark these dirs as setgid
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue #3602

@@ -153,8 +153,6 @@ Once the restore is done, the Application Server will use the original Source an
*Journalist Interface* Onion URLs. You will need to update the corresponding
files on the Admin Workstation:

.. todo:: We really should automate this process for Admins.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imho fine to remove, this is no longer a priority to implement as:

  1. the correct behavior is documented for admins,
  2. the restore part of the backup/restore is a rare action. as such, engineering effort spent on automating it does not produce benefits to end users as much as automating more common tasks e.g. the journalist provisioning process (issue Provisioning utility for journalists & Journalist Workstations #1177, a common request by admins)

@ghost
Copy link

ghost commented Jun 30, 2018

Great reference, thanks! @redshiftzero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants