Commit graph

11338 commits

Author SHA1 Message Date
R.B. Boyer 4a630135b8
test: move some test helpers over from enterprise (#7754) 2020-05-01 14:52:15 -05:00
R.B. Boyer 5848f0fd7b
docs: add docs for snapshot agent local_scratch_path option (#7730)
Also fix some website upgrade bugs.
2020-05-01 14:51:57 -05:00
Jono Sosulska edfaee9cb5
Adding redirect to discuss, moving question to old (#7732) 2020-05-01 13:02:15 -04:00
R.B. Boyer 9faf8c42d1
sdk: extracting testutil.RequireErrorContains from various places it was duplicated (#7753) 2020-05-01 11:56:34 -05:00
Hans Hasselberg 6626cb69d6
rpc: oss changes for network area connection pooling (#7735) 2020-04-30 22:12:17 +02:00
Jeff Escalante c00f246129
fix multiline note (#7744) 2020-04-30 14:07:16 -04:00
John Cowen c62b974222
ui: Fix using 'ui-like' KVs when using an empty default nspace (#7734)
When using namespaces, the 'default' namespace is a little special in
that we wanted the option for all our URLs to stay the same when using
namespaces if you are using the default namespace, with the option of
also being able to explicitly specify `~default` as a namespace.

In other words both `ui/services/service-name` and
`ui/~default/services/service-name` show the same thing.

This means that if you switch between OSS and Enterprise, all of your
URLs stay the same, but you can still specifically link to the default
namespace itself.

Our routing configuration is duplicated in order to achieve this:

```
- :dc
  - :service
  - :kv
    - :edit
- :nspace
  - :dc
    - :service
    - :kv
      - :edit
```

Secondly, ember routing resolves/matches routes in the order that you specify
them, unless, its seems, when using wildcard routes, like we do in the
KV area.

When not using the wildcard routes the above routing configuration
resolves/matches a `/dc-1/kv/service` to the `dc.kv.edit` route correctly
(dc:dc-1, kv:services), that route having been configured in a higher
priority than the nspace routes.

However when configured with wildcards (required in the KV area), note
the asterisk below:

```
- :dc
    :service
  - :kv
    - *edit
- :nspace
  - :dc
    - :service
    - :kv
      - *edit
```

Given something like `/dc-1/kv/services` the router instead matches the
`nspace.dc.service` (nspace:dc-1, dc:kv, service:services) route first even
though the `dc.kv.edit` route should still match first.
Changing the `dc.kv.edit` route back to use a non-wildcard route
(:edit instead of *edit), returns the router to match the routes in the
correct order.

In order to work around this, we catch any incorrectly matched routes
(those being directed to the nspace Route but not having a `~`
character in the nspace parameter), and then recalculate the correct
route name and parameters. Lastly we use this recalculated route to
direct the user/app to the correct route.

This route recalcation requires walking up the route to gather up all of
the required route parameters, and although this feels like something
that could already exist in ember, it doesn't seem to. We had already
done a lot of this work a while ago when implementing our `href-mut`
helper. This commit therefore repurposes that work slighlty and externalizes
it outside of the helper itself into a more usable util so we can import
it where we need it. Tests have been added before refactoring it down
to make the code easier to follow.
2020-04-30 09:28:20 +01:00
Freddy c34ee5d339
Watch fallback channel for gateways that do not exist (#7715)
Also ensure that WatchSets in tests are reset between calls to watchFired. 
Any time a watch fires, subsequent calls to watchFired on the same WatchSet
will also return true even if there were no changes.
2020-04-29 16:52:27 -06:00
Matt Keeler f1e51bc80c
Update CHANGELOG.md 2020-04-29 11:07:02 -04:00
Iryna Shustava d4a5c0b2ba
docs: add Helm docs for external servers and bootstrapToken (#7725)
Also, backfill some Helm docs that got lost in the new website merge
2020-04-28 14:38:02 -07:00
Alvin Huang a84ab2333f
disable stable-website auto cherry-pick until replatform is merged into stable-website (#7726) 2020-04-28 17:01:51 -04:00
Jeff Escalante a325ce70c8
Merge pull request #7610 from hashicorp/je.new-website
New Documentation Website
2020-04-28 13:41:52 -04:00
Alvin Huang fad0d74182 use environment variables in website-docker-image for website docker image push 2020-04-28 13:38:38 -04:00
Jeff Escalante 76268de08c
dependencies 2020-04-28 12:53:30 -04:00
Luke Kysow 6aeb465dd4
Fix broken markdown link 2020-04-28 12:53:29 -04:00
Jeff Escalante cd91a8e7dc
update dependencies 2020-04-28 12:53:29 -04:00
Jeff Escalante 851e6dd62d
remove guides from sidebar 2020-04-28 12:53:29 -04:00
Blake Covarrubias 6e3b3a3f04
Add callouts to Enterprise features (#7548)
Label all enterprise-related content with Enterprise badge/callout.

Resolves #6887

Co-authored-by: Jeff Escalante <jescalan@users.noreply.github.com>
2020-04-28 12:53:29 -04:00
Jeff Escalante ad0a235242
update dependencies 2020-04-28 12:53:28 -04:00
Jeff Escalante 763994533f
update deps with a bunch of incremental fixes 2020-04-28 12:53:28 -04:00
kaitlincarter-hc 48cdd43606
[Docs] Kuberentes Guides (#7660)
* Update k8s guide titles

* Update website/pages/docs/k8s/installation/gke.mdx

Co-Authored-By: Luke Kysow <1034429+lkysow@users.noreply.github.com>

Co-authored-by: Luke Kysow <1034429+lkysow@users.noreply.github.com>
2020-04-28 12:53:28 -04:00
Jeff Escalante ed938cf125
correct rebased k8s/eks location 2020-04-28 12:53:27 -04:00
Jeff Escalante adca928bb3
anchor link analytics (#7648) 2020-04-28 12:53:27 -04:00
Jeff Escalante 87091f7456
add clearer safe write note to readme 2020-04-28 12:53:27 -04:00
Jeff Escalante 8ff109b66f
add 301 to readme 2020-04-28 12:53:27 -04:00
Jeff Escalante 6945548f42
circle docker image config 2020-04-28 12:53:26 -04:00
Jeff Escalante be78f98a6c
a couple more anchor link fixes 2020-04-28 12:53:26 -04:00
Jeff Escalante 7c293ffd25
misc cleanup & fixes 2020-04-28 12:53:26 -04:00
Jeff Escalante d14f99f0b0
update meta description 2020-04-28 12:53:26 -04:00
Jeff Escalante 0d0f0ee514
update deps, add no-index category, fix downloads page 2020-04-28 12:53:25 -04:00
Jeff Escalante 3461407f34
fix broken links 2020-04-28 12:53:25 -04:00
Jeff Escalante 4183723bd9
fix homepage link, docs index 2020-04-28 12:53:25 -04:00
Jeff Escalante 7d426348ce
remove guides that were moved to learn 2020-04-28 12:53:24 -04:00
Jeff Escalante 3ab1f76c6e
add k8s/consul alias back, fix react prop name 2020-04-28 12:53:24 -04:00
Jeff Escalante b685869419
remove 'sidebar_current' from frontmatter 2020-04-28 12:53:24 -04:00
Jeff Escalante 99c297e898
home & use case pages 2020-04-28 12:53:23 -04:00
Jeff Escalante 0629d161ac
one more time 2020-04-28 12:53:23 -04:00
Jeff Escalante 2755fd51e7
test 2020-04-28 12:53:23 -04:00
Jeff Escalante 4d647fea42
update to latest nextjs-scripts 2020-04-28 12:53:22 -04:00
Jeff Escalante 17452af412
fix new syntax error 2020-04-28 12:53:22 -04:00
Jeff Escalante b062a9f063
update deps, fixes for agent/options 2020-04-28 12:53:22 -04:00
Jeff Escalante d7edea1f65
add correct bugsnag and segment keys 2020-04-28 12:53:22 -04:00
Jeff Escalante 298332c54e
another redirect fix 2020-04-28 12:53:21 -04:00
Jeff Escalante 428d51d16a
redirect corrections 2020-04-28 12:53:21 -04:00
Jeff Escalante 1a599f22ff
redirect tinkering 2020-04-28 12:53:21 -04:00
Jeff Escalante 598fad31d0
add more redirects 2020-04-28 12:53:20 -04:00
Jeff Escalante 99784c4f24
replace internal .html link extensions 2020-04-28 12:53:20 -04:00
Jeff Escalante 4211f12f38
remove internal /index.html 2020-04-28 12:53:20 -04:00
Jeff Escalante a69778d939
add redirects 2020-04-28 12:53:19 -04:00
Jeff Escalante 8536881aa8
add one-off pages 2020-04-28 12:53:19 -04:00