Julien Fontanet
256af03772
chore: use typeof instead of lodash/isString ( #4603 )
2019-10-14 13:58:58 +02:00
Julien Fontanet
654fd5a4f9
chore: use typeof instead of lodash/isBoolean ( #4604 )
2019-10-14 13:51:45 +02:00
Julien Fontanet
541d90e49f
fix(xo-server-recover-account): explicit appDir
2019-10-12 17:07:14 +02:00
Julien Fontanet
974e7038e7
chore(backups-cli): dont fail on missing dirs
2019-10-12 00:49:16 +02:00
Julien Fontanet
3483e7d9e0
chore: update dependencies
2019-10-11 17:15:25 +02:00
Julien Fontanet
56cb20a1af
chore: use typeof instead of lodash/isFunction ( #4587 )
2019-10-11 15:16:37 +02:00
Julien Fontanet
c955da9bc6
feat(backups-cli): lowlevel tool to help with backups ( #4556 )
2019-10-11 14:48:37 +02:00
Julien Fontanet
291354fa8e
chore: use Object.assign instead of lodash/assign ( #4585 )
...
Support is good enough:
- https://node.green/#ES2015-built-in-extensions-Object-static-methods-Object-assign
- https://kangax.github.io/compat-table/es6/#test-Object_static_methods
2019-10-11 14:43:38 +02:00
Julien Fontanet
905d736512
chore: use Array.isArray instead of lodash/isArray ( #4586 )
...
Support is good enough:
- https://node.green/#ES2015-built-ins-Proxy-Array-isArray-support
- https://kangax.github.io/compat-table/es5/#test-Array_methods
2019-10-11 14:29:01 +02:00
Julien Fontanet
342ae06b21
chore(xo-sdn-controller): minor formatting fix
2019-10-07 10:19:34 +02:00
Julien Fontanet
093fb7f959
fix(xo-server-logs): explicit appDir
...
May fix #4576
2019-10-03 16:02:10 +02:00
Julien Fontanet
f6472424ad
fix(eslint): disable lines-between-class-members rule
2019-10-02 15:52:51 +02:00
Julien Fontanet
31ed3767c6
chore: fix some lint
...
Mainly: `obj['prop']` → `obj.prop`
2019-10-02 15:45:32 +02:00
Julien Fontanet
4da8af6e69
fix(log/configure): process nested transport
2019-09-27 14:55:26 +02:00
Julien Fontanet
b535565612
feat(@xen-orchestra/log): 0.2.0
2019-09-27 14:29:34 +02:00
Julien Fontanet
bef39b8a96
fix(log): support DEBUG and NODE_DEBUG when both defined
2019-09-27 14:26:19 +02:00
Julien Fontanet
fb2502a031
feat(log): support env var LOG_LEVEL
2019-09-27 14:23:27 +02:00
Julien Fontanet
0b90befda1
feat(log): also export createLogger symbol
2019-09-27 13:59:44 +02:00
Julien Fontanet
f9800f104a
feat(log/console): display data inline
2019-09-27 13:59:03 +02:00
Julien Fontanet
99134cc381
Merge pull request #4554 from vatesfr/release
...
Technical release
2019-09-27 10:22:49 +02:00
Julien Fontanet
cd378f0168
chore(PULL_REQUEST_TEMPLATE): strikethrough not relevant items
2019-09-26 14:24:54 +02:00
Julien Fontanet
47819ea956
chore(PULL_REQUEST_TEMPLATE): better checklist + 4 agreements ( #4547 )
2019-09-25 17:41:32 +02:00
Julien Fontanet
c7e3560c98
chore(normalize-packages): add --access public to npm publish
...
Only for non-private packages without existing `postversion` script.
2019-09-25 17:36:36 +02:00
Julien Fontanet
b24400b21d
feat(xen-api): support IPv6 addresses ( #4521 )
...
Fixes #4520
2019-09-24 13:59:49 +02:00
Julien Fontanet
a6d182e92d
feat(xo-server/getBackupNgLogs): implement debounce ( #4509 ) ( #4541 )
...
Similar to #4509
Fixes xoa-support#1676
For now, the delay is set to 10s which is the duration used by xo-web's
subscription, which makes it enough to make it independent of the number of
clients.
In the future, this could be configurable, but we may simply do the
consolidation only once during the backup execution.
2019-09-23 16:20:17 +02:00
Julien Fontanet
925eca1463
chore(xo-server/api): context has methods bound to XO
...
This makes sure the correct context is used, which is necessary for properties write and for debouncing.
2019-09-23 15:59:45 +02:00
Julien Fontanet
8b454f0d39
chore(xo-server/MultiKeyMap): add basic tests
2019-09-23 15:14:54 +02:00
Julien Fontanet
6df55523b6
feat(xo-web): display node in list of packages
2019-09-20 17:22:21 +02:00
Julien Fontanet
960b179d95
chore(xen-api/examples): update dependencies
2019-09-20 12:22:43 +02:00
Julien Fontanet
a8bd0d8075
feat(xo-server/listVmBackupsNg): implement debounce ( #4509 )
...
Fixes xoa-support#1676
For now, the delay is set to 10s which is the duration used by xo-web's
subscription, which makes it enough to make it independent of the number of
clients.
In the future, this should probably be longer and configurable, but this
requires invalidating the cache in case of changes (creation/deletion of
backups) and explicit requests from the users, which will be implemented in
another PR.
2019-09-20 12:01:58 +02:00
Julien Fontanet
986d3af685
feat(xo-server/vm.export): prefix filename with datetime
...
Fixes #4503
2019-09-20 11:26:12 +02:00
Julien Fontanet
844efb88d8
fix(cron): fix 2 race conditions ( #4533 )
...
Should fix xoa-support#344, xoa-support#1186 & xoa-support#1755.
These could lead to:
- job not properly stopped
- job run twice
2019-09-19 13:52:29 +02:00
Julien Fontanet
67853bad8e
chore(cron): extract Schedule#_nextDelay()
2019-09-18 17:44:10 +02:00
Julien Fontanet
ae6cc8eea3
feat(xo-web/xoa/updater): true submit button for proxy
...
This allows using "Enter" key to submit.
2019-09-16 17:40:49 +02:00
Julien Fontanet
aed824b200
fix(xo-web): dont reset state on registration failure
2019-09-13 13:59:25 +02:00
Julien Fontanet
036b30212e
feat(xo-cli): special handling of invalid params error
...
Before:
```
✖ invalid parameters
JsonRpcError: invalid parameters
at Peer._callee$ (/usr/local/lib/node_modules/xen-api/node_modules/json-rpc-peer/dist/index.js:137:44)
at tryCatch (/usr/local/lib/node_modules/xen-api/node_modules/json-rpc-peer/node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (/usr/local/lib/node_modules/xen-api/node_modules/json-rpc-peer/node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/xen-api/node_modules/json-rpc-peer/node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (/usr/local/lib/node_modules/xen-api/node_modules/json-rpc-peer/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (/usr/local/lib/node_modules/xen-api/node_modules/json-rpc-peer/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
at /usr/local/lib/node_modules/xen-api/node_modules/json-rpc-peer/node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
at new Promise (<anonymous>)
at Peer.<anonymous> (/usr/local/lib/node_modules/xen-api/node_modules/json-rpc-peer/node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12)
at Peer.exec (/usr/local/lib/node_modules/xen-api/node_modules/json-rpc-peer/dist/index.js:180:20)
at Peer.write (/usr/local/lib/node_modules/xen-api/node_modules/json-rpc-peer/dist/index.js:284:10)
at Xo.<anonymous> (/usr/local/lib/node_modules/xen-api/node_modules/jsonrpc-websocket-client/dist/index.js:77:12)
at emitOne (events.js:116:13)
at Xo.emit (events.js:211:7)
at WebSocket.<anonymous> (/usr/local/lib/node_modules/xen-api/node_modules/jsonrpc-websocket-client/dist/websocket-client.js:206:18)
at WebSocket.onMessage (/usr/local/lib/node_modules/xen-api/node_modules/ws/lib/event-target.js:120:16)
```
After:
```
✖ invalid parameters
property @: should not contains property ["foo"]
property @.id: is missing and not optional
```
2019-09-13 12:02:29 +02:00
Julien Fontanet
4d79c462db
fix(xo-server): use encodeURIComponent for filenames
...
This makes sure special characters like `?` or `#` are correctly handled.
2019-09-10 14:44:48 +02:00
Julien Fontanet
40de8c9e23
fix(xo-server/createVdi): ignore sm_config ( #4484 )
...
Fixes #4482
2019-09-05 14:42:30 +02:00
Julien Fontanet
c69b50c5d2
chore: update dependencies
2019-09-02 09:45:38 +02:00
Julien Fontanet
454c73f42f
chore(xo-server/registerHttpRequest): simplify code
2019-08-23 17:54:54 +02:00
Julien Fontanet
2cfe3360d8
feat(xo-server/config): enable guessVhdSizeOnImport by default ( #4436 )
2019-08-21 17:29:43 +02:00
Julien Fontanet
79a80a1adf
fix(xo-server/vm.set): setting VCPUs_live ( #4360 )
...
Caused by 3196c7ca09
Fixes xoa-support#1632
2019-07-18 17:00:01 +02:00
Julien Fontanet
7cef48b995
fix(xo-server/vm.set): setting affinity ( #4361 )
...
Caused by 3196c7ca09
Fixes xoa-support#1625
2019-07-18 16:41:02 +02:00
Julien Fontanet
0b4adc36a0
chore(xo-server-test): remove unused deps
2019-07-17 16:49:53 +02:00
Julien Fontanet
44776b795f
fix(xo-server-test/.babelrc.js): look into pro deps
2019-07-17 16:49:10 +02:00
Julien Fontanet
bec73a1c43
feat(normalize-packages): further clean package.json
2019-07-17 16:31:34 +02:00
Julien Fontanet
6ce35fdfa8
fix(import-packages): force merge (--no-ff)
2019-07-17 16:30:54 +02:00
Julien Fontanet
dabc2d0442
fix(xo-server-test): adapt to monorepo
2019-07-17 15:54:26 +02:00
Julien Fontanet
0527d3bc2b
Merge branch 'xo-server-test/master'
2019-07-17 15:54:10 +02:00
Julien Fontanet
a7cfb71070
feat(xo-server-test): move all files to packages/xo-server-test
2019-07-17 15:54:10 +02:00
Julien Fontanet
efdfa1f2f7
chore: update dependencies
...
Main goal is to update Babel to latest fix release which fix object rest spread on Node 6
2019-07-16 09:59:03 +02:00
Julien Fontanet
b1acbaecc2
fix(log): remove some lints
2019-07-10 15:40:25 +02:00
Julien Fontanet
6d61e8efff
chore: use native String#{end,start}sWith
...
Supported since Node 4
2019-07-09 16:00:16 +02:00
Julien Fontanet
482e6b3cb3
feat(xo-server/backupNg.runJob): new param settings ( #4321 )
...
Can be used to override certain job settings, the format is the same as the `settings` field in the job.
Related to xoa-support#1583
2019-07-08 14:54:09 +02:00
Julien Fontanet
30b2a8dd8d
feat(log/README): document data param
2019-07-05 12:13:54 +02:00
Julien Fontanet
ebe7f6784a
chore: re-format with Prettier
...
Related to c8aa058ede
Mainly due to https://prettier.io/blog/2019/06/06/1.18.0.html#stop-breaking-simple-template-literals-5979-by-jwbay
2019-07-05 11:34:15 +02:00
Julien Fontanet
cc9c8fb891
feat(CHANGELOG.unreleased): add instructions for devs ( #4333 )
2019-07-05 10:05:02 +02:00
Julien Fontanet
c8aa058ede
chore: update dependencies
2019-07-04 16:01:07 +02:00
Julien Fontanet
863e4f0c19
feat(xo-server/backup NG): new setting bypassVdiChainsCheck ( #4320 )
...
Related to xoa-support#1583
2019-07-04 10:07:28 +02:00
Julien Fontanet
02995d278f
fix(xo-server/server.set): declare readOnly in params
...
Related to b8524732ce
2019-07-02 17:31:44 +02:00
Julien Fontanet
78a2104bcc
fix(xo-server/api/server): use correct types
...
Booleans should be booleans, not strings.
2019-07-02 17:09:57 +02:00
Julien Fontanet
d1935bf778
feat(xo-server-auth-ldap/cli): display the whole entry on success
...
This can help while debugging filters.
2019-06-27 11:31:24 +02:00
Julien Fontanet
70a346d11e
feat(CHANGELOG.unreleased): add xen-api v0.26.0
2019-06-27 11:12:23 +02:00
Julien Fontanet
fd39a2063d
fix(xen-api): refresh pool on new session
2019-06-27 11:08:45 +02:00
Julien Fontanet
682512fffe
fix(xen-api/events): full refresh on new session
2019-06-27 11:08:45 +02:00
Julien Fontanet
cdced63c1b
feat(xo-server-auth-saml): improve Azure AD compat ( #4294 )
...
See xoa-support#1543
2019-06-20 17:11:39 +02:00
Julien Fontanet
45e1d1ecef
fix(CHANGELOG.unreleased): fix issue link
2019-06-19 15:36:21 +02:00
Julien Fontanet
e171d8ed0e
fix(xo-server/vm.set): add auto_poweron to params
...
Related to b8524732ce
Fixes #4295
2019-06-18 17:24:54 +02:00
Julien Fontanet
ab6548122f
Revert "fix(xo-server/metadata-backups): missing pool/remote should emit failure tasks"
...
This reverts commit f81573d999 .
2019-06-17 14:36:49 +02:00
Julien Fontanet
84ccebb858
fix(xo-server/vm.create): accept extra params
...
Fixes #4280
2019-06-15 23:37:46 +02:00
Julien Fontanet
c9e30b74e2
fix(xo-server/api): only change id to namespace if necessary
2019-06-13 12:00:10 +02:00
Julien Fontanet
4b16a2c0c5
fix(xo-server/xo.getAllObjects): correctly validate ndjson param
...
Fixes https://xcp-ng.org/forum/topic/1478/fresh-install-can-t-create-vms-or-see-vms-after-refresh
2019-06-10 14:32:12 +02:00
Julien Fontanet
b8524732ce
fix(xo-server/api): throw on unexpected parameters
2019-06-06 18:11:12 +02:00
Julien Fontanet
814fee4f47
chore(package): update deps
2019-06-06 09:47:04 +02:00
Julien Fontanet
d641d35d5c
fix(xo-server/importDeltaVm): disable HA during import
...
Fixes xoa-support#1525
This is necessary because HA does not respect `blocked_operations.start`.
2019-06-05 17:38:36 +02:00
Julien Fontanet
7464d95b57
chore(xo-server/importDeltaVm): merge some attributes changes into VM record creation
...
Limits race conditions (especially for the `blocked_operations.start`.
2019-06-05 17:27:16 +02:00
Julien Fontanet
3d6aa667fe
chore(xo-server): use xen-api setters for tags
2019-06-04 18:21:47 +02:00
Julien Fontanet
147c3d2e7b
fix(xo-server): dont touch other entries when changing HVM_boot_params.order
2019-06-04 14:55:45 +02:00
Julien Fontanet
ac298c3be3
chore(xo-server): use more Xapi's field entries updaters
2019-06-04 14:37:12 +02:00
Julien Fontanet
e88848c44a
fix(xo-web/xoa): fix email quirk ( #4259 )
2019-06-03 11:12:01 +02:00
Julien Fontanet
cd518e3e4c
chore: update dependencies
2019-06-03 10:51:14 +02:00
Julien Fontanet
6d8785e689
feat(xo-web): 5.42.1
2019-05-29 17:20:59 +02:00
Julien Fontanet
c83f56166d
feat(xo-server): 5.42.1
2019-05-29 17:18:29 +02:00
Julien Fontanet
7199e1a214
feat(CHANGELOG): add channel badges
2019-05-29 16:48:07 +02:00
Julien Fontanet
cc2c71c076
chore(xo-server): remove unnecessary methods
2019-05-28 18:53:57 +02:00
Julien Fontanet
b85c2f35b6
fix(xo-server/vm.set): autoPoweron → auto_poweron in XAPI
...
Related to 0e1e32d241
2019-05-28 11:48:00 +02:00
Julien Fontanet
b2eb970796
fix(xo-server/vm.set): cast weight to string
...
Follow-up of 49e1b0ba7
2019-05-27 16:23:38 +02:00
Julien Fontanet
3ee9c1b550
chore(xo-server/Xapi): remove unused setVcpuWeight
2019-05-27 16:23:37 +02:00
Julien Fontanet
49e1b0ba7e
fix(xo-server/vm.set): cast logical numbers to XAPI string values
2019-05-27 11:10:19 +02:00
Julien Fontanet
453c329f14
fix(xo-server/vm.set): videoram is strictly a number
2019-05-27 11:04:44 +02:00
Julien Fontanet
6dad860635
fix(xo-server/getRemoteHandler): only cache on success
...
Otherwise subsequent calls will use an invalid handler.
Related to xoa-support#1498
2019-05-23 18:13:58 +02:00
Julien Fontanet
0362ac8909
feat(xo-web/home): case-sensitive filtering
2019-05-23 17:34:19 +02:00
Julien Fontanet
77222e9e6b
Update PULL_REQUEST_TEMPLATE.md
2019-05-22 14:50:57 +02:00
Julien Fontanet
e7051c1129
fix(xo-server/network.set): dont pass undefined to update_other_config()
...
Related to 0e1e32d241
2019-05-21 16:47:22 +02:00
Julien Fontanet
3196c7ca09
chore(xo-server): use Xapi's setters ( #4229 )
2019-05-21 15:44:10 +02:00
Julien Fontanet
0e1e32d241
chore(xo-server): use Xapi's field entries updaters ( #4230 )
2019-05-21 15:25:37 +02:00
Julien Fontanet
a34912fb0d
chore(xo-server): move some calls to Xapi#callAsync ( #4227 )
...
Fixes #4226
`.callAsync` is more robust to disconnections than `.call` and should be used for all non-instantaneous calls.
Unfortunately the result can be embedded into XML, you should either not use the result or add `.then(extractOpaquerRef)` if you are expecting an opaque ref.
2019-05-21 15:04:24 +02:00
Julien Fontanet
1e529c995a
chore(xo-server/vm.reboot): move into Xapi#rebootVm
2019-05-21 10:37:56 +02:00
Julien Fontanet
7be1c7a47b
fix(xo-server): always use Xapi#callAsync for migration
2019-05-21 10:24:14 +02:00
Julien Fontanet
b7a92cfe92
feat(xo-server/vif.set): rateLimit support
...
Server-side of #4215
2019-05-20 16:06:42 +02:00