Skip to content
This repository has been archived by the owner on Oct 24, 2019. It is now read-only.

Code clean-up tasks #37

Closed
10 of 11 tasks
k-mahoney opened this issue Aug 21, 2017 · 10 comments
Closed
10 of 11 tasks

Code clean-up tasks #37

k-mahoney opened this issue Aug 21, 2017 · 10 comments
Assignees

Comments

@k-mahoney
Copy link
Contributor

k-mahoney commented Aug 21, 2017

Ticket to track assorted, lingering code clean-up tasks, in preparation for future open source plans.

  • Merge linter https://github.com/mapbox/dispatch/pull/36
  • Add Travis
  • Abstract dispatch-incoming GitHub issue creation to function
  • Abstract dispatch-incoming Slack alert post to function
  • Normalize styling
  • Normalize test structure
  • Add in-line function documentation
  • Expand tests in dispatch-incoming
    • Tests for decrypt failure behavior
    • Add tests for error handling in self-service events
    • Add tests for error handling in PD events

/cc @oliikit @ianshward

@alulsh
Copy link
Member

alulsh commented Nov 3, 2017

I did a code review of Dispatch with an eye for open sourcing and also am doing some code clean up tasks. Here's what I'm doing and tracking. This is not necessarily a complete list, I'll either update this comment or add new comments as I work on things:

@k-mahoney
Copy link
Contributor Author

I'm not sure I understand the reasoning behind having a package lock here.
Rarely see it used, much less committed to a repository.

@alulsh
Copy link
Member

alulsh commented Nov 3, 2017

@k-mahoney see https://github.com/mapbox/dispatch/issues/87 and https://github.com/mapbox/dispatch/issues/84. A package-lock.json is supposed to be checked in to source code.

@alulsh
Copy link
Member

alulsh commented Nov 3, 2017

Oops https://github.com/mapbox/dispatch/pull/85 explains it better, but essentially a minor bump in nock broke the tests on master. With a package-lock this would've been avoided.

@k-mahoney
Copy link
Contributor Author

k-mahoney commented Nov 3, 2017

Alright update, why would we commit this huge dependency tree rather than just pinning versions in the package.json?

@alulsh
Copy link
Member

alulsh commented Nov 3, 2017

@k-mahoney - You can run npm update if you want to check for updates to dependencies. The package-lock.json helps to ensure that what you're running locally on your dev machine is the same as what gets deployed. It also makes sure that what's on staging is the same as what gets deployed to master.

Not using a package-lock.json cost 2 members of our team 2 days of work to fix a bug that wasn't our fault, so I am biased towards using one to prevent this from happening again.

@alulsh alulsh mentioned this issue Nov 3, 2017
7 tasks
@k-mahoney
Copy link
Contributor Author

Wow, today I learned NPM's version pinning doesn't actually work and their idea of a bandaid is dumping the entire dependency tree.

A dependency of one of your dependencies may have published a new version, which will update even if you used pinned dependency specifiers (1.2.3 instead of ^1.2.3)

Thank you for your patience @alulsh - carry on 😬

@alulsh
Copy link
Member

alulsh commented Nov 7, 2017

Merged and deployed https://github.com/mapbox/dispatch/pull/94 to staging and production tonight. This was my top priority clean up + open source prep.

The other clean up work I would do would be fixing + improving error messages, but I see this as a lower priority than updating our docs for external audiences as well as other bug fixes and feature improvements.

@k-mahoney k-mahoney added this to Current phase in Dispatch Roadmap Nov 9, 2017
@k-mahoney k-mahoney self-assigned this Jan 23, 2018
@k-mahoney
Copy link
Contributor Author

In progress in https://github.com/mapbox/dispatch/pull/113.

@k-mahoney
Copy link
Contributor Author

These are complete in #113.

Dispatch Roadmap automation moved this from Current phase to Complete Feb 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants