slapos.core:4a295cbaa3031253ccc222bbcf35df820538d917 commitshttps://lab.nexedi.com/nexedi/slapos.core/-/commits/4a295cbaa3031253ccc222bbcf35df820538d9172020-01-14T05:00:30+01:00https://lab.nexedi.com/nexedi/slapos.core/-/commit/4a295cbaa3031253ccc222bbcf35df820538d917slapos_crm: Display age of the message at the report2020-01-14T05:00:30+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/f6df7e608ff715591f361d83a4f7f42a8f52c423slapos_crm: Fix selection_list on catalog call2020-01-14T05:00:29+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/58419b684584c87824c0887d475faccfe8d8ae91slapos_crm: Define 30 days tolerance before create a ticket for the hosting s...2020-01-14T05:00:26+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/fcec90a244ea6c664d491fcfae53e71f7681a96eslapos_crm: Also check ComputerState for Subscription related Computers2020-01-14T05:00:25+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/79ad93cd7580ea8e2aac8da4a5eae6e6496e2b8eslapos_jio: show all parameters in one page in software_instance_view2020-01-13T19:03:28+01:00Thomas Gambierthomas.gambier@nexedi.com
the pagination doesn't work because
SoftwareInstance_getConnectionParameterList returns always all
parameters.https://lab.nexedi.com/nexedi/slapos.core/-/commit/14bf765268c6c41e2cc0a5b5262a7b176208ce9aRelease 1.5.62020-01-09T11:31:41+01:00Łukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/cff209d06908f65ee82e3cd63c38fef6ac9cef4bpromise: Cleanup stale monitoring files of removed promises2020-01-09T11:25:26+01:00Łukasz Nowakluke@nexedi.com
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/174" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/174" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3546" data-project-path="nexedi/slapos.core" data-iid="174" data-mr-title="Feature/promise cleanup" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!174</a>https://lab.nexedi.com/nexedi/slapos.core/-/commit/63b17738d07508e30fa3262d6b9155b253e66d50slapgrid: binary cache only option2020-01-08T09:59:55+01:00Łukasz Nowakluke@nexedi.com
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/173" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/173" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3542" data-project-path="nexedi/slapos.core" data-iid="173" data-mr-title="slapgrid: binary cache only option" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!173</a>https://lab.nexedi.com/nexedi/slapos.core/-/commit/78f01daf8b5a54b346e248c8b2eca4487c5caf21slapos_slap_tool: Add test to call API Twice2020-01-08T06:50:48+01:00Rafael Monneratrafael@nexedi.com
'since' should be unmutable.https://lab.nexedi.com/nexedi/slapos.core/-/commit/9e1ec652848aa998dc88adb862873adf2739a0d6slapos_crm: Ensure you are comparing integers when get value from preference2020-01-08T06:15:37+01:00Rafael Monneratrafael@nexedi.com
Also define a short cache, to prevent creation explosionhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/f904129e2b654cf2b94f4c428ee4f71f9c9c2517SlapTool: Store since when the logged information is there.2020-01-08T06:13:40+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/390480e46d578bb22bf35fe698ef6b6845e8b83aSlapTool: Use script rather them a local method2020-01-08T06:13:39+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/9024402b2d7ac8bf8818ec266fd5636c0aabdcb6slapos_crm: Extent SoftwareInstance_hasReportedError to make it more flexible2020-01-08T06:13:39+01:00Rafael Monneratrafael@nexedi.com
Allow it report the message and creation date, which can be usable on other contexts.https://lab.nexedi.com/nexedi/slapos.core/-/commit/81c4585a9c87514b5b09623e98ef037e36b4dff5slapos_crm: More accurate checks when recheck the Support Reuest Monitoring S...2020-01-08T06:13:39+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/9bd2ad5a9b64c7b44cfa104eae3c7d37e3324ffdslapos_jio: fix AccountingTransaction_getPaymentStateAsHateoas after...2020-01-07T14:38:32+01:00Thomas Gambierthomas.gambier@nexedi.comslapos_jio: fix AccountingTransaction_getPaymentStateAsHateoas after <a href="/nexedi/slapos.core/-/commit/f512ad84c587702066c6a981885f039b16c31875" data-original="f512ad84c587702066c6a981885f039b16c31875" data-link="false" data-link-reference="false" data-project="77" data-commit="f512ad84c587702066c6a981885f039b16c31875" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="slapos_payzen; Scripts moved to slapos_account in order to make it compatible..." class="gfm gfm-commit has-tooltip">f512ad84</a>
https://lab.nexedi.com/nexedi/slapos.core/-/commit/40501fcae95e29bdc8edc3e7a0a3e391de5523faBetter testcase snapshots2020-01-07T04:11:55+01:00Jérome Perrinjerome@nexedi.com
Implementing improvements discussed in <a href="https://lab.nexedi.com/nexedi/slapos/commit/1a5df533809238a82b09fc9aae56bc90e31672af#note_93275" data-original="https://lab.nexedi.com/nexedi/slapos/commit/1a5df533809238a82b09fc9aae56bc90e31672af#note_93275" data-link="false" data-link-reference="true" data-project="15" data-commit="1a5df533809238a82b09fc9aae56bc90e31672af" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="slaprunner: support shared parts" class="gfm gfm-commit has-tooltip">slapos@1a5df533 (comment 93275)</a> and on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/150#note_92471" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/150#note_92471" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3376" data-project-path="nexedi/slapos.core" data-iid="150" data-mr-title="testcase: Snapshot on setUpClass failure" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!150 (comment 92471)</a>
We now only store slapos logs one per `setUpModule` for software and `setupClass` for instances.
There's no de-duplication, but it's still a bit big.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/156" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/156" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3412" data-project-path="nexedi/slapos.core" data-iid="156" data-mr-title="Better testcase snapshots" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!156</a>https://lab.nexedi.com/nexedi/slapos.core/-/commit/7923d872cad675ed3eab2cc8bcbdcd7c1df57c57slapos_jio_ui_test: Ensure the test is reindexed.2020-01-03T16:05:10+00:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/f89a7d75ccca44d3f6072d67f02af5374cce6561slapos_subscription_request: Implement notification when Instance is ready sc...2020-01-03T02:26:15+00:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/b9a856389ec9860c6bc638e71b09ac76d8e464bcslapos_subscription_request: Display more columns on Subscription Condition L...2020-01-02T22:30:59+00:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/f479e62e9a768592bdffd97b008174829aeb60e6slapos_subscription_request: Extend subscription_request_workflow to handle n...2020-01-02T18:11:38+00:00Rafael Monneratrafael@nexedi.com
Include additional states to handle additional steps when handle a subscription requests.
started: Once Subscription is started, it means that instance is ready and user was notified
stopped: Once Subscription is stopped, it means that instance is destroyed but not all invoices were payed. Subscription is about to be Delivered (Closed).https://lab.nexedi.com/nexedi/slapos.core/-/commit/c0ab4e958513ebc555379dda5d203a637a3d18d4slapos_jio: Remove unfinished chinese translation2019-12-30T22:29:48+00:00Rafael Monneratrafael@nexedi.com
This prevents things get broken.https://lab.nexedi.com/nexedi/slapos.core/-/commit/fc3284987a0ee88aeb6d63a38c1c7b31485763c1slapos_erp5: Fix user security for Software/Slave Instance/Installation on sh...2019-12-27T22:47:47+00:00Rafael Monneratrafael@nexedi.com
Once the Computer/Hosting Subscription is transferred using Internal Packing List, the associated installation and instance should acquire security from the respective context.https://lab.nexedi.com/nexedi/slapos.core/-/commit/1c509f97bd226ff815d82731d5ab72fe4e8f944aslapos_erp5: Update wechat event roles when edit the document.2019-12-27T15:48:25-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/f721ab4406c9cdbd6155be3bce38cb25886f6883slapos_crm: Fix up test, alarm is only call for Support Request associated to...2019-12-27T15:48:24-02:00Rafael Monneratrafael@nexedi.comslapos_crm: Fix up test, alarm is only call for Support Request associated to a Hosting Subscription
https://lab.nexedi.com/nexedi/slapos.core/-/commit/7c493839205acb0b204565158975822c694143f6slapos_jio: Translate Payment Result page into Chinese.2019-12-27T15:48:24-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/7e808622568df515270327c08f010fb777a1d220slapos_crm: Do not suspend Support Requests2019-12-27T15:48:23-02:00Rafael Monneratrafael@nexedi.com
Tickets should be automatic suspended if they aren't supposed to be responded by the user.https://lab.nexedi.com/nexedi/slapos.core/-/commit/95eb074e87b0ab0427648fe0090ff6726a2c26ccslapos_wechat: Base_queryWechatOrderStatusByTradeNo uses shadow person2019-12-27T15:48:23-02:00Rafael Monneratrafael@nexedi.com
This API is used by anonymous so we convert the query for the rely on shadow person securityhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/3ba6dd46d891fd11ef0cbdbae4474cf22415012fslapos_wechat: Fixup security for anonymous access while verifing payment2019-12-27T15:48:22-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/179bcdaac6c9ddfe6b194975c7193e0ef234498fslapos_wechat: Images from wechat are published by default2019-12-27T15:48:21-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/5bd516bdb0bd66fd7fe7198ad760f94f860e05d4promise: Cleanup plugin folder on each run2019-12-27T14:14:30+01:00Łukasz Nowakluke@nexedi.com
Promise can appear and disappear, and pyc or pyo files can stay in the folder,
so try hard to remove those stale files.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/169" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/169" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3514" data-project-path="nexedi/slapos.core" data-iid="169" data-mr-title="promise: Cleanup plugin folder on each run" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!169</a>https://lab.nexedi.com/nexedi/slapos.core/-/commit/dd8f4b5aefbb44734f76324328b87267e87b1c20testing/testcase: remove slapos log files after each test class2019-12-27T12:34:46+01:00Jérome Perrinjerome@nexedi.com
To isolate log files per test in the snapshotshttps://lab.nexedi.com/nexedi/slapos.core/-/commit/92c9a0fb0cd57e9fa8027881c1789661490ef716testing/testcase: separate instance/software snapshot2019-12-27T09:30:50+01:00Jérome Perrinjerome@nexedi.com
Log files from slapos node software are large and they are always the
same after each test method, so it does not make much sense to store
them for each test method snapshot, because we only run slapos node
software at setupModule step.
Log files from slapos node instance are smaller, but it's also not
needed to make a snapshot after each test, because we only run slapos
node instance at setUpClass step.
To prevent duplication, store slapos log files only at setupModule (for
software) and at setUpClass (for instance).
Also store log slapos log files in all the steps that can fail in
_cleanup.https://lab.nexedi.com/nexedi/slapos.core/-/commit/8354f1a4664df7956eb6059062262f0bb38fc5d5testing/testcase: snapshot etc recursively2019-12-27T09:30:50+01:00Jérome Perrinjerome@nexedi.com
Everything in etc can be interesting while investigating issues in
test, also it should not be too big.https://lab.nexedi.com/nexedi/slapos.core/-/commit/fe162b7dd2361d7b616bc8e20d1bc669fa2f63abtesting/testcase: snapshot bin/*2019-12-27T09:30:50+01:00Jérome Perrinjerome@nexedi.com
It's also interesting to see what scripts have been generatedhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/d0c4d6997b1537f795940c3a4a9778aa13d6e5b2testing/testcase: snapshot *.cfg and .*.cfg files in instance dir2019-12-27T09:30:50+01:00Jérome Perrinjerome@nexedi.com
Keeping buildout.cfg and .installed.cfg can help diagnosing test
failures.https://lab.nexedi.com/nexedi/slapos.core/-/commit/9d985106c8ed199df91535e964098b26f5926c68testing/testcase: snapshot symlinks and directories2019-12-27T09:30:50+01:00Jérome Perrinjerome@nexedi.com
Directories were ignored by mistake, we found out that several files
that would help us diagnosing problems were missing, because we only
snapshot etc/* which did not snapshot recursive directories such as
etc/promise or etc/service.
Symlinks were copied (the target was copied), because they matched the
isfile check, but if the symlink target was not existent, this caused
errors.
Also rename _snapshot_instance_file to _copySnapshot as it is no longer
treating files onlyhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/c20aaaac800a17df2aa7b0dd085618fd7b396776standalone: keep only 5MB of logs2019-12-27T09:30:50+01:00Jérome Perrinjerome@nexedi.com
50 was too much now that we keep snapshots in tests.https://lab.nexedi.com/nexedi/slapos.core/-/commit/b5772299ea8fc3c5b0181a4fa46e0bd4fc779df5testcase: Snapshot more interesting files2019-12-24T11:04:55+01:00Łukasz Nowakluke@nexedi.com
supervisor configuration is interesting to inspect in, the same for runners
in run and service directories.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/170" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/170" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3521" data-project-path="nexedi/slapos.core" data-iid="170" data-mr-title="testcase: Snapshot more interesting files" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!170</a>https://lab.nexedi.com/nexedi/slapos.core/-/commit/d7bf6407c6dce0f776185babc96016349faf5b69slapos_jio_ui_test: Check user access improper subscription2019-12-20T14:33:52+01:00Boxiang Sunboxiang.sun@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/4b2f3583f0c14419b00b4ed7fbd3f33b76494406slapos_jio: Notify user they are trying to access document without correct pe...2019-12-20T14:33:52+01:00Boxiang Sunboxiang.sun@nexedi.com
And display a "logout" button in the page.
Instead display plain renderjs error message