Commit Graph

8567 Commits

Author SHA1 Message Date
John Cowen b29546e578 Looking into atob functionality, consequence of Value: null
The Consul API can pass through `Value: null` which does not get cast to
a string by ember-data. This snowballs into problems with `atob` which
then tried to decode `null`.

There are 2 problems here.

1. `Value` should never be `null`
  - I've added a removeNull function to shallowly loop though props and
  remove properties that are `null`, for the moment this is only on
  single KV JSON responses - therefore `Value` will never be `null`
  which is the root of the problem

2. `atob` doesn't quite follow the `window.atob` API in that the
`window.atob` API casts everything down to a string first, therefore it
will try to decode `null` > `'null'` > `crazy unicode thing`.
  - I've commented in a fix for this, but whilst this shouldn't be
  causing anymore problems in our UI (now that `Value` is never `null`),
  I'll uncomment it in another future release. Tests are already written
  for it which more closely follow `window.atob` but skipped for now
  (next commit)
2018-07-05 13:35:06 +01:00
John Cowen 6a407a044e Remove validation for presence of KV values 2018-07-05 13:33:02 +01:00
John Cowen caf3bf17f0
Merge pull request #4326 from hashicorp/feature/embedded-test-api
Move testing doubles to use data embedded in the HTML vs HTTP/fetch
2018-07-03 16:45:13 +01:00
John Cowen 87a0ad9483
Merge pull request #4331 from hashicorp/feature/hedge-empty-node-ids
Hedge for when consul sends nodes with an empty ID
2018-07-03 16:11:31 +01:00
Siva Prasad 0e50ea37db
Merge pull request #4309 from MagnumOpus21/Telemetry
Website: Added more telemetry metrics for raft and memberlist.
2018-07-03 11:00:32 -04:00
Siva 5d8bf053e0 Website/Telemetry: Errata for snapshot.compact and reworded memberlist.health.score 2018-07-03 10:59:31 -04:00
John Cowen 312e0273ce
Merge pull request #4334 from hashicorp/bugfix/gh-4304-mouse-paste
Use html5 oninput instead of onkeyup for native textual inputs
2018-07-03 15:54:57 +01:00
Siva 7baae933e6 Merge branch 'master' of github.com:hashicorp/consul into Telemetry 2018-07-03 10:48:31 -04:00
John Cowen b445df39bb Use html5 oninput instead of onkeyup for native textual inputs
This enables people to enter things using the mouse to paste for
example, plus possible other things.

As an aside it also answers my query regarding `fillIn` for testing,
nothing needs to be actually _typed_ anymore! Doh
2018-07-03 15:40:15 +01:00
Siva 9579ba4e12 Website: Added more telemetry details for raft and memberlist. 2018-07-03 10:27:01 -04:00
Paul Banks 7f35ca33f4
Remove the TODO latency measurement. 2018-07-03 14:54:44 +01:00
John Cowen 6398fb02c7 Ensure we catch empty ID's for single nodes also
I don't think this would have a large effect on the UI whichever but
best to make sure
2018-07-03 14:48:04 +01:00
John Cowen a47a0b617f Hedge for when consul sends nodes with an empty ID 2018-07-03 13:23:45 +01:00
Siva 77fe08b7c9 Website: Added more telemetry metrics 2018-07-03 08:00:39 -04:00
John Cowen aa067c049a
Merge pull request #4322 from hashicorp/feature/unignore-startup-tests
Reset `<html class>` after every test, back to its original static value
2018-07-03 10:45:08 +01:00
John Cowen f527eb1dd6
Merge pull request #4280 from hashicorp/bugfix/encode-all-svg-colors
Encode all the hexcodes
2018-07-03 10:44:36 +01:00
John Cowen df8506e200 Move testing doubles to use data embedded in the HTML vs HTTP/fetch
Previously `api-double` usage in ember would require a bunch of `fetch`
requests to pull in the 'api double', this had a number of disadvantages.

1. The doubles needed to be available via HTTP, which meant a short term
solution of rsyncing the double files over to `public` in order to be served
over HTTP. An alternative to that would have been figuring out how to serve
something straight from `node_modules`, which would have been preferable.

