Kegan Dougal
f3df86872b
Fix tightlooping when flush()ing without any logs
...
The promise would resolve immediately, nulling out `flushPromise`. This would
then immediately be set from `new Promise((resolve, reject) => {...})` turning
it back into non-null `flushPromise`. The resolve handler was called so the
next `flush()` would see "oh yes, there is a non-null `flushPromise`" then
promptly try to set `flushAgainPromise` which chains off the resolved
`flushPromise` which relied on `flushPromise` being `null`ed out after
`resolve()`, causing the chained `flush()` to see "oh yes, there is a non-null
`flushPromise`" which... ad infinitum.
This PR fixes it by making the nulling out asynchronous but the fact it took
me this long to debug this issue indicates to me that this is a terrible piece
of code. Will re-write.
2017-01-23 17:37:57 +00:00
Kegan Dougal
2ecf65f057
Keep the logs if no store exists
2017-01-23 09:28:48 +00:00
Kegan Dougal
ea063ab8b0
Address race conditions when flushing logs
2017-01-20 14:46:19 +00:00
Kegan Dougal
378126e746
Add another store to keep last modified times
...
This makes it easier to get a list of all the log IDs. It also makes it possible
to order the logs by the *LAST* log line and not the first as was the case
previously, which is important in the case of long-running tabs.
2017-01-20 14:00:30 +00:00
Kegan Dougal
41c6294be2
Remove clearAll from consume(): we want duplicate logs on multiple reports
2017-01-20 13:02:57 +00:00
Kegan Dougal
ba1e166ac8
Line length 80 like we're still in the 80s
2017-01-20 12:02:48 +00:00
Kegan Dougal
ea860807c4
Add a monkeyPatch function rather than monkey-patching in the constructor
2017-01-20 11:56:11 +00:00
Kegan Dougal
53a16158c7
Remove logs when submitting bug reports
2017-01-19 17:41:08 +00:00
Kegan Dougal
beba4d2ae3
Add version and user agent to bug report
2017-01-19 17:40:21 +00:00
Kegan Dougal
3996d23b19
Inject bug report endpoint URL from config.json
2017-01-19 16:49:25 +00:00
Kegan Dougal
bf887e82fe
Swap to async/await rather than promise chains
...
Since we do in fact support coroutines!
2017-01-19 16:40:54 +00:00
Kegan Dougal
81d437ac1e
POST reports to localhost for now. Also send live console logs
2017-01-19 15:47:55 +00:00
Kegan Dougal
608c1b0208
Finish implementing consume()
...
- Fetches all logs in order and concatenates correctly.
- Purges old logs correctly.
2017-01-19 15:03:47 +00:00
Kegan Dougal
89d514a532
Query IndexedDB for all results with index=0
2017-01-19 12:02:19 +00:00
Kegan Dougal
811086ac8e
Comment how we should consume logs
2017-01-18 17:18:02 +00:00
Kegan Dougal
5828ab1077
Generate unique IDs for each JS runtime to accomodate multiple tabs
2017-01-18 16:27:11 +00:00
Kegan Dougal
e9884768f6
Persist console logs to an IndexedDB instance
2017-01-18 16:00:13 +00:00
Richard van der Hoff
641a5c244c
Merge pull request #2969 from vector-im/rav/keep_old_bundles
...
Update redeploy script to keep old bundles
2017-01-17 14:59:12 +00:00
David Baker
6257019926
Merge pull request #2967 from vector-im/dbkr/include_version_in_update_check
...
Include current version in update check explicitly
2017-01-17 14:42:03 +00:00
David Baker
cf92e7f64b
Clarify comment
2017-01-17 14:04:42 +00:00
Richard van der Hoff
8371006d90
Update redeploy script to keep old bundles
...
... so that people using old versions of the master chunk can still load other
webpack chunks.
2017-01-17 13:55:33 +00:00
David Baker
3b109f7612
Include current version in update check explicitly
...
Hopefully fix https://github.com/vector-im/riot-web/issues/2847
2017-01-17 13:16:08 +00:00
David Baker
ebc2ad54d6
Merge pull request #2966 from vector-im/rav/move_bundle_again
...
Add another layer of directory to webpack chunks
2017-01-17 12:04:28 +00:00
Richard van der Hoff
4a1b04e57b
Add another layer of directory to webpack chunks
2017-01-17 12:00:20 +00:00
David Baker
205676a97d
Back to develop js-sdk & react-sdk
2017-01-17 11:30:59 +00:00
David Baker
0456cadff6
Merge branch 'master' into develop
2017-01-17 11:30:31 +00:00
Richard van der Hoff
aa6d584ae3
Merge pull request #2965 from vector-im/rav/fix_font_links
...
Fix links to fonts and images from CSS
2017-01-17 11:00:27 +00:00
Richard van der Hoff
ef07a6035e
Fix links to fonts and images from CSS
...
https://github.com/vector-im/riot-web/pull/2961 put the CSS in a subdirectory,
which meant that links from CSS to images and fonts were broken. Fix them up.
2017-01-17 10:48:38 +00:00
David Baker
86b66120d0
Merge pull request #2961 from vector-im/rav/build_hash_in_filename
...
Put parent build hash in webpack output filenames
2017-01-17 09:58:27 +00:00
Richard van der Hoff
b3bff92cc2
Put parent build hash in webpack output filenames
...
In order to better support a world where old build artifacts are available
(which is necessary to support bundle.js splitting), collect all the webpack
artifacts for the build into a single directory. Then we'll be able to clear
out old builds after a few weeks, knowing they won't be in use any more.
2017-01-16 18:01:25 +00:00
David Baker
ae7820e8f2
Fix merge
2017-01-16 13:37:18 +00:00
David Baker
3023ea5335
Merge branch 'release-v0.9.6'
2017-01-16 13:34:41 +00:00
David Baker
22060ac5a4
v0.9.6
2017-01-16 13:26:22 +00:00
David Baker
3f3a31e475
Prepare changelog for v0.9.6
2017-01-16 13:26:21 +00:00
David Baker
231306ea7c
Update js-sdk & react-sdk
2017-01-16 13:24:44 +00:00
Richard van der Hoff
61251d20c1
Merge pull request #2846 from uhoreg/patch-2
...
update README to point to new names/locations
2017-01-13 22:05:55 +00:00
Hubert Chathi
ccf7db7cc2
Fix a couple more references to vector-web in README.md
2017-01-13 15:06:29 -05:00
David Baker
e1c1937855
v0.9.6-rc.1
2017-01-13 11:21:08 +00:00
David Baker
9471c30f89
Prepare changelog for v0.9.6-rc.1
2017-01-13 11:21:08 +00:00
David Baker
40545bd48e
Released react-sdk & js-sdk
2017-01-13 11:15:55 +00:00
David Baker
6b02bf8e8c
Merge pull request #2920 from vector-im/dbkr/ci_build_js_sdk
...
Build the js-sdk in the CI script
2017-01-12 17:37:18 +00:00
David Baker
0d05e607f0
install js-sdk in travis too
2017-01-12 17:24:28 +00:00
David Baker
717aa94ba9
Merge pull request #2917 from vector-im/dbkr/fix_windows_shortcuts
...
Hopefully fix Windows shortcuts
2017-01-12 10:43:26 +00:00
David Baker
9caba57c14
Merge pull request #2921 from vector-im/dbkr/update_readme_for_js_sdk_transpiled
...
Update README now the js-sdk has a transpile step
2017-01-12 10:05:55 +00:00
David Baker
70f48343ee
It's now just build
2017-01-11 19:03:52 +00:00
David Baker
f17f103d12
s/build/compile/ for js sdk
2017-01-11 18:19:44 +00:00
David Baker
27e311f7e8
Address PR comments
2017-01-11 18:15:06 +00:00
David Baker
5258bf9c84
Update README now the js-sdk has a transpile step
2017-01-11 17:25:58 +00:00
David Baker
10f0631487
Build the js-sdk in the CI script
...
now it's transpiled
2017-01-11 17:20:27 +00:00
David Baker
97fc92b1bb
Update to electron 1.4.14
...
This pulls in the chrome change that broke geotrust ssl when the
build hit 10 weeks old, so let's get this one out before we hit
more disasters.
2017-01-11 16:53:01 +00:00