-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
Subject: 2 timestamp fields in TestExecution class #1924 #2251
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Run
manage.py makemigrations
& squash all commits together, see http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html - See https://chris.beams.io/posts/git-commit/ on info how to improve your commit log message
- See https://docs.github.com/en/enterprise/2.16/user/github/managing-your-work-on-github/closing-issues-using-keywords about how to reference existing issues in commit log
5bcddd9
to
ca31d81
Compare
Im having some trouble😅 for some reason although I pulled from master, then ran manage.py makemigrations, made another commit and squashed it with all the previous ones I made, calling it "Add: New timestamp fields in TestExecution class .Refs #1924", its still trying to commit them twice. Also the commit with "Merge branch 'anastasiya-branch' of https://github.com/MLH-Fellowship… …" is not showing up when I search for it with rebase log. Do you have any advice on how I can delete the repeated commits that are showing up here? Thank you for all your help! |
The commit you see with "Merge branch ..." is called a merge commit, aka 3 way merge (https://hamwaves.com/collaboration/doc/rypress.com/branches-2.html search for 3-way merge). This happened automatically when you did
Another option if the local master branch is not clean is to rebase against Don't sweat it too much. The upstream branch is moving very rapidly but unless you need to rebase because of conflicts you can keep working against an older version as well. |
ca31d81
to
8a1679a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop the last commit and focus on the other comments from the code review.
Renaming close_date
to stop_date
should be done where needed, not everywhere where this variable name occurs. As-is the last commit is creating more issues than it solves.
150f42c
to
9bce5db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See latest comments & squash all commits together.
a3c71b0
to
e5dcb26
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor changes requested!
- Squash commits and update commit log to match!
17267d2
to
ddfeee9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, docker test failed for unrelated reasons.
As soon as it passes I will merge this PR, check the issue for the next steps.
This commit is part of the issue #1924 where Kiwi TCMS needs additional fields for the TestExecution class. This is a prerequisite for time tracking features & telemetry. Here are the changes that this commit is trying to make:
New field TestExecution.start_date of type DateTimeField(db_index=True, null=True, blank=True)
Renamed the TestExecution.close_date to TestExecution.stop_date and add db_index=True
Added a new property TestExecution.actual_duration - the difference between the 2 fields
Added a new property TestExecution.expected_duration -> self.case.expected_duration; for convenience, see 2 duration fields in TestCase class #1923
API method TestExecution.update() supports the new start_date and close_ date fields