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

Feature: Add --offline option #71

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

ee7
Copy link
Member

@ee7 ee7 commented Oct 23, 2020

Motivations:

  1. It allows us to establish an initial state for a problem-specifications directory, which means we can do black-box testing of the release binary. That is, we wouldn't be able to assert the exact outcome after running the binary if the problem-specifications directory is always different at the start of testing.
  2. Maintainers can still use the tool even when they have no internet connection, or a very bad one.
  3. Maintainers might want a "trust me, I know what I'm doing" switch so that they don't have to wait for a git fetch, knowing that problem-specifications doesn't update that often.
  4. Developers of canonical_data_syncer can also benefit from 3 and 4.

Decisions:

  • Implement this as an --offline flag, rather than an --online flag. The current implementation is seen as harder to misuse.

Closes: #66

Motivations:
1. It allows us to establish an initial state for a
   `problem-specifications` directory, which means we can do black-box
   testing of the release binary. That is, we wouldn't be able to assert
   the exact outcome after running the binary if the
   `problem-specifications` directory is always different at the start
   of testing.
2. Maintainers can still use the tool even when they have no internet
   connection, or a very bad one.
3. Maintainers might want a "trust me, I know what I'm doing" switch so
   that they don't have to wait for a `git fetch`, knowing that
   `problem-specifications` doesn't update that often.
4. Developers of `canonical_data_syncer` can also benefit from 3 and 4.

Decisions:
- Implement this as an `--offline` flag, rather than an `--online` flag.
  The current implementation is seen as harder to misuse.

Closes: exercism#66
@ErikSchierboom ErikSchierboom merged commit c592a0d into exercism:master Oct 23, 2020
@ee7 ee7 deleted the feature-add-offline-option branch October 23, 2020 14:35
ee7 added a commit to ee7/exercism-configlet that referenced this pull request Jan 21, 2021
Motivations:
1. It allows us to establish an initial state for a
   `problem-specifications` directory, which means we can do black-box
   testing of the release binary. That is, we wouldn't be able to assert
   the exact outcome after running the binary if the
   `problem-specifications` directory is always different at the start
   of testing.
2. Maintainers can still use the tool even when they have no internet
   connection, or a very bad one.
3. Maintainers might want a "trust me, I know what I'm doing" switch so
   that they don't have to wait for a `git fetch`, knowing that
   `problem-specifications` doesn't update that often.
4. Developers of `canonical_data_syncer` can also benefit from 3 and 4.

Decisions:
- Implement this as an `--offline` flag, rather than an `--online` flag.
  The current implementation is seen as harder to misuse.

Closes: exercism#66
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.

Feature: Consider adding an offline mode
2 participants