4654 Commits

Author SHA1 Message Date
emizzle
9a830c3423
Remove default behavior of logging to file
Default behavior of logging to file is no longer needed now that Embark log history can be properly served using the `ProcessLogsApi` and `LogHandler` classes.

# Conflicts:
#	lib/core/logger.js
#	lib/modules/blockchain_process/blockchain.js
2018-10-25 13:04:33 +02:00
emizzle
f5c77b1416
Process logs API refactor
There are three separate instances of process log APIs: embark logs, blockchain logs (when in standalone mode), and child process logs (storage, communication, blockchain, etc). Each one was repeating the implementation of creating a process log API endpoint. This commit centralises the API declaration by using the class `ProcessLogsApi`.

`ProcessLogsApi` is started for all three components mentioned above: blockchain (in standalone) in the `BlockchainListener` module, embark in the `EmbarkListener` module, and for all child processes in the `ProcessLauncher`.

These listeners have two functions:
1. Create the process logs API endpoints for `get` and `ws`, and
2. Ensure that all logs are logged through the `LogHandler`, which normalises the output of the log and ensures each log has a timestamp and id (used in the cockpit for log ordering).

Also, this commit moved the pipeline in to a module, so that the `embark` object could be passed to the `ProcessLogsApi` (to be used for registering API endpoints).
2018-10-25 13:04:28 +02:00
emizzle
3246b62151
Revert changes to scaffold function in cmd_controller.js 2018-10-25 12:51:48 +02:00
emizzle
728713a183
Embark blockchain logs when running standalone
When running `embark blockchain` followed by `embark run` previously, logs generated in the standalone `embark blockchain` process were black boxed and not accessible to the main Embark process.

This is fixed by creating a client IPC connection in the `embark blockchain` process that connects to the IPC server connection running in `embark run`. The connection is made by way of polling `ipc.connect` and continues polling even after a connection is made in case `embark run` is killed and restarted without restarting `embark blockchain`.

`LogHandler` was introduced to extrapolate functionality used in `ProcessLauncher` that needed to also be used in the standalone blockchain process. It also caps the number of logs that are stored in memory per process by a constant value defined in `constants.json`.

A `blockchain_listener` was module was created (and run inside of `embark run`) that listens for logs emitted by the `embark blockchain` client IPC and runs them through the `LogHandler`. Additionally, this module registers the API endpoints needed to handle requests for blockchain process logs in the cockpit (which were 404’ing before).

