Skip to content
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 issue updated_unix bug #2204

Merged
merged 1 commit into from
Jul 27, 2017

Conversation

ethantkoenig
Copy link
Member

Fixes #1938.

The Issue.UpdatedUnix column is set in the BeforeUpdate() method. However, that write had no effect on the updated_unix column when updateIssueCols(..) was called, unless "updated_unix" was explicitly listed as a column to update.

This PR:

  • fixes updateIssueCols(..) to always update updated_unix.
  • updates createComment() to update an issue's updated_unix column when a comment is added.
  • includes relevant unit tests

@andreynering
Copy link
Contributor

Trusted LGTM

@lafriks
Copy link
Member

lafriks commented Jul 23, 2017

LGTM

@lafriks lafriks added the lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. label Jul 23, 2017
@lafriks lafriks added this to the 1.2.0 milestone Jul 23, 2017
@lunny
Copy link
Member

lunny commented Jul 26, 2017

@ethantkoenig please force empty push

@lafriks
Copy link
Member

lafriks commented Jul 26, 2017

@ethantkoenig please resolve conflict

@lunny
Copy link
Member

lunny commented Jul 27, 2017

make L-G-T-M work

@lunny lunny merged commit a27863b into go-gitea:master Jul 27, 2017
@ethantkoenig ethantkoenig deleted the fix/issue_updated_unix branch July 28, 2017 03:24
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug type/testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sorting by Recently updated/Least recently updated not working
4 participants