Commit graph

931 commits

Author SHA1 Message Date
Ben Schwartz
23e0600898 Remove lingering mentions of Bower
Bower is no longer used
2021-02-22 14:31:02 -05:00
mpmcroy
78407ddc69
Removes unnecessary logging statement (#830)
* Removes unnecessary logging
2021-02-22 09:47:54 -05:00
mpmcroy
c36afbcbbb
Repurposes TokenManager as CloudAccounts (#827)
* gitignore

* Converts ManagedServerRepository into Account

* Adds CloudAccounts

* Moves token manager to cloud accounts

* Auto-format

* Newline

* Oops wrong year

* Addresses review commetns

* Addresses review comments

* Addresses review comments

* Addresses review commetns
2021-02-19 16:30:54 -05:00
Benjamin M. Schwartz
eb5ac5eeb4
Merge pull request #822 from Jigsaw-Code/bemasc-shellcheck
Require scripts to be shellcheck-compliant
2021-02-19 15:21:27 -05:00
Benjamin M. Schwartz
5814f9772c
Exclude bower_components from tslint
Co-authored-by: Jonathan Cohen <cohenjon@google.com>
2021-02-19 15:15:01 -05:00
Ben Schwartz
1e0a283410 Exclude bower_components 2021-02-19 14:49:36 -05:00
Sarah Laplante
da63d5e3c2
Merge pull request #828 from Jigsaw-Code/laplante-config
bump ssconfig version
2021-02-19 14:43:13 -05:00
Sarah Laplante
3dcbe1499d bump ssconfig version 2021-02-19 14:10:09 -05:00
Ben Schwartz
33608cd1be DOWNLOAD -> DOWNLOAD_DIR 2021-02-19 13:57:53 -05:00
alalamav
7b64dc4465
Update sentry webhook runtime to node 12 (#825) 2021-02-19 12:30:22 -05:00
Ben Schwartz
562c610b86 Download a pinned version of Shellcheck 2021-02-18 21:52:28 -05:00
Ben Schwartz
a08f8227d4 Respond to review comments 2021-02-17 16:56:37 -05:00
Ben Schwartz
42ba3ae25b Minor tweaks 2021-02-17 13:14:28 -05:00
Ben Schwartz
7d1fe0205c Require scripts to be shellcheck-compliant 2021-02-17 11:57:32 -05:00
Benjamin M. Schwartz
422a610465
Merge pull request #823 from Jigsaw-Code/bemasc-pre-shellcheck
Slightly nontrivial shell cleanup
2021-02-17 11:57:10 -05:00
Ben Schwartz
d41833b65a Slightly nontrivial shell cleanup
These are slightly nontrivial shell cleanups discovered in the course of
attempting shellcheck compliance.
2021-02-16 21:17:47 -05:00
Benjamin M. Schwartz
67d3b037ce
Merge pull request #821 from Jigsaw-Code/bemasc-logs
Improved error handling in the install script
2021-02-16 12:02:13 -05:00
Ben Schwartz
f6bbab5378 Improved error handling in the install script 2021-02-12 17:33:55 -05:00
Benjamin M. Schwartz
f583c5ee81
Merge pull request #818 from Jigsaw-Code/bemasc-pre-shellcheck
Substantive shell script cleanups
2021-02-12 16:21:32 -05:00
Ben Schwartz
db3a6f3ff7 Revert "Get rid of tr"
This reverts commit c2ae78d4db.
2021-02-12 14:57:45 -05:00
Ben Schwartz
fe037ec726 Remove CONNECTIONS_PATH and FEATURES_PATH 2021-02-12 14:27:41 -05:00
Ben Schwartz
d3d545e0c3 Add a comment on the string substitution formula 2021-02-12 14:25:25 -05:00
Ben Schwartz
c2ae78d4db Get rid of tr 2021-02-12 14:18:16 -05:00
Ben Schwartz
4710a15536 Use --quiet instead of -q 2021-02-12 14:08:23 -05:00
Ben Schwartz
abc4ae8772 Substantive shell script cleanups
Running "shellcheck", and attempting to comply with the shell script
style guide, required hundreds of trivial changes, and a small number of
nontrivial ones.  For ease of review, this PR includes only the
nontrivial changes.
2021-02-12 11:48:18 -05:00
Sarah Laplante
14d0650a1e
Merge pull request #815 from Jigsaw-Code/laplante-config
bump ssconfig version
2021-02-12 11:20:40 -05:00
Benjamin M. Schwartz
c93c900440
Merge pull request #814 from Jigsaw-Code/bemasc-ipinfo
Print a warning if the hostname or IP is invalid
2021-02-12 10:13:48 -05:00
Sarah Laplante
ba1a964605 bump ssconfig version number 2021-02-11 20:29:21 -05:00
Ben Schwartz
fc6d447ccc Standardize curl usage 2021-02-11 14:40:28 -05:00
Ben Schwartz
8fd61a3fc3 Print a warning if the hostname or IP is invalid
See #776
2021-02-11 14:22:53 -05:00
Benjamin M. Schwartz
4dd8644e72
Merge pull request #812 from Jigsaw-Code/bemasc-logs
Provide more detailed logs if setup fails
2021-02-11 12:01:07 -05:00
Ben Schwartz
9aa0f64e81 Merge branch 'master' into bemasc-logs 2021-02-11 11:23:41 -05:00
Ben Schwartz
d54b916484 Switch STDOUT and STDERR 2021-02-10 11:02:43 -05:00
Jonathan Cohen
48e52787a8
CI Updates (#804)
* Fix broken Travis config

* Doesn't also build the Linux or Mac manager on server deploy
* Correctly builds a Windows binary on manager release (although we still have to manually upload build artifacts)
* Renames the Shadowbox deployment step

* Run Linux unit tests on Github Actions

* Run manager tests on mac, linux, and windows

* Fix syntax, use correct node version

* Don't test Shadowbox on Windows or Mac

* Don't cancel other jobs in the matrix when the build on one platform fails

* Use bash on all platforms.  This uses Git for Windows bash on Windows

* Remove Windows tests for now.  This is not a downgrade as we were only testing on linux before anyways

* Reduce code duplication

* Remove test config from Travis

* Respond to review comments:
 * Remove redundant build step in the shadowbox unit testing workflow
 * Add a testing step to the shadowbox release Travis workflow

* Pin to Ubuntu 16.04 to match our release infrastructure on Travis

* Run daily releases of the manager on all platforms

* Verbose mode on docker-compose

* try turning off Docker Content Trust

* Pin to a version of distroless Python and stop removing temp files at the end

* Remove verbose from compose

* Use Ubuntu 16.04

* Comment the pinned python image

* Add temp state cleanup back
2021-02-09 13:34:32 -05:00
Ben Schwartz
64d4c9e1cf Reorganize output logging 2021-02-09 12:20:33 -05:00
Ben Schwartz
e7745aafdf Adjust logging strategy 2021-02-08 17:18:10 -05:00
Ben Schwartz
326131d371 Provide more detailed logs if setup fails
This should help us to debug mysterious installation failures.
2021-02-08 17:18:10 -05:00
Vinicius Fortuna
90e175ff96
Merge pull request #809 from Jigsaw-Code/fortuna-json
Fix DataUsageByAccessKey and ServerConfig
2021-02-08 14:31:05 -05:00
Vinicius Fortuna
c9a906d248 Fix AccessKey 2021-02-05 17:00:45 -05:00
Vinicius Fortuna
e67b068630 Remove unused code 2021-02-05 16:37:52 -05:00
Vinicius Fortuna
1e17ebc5d1 Remove unused type 2021-02-05 14:55:31 -05:00
Vinicius Fortuna
f0928afbd1 Fix DataUsageByAccessKey and ServerConfig 2021-02-05 14:49:40 -05:00
Jonathan Cohen
1c5b563d0d
Internationalize units and currency (#780)
* Internationalize data transfer amounts

* Internationalize units and currency

This required updating to Typescript 4 and adding compiler changes for the server manager in order to support newer features of `Intl`.

This change also fixes it so that the server city, creation date, and data limits no longer are stuck to the old language ater changing languages.

* Remove stray log

* Respond to review comments

* Remove byte-size

* Move to `web_app`

This code is only intended to be run in a web environment, not in Node.

* Respond to review comments

* Use property binding to the app language

* Respond to review comments

* Respond to review comments

* s/get/format

* Error out on Node

* Set the persisted app language before starting the app to prevent issues with undefined language at startup

* Respond to review comments and broaden covered languages
2021-02-04 18:47:45 -05:00
Jonathan Cohen
cb4c3f8d31
Ensure that Karma and Electron use the same Chromium version (#803)
* Ensure that Karma and Electron use the same Chromium version

* Move the unit test to server_manager.  This fixes an error on Travis involving importing from a package.json governed by a different tsconfig

* Unconditionally build the install script in the web app test
2021-02-01 13:04:56 -05:00
Vinicius Fortuna
0fdf9e88ac
Merge pull request #788 from Jigsaw-Code/dependabot/npm_and_yarn/ini-1.3.8
Bump ini from 1.3.5 to 1.3.8
2021-01-29 15:59:46 -05:00
Vinicius Fortuna
b4436f3861
Merge pull request #764 from Jigsaw-Code/dependabot/npm_and_yarn/find-my-way-2.2.5
Bump find-my-way from 2.2.3 to 2.2.5
2021-01-29 15:59:04 -05:00
Vinicius Fortuna
e99e39916b
Merge pull request #727 from Jigsaw-Code/dependabot/npm_and_yarn/node-fetch-2.6.1
Bump node-fetch from 2.6.0 to 2.6.1
2021-01-29 15:58:25 -05:00
Vinicius Fortuna
076f6994bd
Merge pull request #741 from Jigsaw-Code/dependabot/npm_and_yarn/src/server_manager/node-forge-0.10.0
Bump node-forge from 0.7.6 to 0.10.0 in /src/server_manager
2021-01-29 15:54:39 -05:00
mpmcroy
14d3c49660
Adds id to server and updated serverId to metricsId (#799)
* Adds id to server and updated serverId to metricsId

* Fixes test

* Addresses review comments
2021-01-27 13:03:15 -05:00
mpmcroy
3878f443c5
Moves the "server progress view" to the "create server" flow (#790)
* Moves server progress view to outline-server-view

* Stops progress view animation; small refactor

* Auto-format

* Updates app tests

* Addresses review comments

* Addresses review comments

* Addresses review comments

* Addresses review comments

* Explicitly renders the server view dom-repeat to ensure view is added to the DOM

* Makes showServer synchronous
2021-01-15 12:08:53 -05:00