Commit Graph

18487 Commits

Author SHA1 Message Date
Michael Lange
2eceffaa96 Create new monitor route for clients 2020-06-16 10:23:35 -07:00
Buck Doyle
5dae137e70 UI: Migrate to ES6 classes (#8144)
* Add massaged results of class codemod

Manual interventions:
• decorators on the same line for service and controller
  injections and most computed property macros
• preserving import order when possible, both per-line
  and intra-line
• moving new imports to the bottom
• removal of classic decorator for trivial cases
• conversion of init to constructor when appropriate

* Add fixes for ESLint getter-return

…I GUESS

* Remove unnecessary fetch-setting

Originally this was failing because it only had a getter.
I tried replacing it with a computed property and that
succeeded, but since we have already stopped using
jQuery, we might as well remove it.

* Change with-namespace-ids mixin to a base class

This is a merge of 5d9fce5.

* Change URL-generation for job-updating

The id-processing in the WatchableNamespaceIds adapter was
happening twice; this removes urlForUpdate record so it
only happens once. @DingoEatingFuzz figured it out! 🥳

* Fix query parameters structures

I’d think the codemod would handle this if it’s a requirement
but apparently not, is it a bug?

* Add manually-converted classes

I don’t know why the codemod ignored these files 🧐

* Remove problem field

It appears this gets turned into a getter-only computed property
somehow, which causes problems when subclasses override it.

* Rename clashing action

* Convert field to overridable computed property

StatsTimeSeries defines description as a computed property,
which isn’t possible when this is a class field.

* Rename clashing property

* Remove superfluous uses of Object.freeze

This is no longer needed!
https://guides.emberjs.com/release/upgrading/current-edition/native-classes/#toc_properties-and-fields

* Data cannot be a field in the base class and a CP in the child classes

* Remove stray commented-out line

Co-authored-by: Michael Lange <dingoeatingfuzz@gmail.com>
2020-06-16 12:18:48 -05:00
Seth Hoenig
c71585daca Merge pull request #8173 from hashicorp/docs-memoryswap-fix
docs: update changelog for memory swap fix
2020-06-16 11:33:44 -05:00
Seth Hoenig
6171b85b23 docs: update changelog for memory swap fix 2020-06-16 11:08:15 -05:00
Drew Bailey
3633d476bc move bugfix to correct version (#8170) 2020-06-16 11:53:43 -04:00
Seth Hoenig
205b98a961 Merge pull request #8159 from njenwei/docker-driver-memoryswap
Fix docker driver MemorySwap value
2020-06-16 10:50:34 -05:00
Chris Baker
83c697cdf5 Merge pull request #8171 from hashicorp/changelog-entry-8161
changelog: add entry for GH-8161
2020-06-16 10:41:52 -05:00
James Rasell
b3f6cacb14 changelog: add entry for GH-8161 2020-06-16 17:39:47 +02:00
James Rasell
cc83d19eed Merge pull request #8162 from hashicorp/b-gh-8161
cli: fix malformed alloc status address list when more than 1 addr
2020-06-16 16:35:53 +02:00
Buck Doyle
0cf59f10be Remove stray commented-out line 2020-06-16 08:36:39 -05:00
Chris Baker
de359b5a9f Merge pull request #8167 from hashicorp/f-8090-add-count-to-scaling-event
add PreviousCount to ScalingEvent
2020-06-16 07:43:59 -05:00
Chris Baker
a3a1c63fef changelog for 8167 2020-06-16 12:43:35 +00:00
Chris Baker
c51c5a0436 core: update Job.Scale to save the previous job count in the ScalingEvent 2020-06-15 19:49:22 +00:00
Chris Baker
eff54843cf wip: added .PreviousCount to api.ScalingEvent and structs.ScalingEvent, with developmental tests 2020-06-15 19:40:21 +00:00
Michael Lange
7fabdd56e6 Data cannot be a field in the base class and a CP in the child classes 2020-06-15 11:37:40 -05:00
Buck Doyle
36b58a95ab Remove superfluous uses of Object.freeze
This is no longer needed!
https://guides.emberjs.com/release/upgrading/current-edition/native-classes/#toc_properties-and-fields
2020-06-15 10:15:11 -05:00
Buck Doyle
1904005120 Rename clashing property 2020-06-15 10:14:36 -05:00
Buck Doyle
50513ea105 Convert field to overridable computed property
StatsTimeSeries defines description as a computed property,
which isn’t possible when this is a class field.
2020-06-15 10:14:36 -05:00
Buck Doyle
e7428d1876 Rename clashing action 2020-06-15 10:14:36 -05:00
Buck Doyle
6adcb17fe2 Remove problem field
It appears this gets turned into a getter-only computed property
somehow, which causes problems when subclasses override it.
2020-06-15 10:14:35 -05:00
Buck Doyle
e993a71f6f Add manually-converted classes
I don’t know why the codemod ignored these files 🧐
2020-06-15 10:14:26 -05:00
Buck Doyle
5d325351a5 Fix query parameters structures
I’d think the codemod would handle this if it’s a requirement
but apparently not, is it a bug?
2020-06-15 09:52:31 -05:00
Michael Lange
e077dc5d12 Change URL-generation for job-updating
The id-processing in the WatchableNamespaceIds adapter was
happening twice; this removes urlForUpdate record so it
only happens once. @DingoEatingFuzz figured it out! 🥳
2020-06-15 09:51:15 -05:00
Michael Lange
de9d39581d Change with-namespace-ids mixin to a base class
This is a merge of 5d9fce5.
2020-06-15 09:47:15 -05:00
Buck Doyle
26b7b3fa06 Remove unnecessary fetch-setting
Originally this was failing because it only had a getter.
I tried replacing it with a computed property and that
succeeded, but since we have already stopped using
jQuery, we might as well remove it.
2020-06-15 09:41:57 -05:00
Mahmood Ali
f8c7e3f95f Merge pull request #8164 from hashicorp/docs-cronexpr-link
docs: update cronexpr github link
2020-06-15 09:58:51 -04:00
Seth Hoenig
c371a31e00 docs: update cronexpr github link 2020-06-15 08:48:32 -05:00
James Rasell
c74c84f2c5 cli: fix malformed alloc status address list when more than 1 addr 2020-06-15 14:35:47 +02:00
Mahmood Ali
c52a2909e4 Merge pull request #8131 from hashicorp/f-snapshot-restore
Implement snapshot restore
2020-06-15 08:32:34 -04:00
Mahmood Ali
14cd3da252 Apply suggestions from code review
Co-authored-by: Michael Schurter <mschurter@hashicorp.com>
2020-06-15 08:32:16 -04:00
Niam Jen Wei
f316c51fac Fix docker driver MemorySwap value
Fixes an incorrect value being assigned to MemorySwap when `memory_hard_limit` flag is being used.

Issue raised in https://github.com/hashicorp/nomad/issues/8153
2020-06-12 20:11:28 +01:00
Mahmood Ali
fbb1092019 revert changes from earlier change 2020-06-12 14:02:43 -04:00
Mike Wickett
723437f87e Merge pull request #8152 from hashicorp/mw.add-cloudflare-quote-card
website: add cloudflare testimonial
2020-06-12 12:32:01 -04:00
Drew Bailey
9ffbb27deb only report tasklogger is running if both stdout and stderr are still running (#8155)
* only report tasklogger is running if both stdout and stderr are still running

* changelog
2020-06-12 09:17:35 -04:00
Seth Hoenig
ef67b1b784 Merge pull request #8154 from fhemberger/patch-2
[docs/docker driver] fix username in example
2020-06-11 08:52:45 -05:00
Frederic Hemberger
bfe729f7ed [docs/docker driver] fix username in example
> If you do not run Nomad as root, make sure you add the Nomad user to the Docker group so Nomad can communicate with the Docker daemon.

Changing the username in the example from `vagrant` to `nomad`. Vagrant isn't addressed in the entire document, so I guess that this was a mistake.
2020-06-11 12:29:43 +02:00
Mike Wickett
f4f71aa432 website: add cloudflare testimonial 2020-06-10 20:53:05 -04:00
Buck Doyle
ddfd9cc750 Add fixes for ESLint getter-return
…I GUESS
2020-06-10 16:18:56 -05:00
Buck Doyle
24eadd269c Add massaged results of class codemod
Manual interventions:
• decorators on the same line for service and controller
  injections and most computed property macros
• preserving import order when possible, both per-line
  and intra-line
• moving new imports to the bottom
• removal of classic decorator for trivial cases
• conversion of init to constructor when appropriate
2020-06-10 16:18:42 -05:00
Lang Martin
9ccec0afbb scheduler/reconcile: set FollowupEvalID on lost stop_after_client_disconnect (#8105) (#8138)
* scheduler/reconcile: set FollowupEvalID on lost stop_after_client_disconnect

* scheduler/reconcile: thread follupEvalIDs through to results.stop

* scheduler/reconcile: comment typo

* nomad/_test: correct arguments for plan.AppendStoppedAlloc

* scheduler/reconcile: avoid nil, cleanup handleDelayed(Lost|Reschedules)
2020-06-09 17:13:53 -04:00
Buck Doyle
11d80ae489 Add Ember ESLint plugin (#8134)
This is extracted from #8094, where I have run into some snags. Since
these ESLint fixes aren’t actually connected to the Ember 3.16 update
but involve changes to many files, we might as well address them
separately. Where possible I fixed the problems but in cases where
a fix seemed too involved, I added per-line or -file exceptions.
2020-06-09 16:03:28 -05:00
Mahmood Ali
1f6cb154b9 clarify ccomments, esp related to leadership code 2020-06-09 12:01:31 -04:00
Mahmood Ali
bd48db20e2 clarify error message
Co-authored-by: Tim Gross <tgross@hashicorp.com>
2020-06-09 11:26:52 -04:00
Yishan Lin
a7291fc6bd Merge pull request #8124 from hashicorp/yishan-who-uses-nomad-docs-revised
Updated Nomad README + Who Uses Nomad pages
2020-06-08 09:08:13 -07:00
Mahmood Ali
d13a63c8bb loosen raft timeout 2020-06-07 16:38:11 -04:00
Mahmood Ali
fad0fafa9f tests: client already disabled 2020-06-07 16:38:11 -04:00
Mahmood Ali
519447d1c0 tests: prefix agent logs to identify agent sources 2020-06-07 16:38:11 -04:00
Mahmood Ali
669b75d621 implement snapshot restore CLI 2020-06-07 15:47:07 -04:00
Mahmood Ali
867147c90e api: add snapshot restore 2020-06-07 15:47:07 -04:00
Mahmood Ali
b73e7b0265 reassert leadership 2020-06-07 15:47:06 -04:00