2. ember/testem would not serve dot files (so anything starting with a
., like `.config`. To solve this via ember/testem would have involved
digging in to understand how to enable the serving of dot files.

3. ember/testem automatically rewrote urls for non-existant files to
folders, i.e. adding a slash for you, so `/v1/connect/intentions` would
be rewritten to `/v1/connect/intentions/`. This is undesirable, and
solving this via ember/testem would have involved digging deep to
disable that.

Serving the files via HTTP has now changed. The double files are now
embedded into the HTML has 'embedded templates' that can be found by
using the url of the file and a simple `querySelector`. This of course
only happens during testing and means I can fully control the 'serving'
of the doubles now, so I can say goodbye to the need to move files
around, worry about the need to serve dotfiles and the undesirable
trailing slashes rewriting. Winner!

Find the files and embedding them is done using a straightforward
recursive-readdir-sync (the `content-for` functionality is a synchronous
api) as oppose to getting stuck into `broccoli`.
2018-07-02 19:02:16 +01:00
Matt Keeler 8a12d803fd
Merge pull request #4315 from hashicorp/bugfix/fix-server-enterprise
Move starting enterprise functionality
2018-07-02 12:28:10 -04:00
John Cowen 3334925e21
Merge pull request #4323 from hashicorp/bugfix/missed-merge-step
Tweak vocabulary to match new step vocab
2018-07-02 17:02:41 +01:00
Siva Prasad 37c34acf03
Merge pull request #4244 from MagnumOpus21/WinService
Added a new package service_os that can make Consul run as a service on Windows.
2018-07-02 12:01:22 -04:00
Paul Banks 84ece6a4ee
Rule out quoting issue with Travis versioning 2018-07-02 16:53:31 +01:00
John Cowen b3d11dd880 Tweak vocabulary to match new step vocab 2018-07-02 16:49:13 +01:00
Paul Banks 869a8844a9
Merge pull request #4316 from hashicorp/docs-connect-native
website: make performance impact explicit for connect-native
2018-07-02 15:34:12 +01:00
Mitchell Hashimoto d7c5da335b
Merge pull request #4319 from achanda/fix-tests
Fix broken tests
2018-06-30 16:55:08 +02:00
Abhishek Chanda 36306c0076 Change bind_port to an int 2018-06-30 14:18:13 +01:00
Mitchell Hashimoto 93b23c67ed
Merge pull request #4317 from hashicorp/doc-segmentation-ensures-spelling
Fix "ensures all data" from original "ensure all data"
2018-06-30 07:24:33 +02:00
Geoffrey Grosenbach 2281b88113 Fix "ensures all data" from original "ensure all data"
The original text was "Using TLS...ensure all data in transit is
encrypted." It should be "ensures all data..." This patch fixes it.
2018-06-29 18:05:42 -07:00
Anubhav Mishra 4b5efe7464
website: make performance impact explicit for connect-native
I was going to the public feedback on Connect-Native app integration and came across [this](https://twitter.com/relistan/status/1012263110403555329) thread. Added a few statements in the Connect-Native app integration page.
2018-06-29 17:35:58 -07:00
Matt Keeler 22b7b688a3
Move starting enterprise functionality 2018-06-29 17:38:29 -04:00
Siva Prasad a6069aae77
Merge pull request #4310 from MagnumOpus21/IPDoc
Website : Errata in -bind option for the agent.
2018-06-29 16:54:43 -04:00
Siva b874cac8bb Website: Errata in -bind option for the agent 2018-06-29 16:43:12 -04:00
Mitchell Hashimoto 4c336314fc
update CHANGELOG 2018-06-29 06:19:15 -07:00
Mitchell Hashimoto a9c7cd187d
Merge pull request #4308 from hashicorp/b-connect-services
agent/config: parse upstreams with multiple service definitions
2018-06-29 15:17:16 +02:00
Siva e281a3f925 Changes made :
1. Website
Changed some of the wordings and reorganized the content of the website.
2. Code:
Removed sleep and exit lines from the code.
2018-06-28 21:18:14 -04:00
Mitchell Hashimoto 6ef28dece0
agent/config: parse upstreams with multiple service definitions 2018-06-28 15:13:33 -05:00
Matt Keeler 5c8585a03b
Merge pull request #4286 from hashicorp/bugfix/ui-release-version
Post-release build updates
2018-06-28 15:10:12 -04:00
RJ Spiker da3ed7d1ec website: an assortment of front-end updates (#4296)
* website: add object-fit-image polyfill for ie compatibility

* website: make entire carousel cards linkable

* website: adjust hero background positioning

* website: responsive updates to the home hero

* website: update home hero js to work better with turbolinks

* website: a few font weight adjustments

* website: add an overlay to ui video
2018-06-28 11:43:30 -07:00
Mike Wickett d0dd2a15be website: optimize images (#4290) 2018-06-28 11:43:13 -07:00
Mitchell Hashimoto 814d435cfd
Update CHANGELOG 2018-06-28 05:29:03 +02:00
Mitchell Hashimoto e155d58b19
Merge pull request #4297 from hashicorp/b-intention-500-2
agent: 400 error on invalid UUID format, api handles errors properly
2018-06-28 05:27:19 +02:00
Mitchell Hashimoto 3f9db1c4d2
Merge pull request #4299 from roidelapluie/patch-1
docs: Fix JSON in service configuration
2018-06-28 05:26:24 +02:00
Matt Keeler 2cc7cd32af Fix default make target to build everything 2018-06-27 14:25:49 -04:00
Matt Keeler 3a4dc534a7
Update CHANGELOG.md 2018-06-27 12:50:44 -04:00
Matt Keeler d94747db2d
Merge pull request #4294 from hashicorp/bugfix/4249-gen-ext-node-id
Catalog Register: Generate UUID for services registered without one
2018-06-27 12:49:11 -04:00
Matt Keeler 0f70034082 Move default uuid test into the consul package 2018-06-27 09:21:58 -04:00
Matt Keeler d1a8f9cb3f go fmt changes 2018-06-27 09:07:22 -04:00
Julien Pivotto b033cba815
Fix JSON in service configuration 2018-06-27 09:06:27 +02:00
Mitchell Hashimoto 1c3e9af316
agent: 400 error on invalid UUID format, api handles errors properly 2018-06-27 07:40:06 +02:00
Siva 7969d16e42 Added guide for Windows Service 2018-06-26 18:23:55 -04:00
Jack Pearkes db351dc9bb
Merge pull request #4295 from HowieLee/patch-1
Fixed typo
2018-06-26 15:12:26 -07:00