# Conflicts:
#	lib/modules/blockchain_process/blockchain.js
2018-10-25 12:51:43 +02:00
Iuri Matias
4b00145e4b
Merge pull request #160 from status-im/feature/file-tree-icons
Add icons to file tree
2018-10-25 06:13:25 -04:00
Iuri Matias
21fd3292b8
Merge pull request #161 from status-im/chores/warning
Fix warnings
2018-10-25 06:11:00 -04:00
Iuri Matias
767b81da63
Merge pull request #162 from status-im/feature/add-contracts-overview-to-deployment
Add function to contract deployment
2018-10-25 06:10:44 -04:00
Iuri Matias
8591923e53
Merge pull request #163 from status-im/feature/remove-footer
Remove footer
2018-10-25 06:10:25 -04:00
Anthony Laibe
df86bae377 Remove footer 2018-10-25 10:43:26 +01:00
Anthony Laibe
7e1a6848ae Add function to contract deployment 2018-10-25 09:43:50 +01:00
Anthony Laibe
48715efec8 Fix warnings 2018-10-25 08:23:09 +01:00
Anthony Laibe
8ae6c6c154 Add icons to file tree 2018-10-25 08:06:37 +01:00
Iuri Matias
3d5028e41b
Merge pull request #159 from status-im/improve_sidebars_width
improve sidebars width
2018-10-24 17:21:09 -04:00
Iuri Matias
2821c3deb1 improve sidebars width 2018-10-24 17:20:36 -04:00
Iuri Matias
9023231c17
Merge pull request #157 from status-im/pkg_shrinkwrap_tidyup
Pkg shrinkwrap tidyup
2018-10-24 17:14:47 -04:00
Iuri Matias
886b78f497
Merge pull request #158 from status-im/feature/move-contracts-page-to-explorer
Move contracts to explorer
2018-10-24 17:13:37 -04:00
Iuri Matias
90c033187d
Merge pull request #156 from status-im/features/explorer-pagination
Add pagination to explorer
2018-10-24 17:13:16 -04:00
Jonathan Rainville
60c07072cf review comments 2018-10-24 16:41:05 -04:00
Andre Medeiros
d02edf869b Move contracts to explorer 2018-10-24 16:03:46 -04:00
Jonathan Rainville
d8145e80b1 fix tabs 2018-10-24 16:03:40 -04:00
Jonathan Rainville
e268c5b8c8 remove hard-coded color 2018-10-24 15:23:31 -04:00
Jonathan Rainville
c50390fb01 fix dark-theme layout 2018-10-24 15:20:31 -04:00
Jonathan Rainville
90fafd0158 fix linting on the explorer 2018-10-24 15:09:32 -04:00
Michael Bradley, Jr
d817c100e3 shrinkwrap -- all http:// -> https:// 2018-10-24 14:08:23 -05:00
Michael Bradley, Jr
e68805bea7 bump shrinkwrap 2018-10-24 14:08:23 -05:00
Michael Bradley, Jr
5afbd09d68 npm-scripts alpha order
as the list grows (will significantly w/ babel/ts/webpack tooling) it's easier
to read and find scripts if list is sorted
2018-10-24 14:08:23 -05:00
Michael Bradley, Jr
31abf90694 bin, directories, main -- grouped/ordered before scripts 2018-10-24 14:08:23 -05:00
Michael Bradley, Jr
fde5229548 keywords alpha order 2018-10-24 14:08:23 -05:00
Michael Bradley, Jr
895e10ff4a reorg some pkg metadata at top of pkg json 2018-10-24 14:08:23 -05:00
Michael Bradley, Jr
3ddb6b36bb deps alpha order 2018-10-24 14:08:18 -05:00
Jonathan Rainville
3d3ce559e9 add pagination to transactions too 2018-10-24 14:51:09 -04:00
Jonathan Rainville
ab3fa97592 change page when clicking on it for blocks 2018-10-24 14:51:09 -04:00
Jonathan Rainville
8bdc8d41d4 start pagination at the end 2018-10-24 14:51:09 -04:00
Jonathan Rainville
a1b18b74f8 conflict in css 2018-10-24 14:50:07 -04:00
Jonathan Rainville
6c92e7b24d display correct pagination whatever the page 2018-10-24 14:48:48 -04:00
Jonathan Rainville
09e21f3386 conflict in layout 2018-10-24 14:48:48 -04:00
Jonathan Rainville
78e9d3257d conflict in explorer 2018-10-24 14:48:48 -04:00
Michael Bradley, Jr
e2b0e74eb3 exact version per npm ls --depth=0
a caret range snuck back into pkg json during the rebase
2018-10-24 13:38:17 -05:00
Michael Bradley, Jr
eb92558898 rm pkg lock since we're using shrinkwrap 2018-10-24 13:37:52 -05:00
Iuri Matias
9a0c562568
Merge pull request #155 from status-im/restyle-code-editor-top-bar
Restyle code editor top bar
2018-10-24 14:17:01 -04:00
André Medeiros
5fd69b60fa
Merge branch 'develop_51' into restyle-code-editor-top-bar 2018-10-24 14:14:59 -04:00
Iuri Matias
7175bc506c
Merge pull request #153 from status-im/restyle-explorer
Restyle explorer
2018-10-24 14:13:11 -04:00
Iuri Matias
1862848105
Merge pull request #152 from status-im/feature/editor-tabs
Add editor tabs
2018-10-24 14:12:32 -04:00
Iuri Matias
8e6272d75f fix merge conflict 2018-10-24 14:11:24 -04:00
Anthony Laibe
f0eb03bf05 Add editor tabs 2018-10-24 14:02:31 -04:00
Andre Medeiros
690788899e Refactor the toggle to show it on the file tree 2018-10-24 13:57:57 -04:00
Andre Medeiros
69482bda42 Refactor the right navigation 2018-10-24 13:37:40 -04:00
Iuri Matias
21d1e1e423
Merge pull request #151 from status-im/chores/fix-class-and-remove-dup
Remove usage of class and duplicate component
2018-10-24 13:20:16 -04:00
Iuri Matias
b301a0e82b
Merge pull request #154 from status-im/debugger_integration_squashed_cherry_picked
Debugger integration squashed cherry picked
2018-10-24 13:11:37 -04:00
Iuri Matias
5efda2c428 move debugger to sidebar; fix config issue 2018-10-24 13:10:31 -04:00