-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: use *time.Time
to represent finish time
#4056
Conversation
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #4056 +/- ##
==========================================
+ Coverage 38.61% 38.77% +0.15%
==========================================
Files 167 167
Lines 13729 13749 +20
==========================================
+ Hits 5302 5331 +29
+ Misses 7998 7985 -13
- Partials 429 433 +4
... and 9 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
/cc @cwen0 |
/cc @STRRL |
it might bring breaking changes on db table schema, although we enabled the I would take a try with MySQL later, then I would give my lgtm |
Oh...yes, I tested in a new MySQL database and all works fine, but I didn't test on an existing MySQL with old Chaos experiments. |
/lgtm I noticed that gorm already used create table experiments
(
id int unsigned auto_increment
primary key,
created_at datetime null,
updated_at datetime null,
deleted_at datetime null,
uid varchar(255) null,
kind varchar(255) null,
name varchar(255) null,
namespace varchar(255) null,
action varchar(255) null,
start_time datetime null,
finish_time datetime null,
archived tinyint(1) null,
experiment varchar(4096) null
); |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: STRRL The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* fix: use `*time.Time` to represent finish time Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * Update CHANGELOG.md Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> --------- Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
What problem does this PR solve?
Close #1659
What's changed and how it works?
Use
*time.Time
to represent the finish time, this can prevent an invalid date0000-00-00
being inserted when creating a chaos object.Related changes
UI interface
Checklist
CHANGELOG
CHANGELOG.md
Tests
Side effects
DCO
If you find the DCO check fails, please run commands like below (Depends on the actual situations. For example, if the failed commit isn't the most recent) to fix it: