Files
gitea/services/pull
zeripath b091c994b5 Comments on review should have the same sha (#13448)
* When replying to an outdated comment it should not appear on the files page

This happened because the comment took the latest commitID as its base instead of the
reviewID that it was replying to.

There was also no way of creating an already outdated comment - and a
reply to a review on an outdated line should be outdated.

Signed-off-by: Andrew Thornton <[email protected]>

* fix test

Signed-off-by: Andrew Thornton <[email protected]>

* Fix broken migration

Signed-off-by: Andrew Thornton <[email protected]>

* fix mssql

Signed-off-by: Andrew Thornton <[email protected]>

* Create temporary table because ... well MSSQL ...

Signed-off-by: Andrew Thornton <[email protected]>

* Create temporary table because ... well MSSQL ...

Signed-off-by: Andrew Thornton <[email protected]>

* Create temporary table because ... well MSSQL ...

Signed-off-by: Andrew Thornton <[email protected]>

* fix mssql

Signed-off-by: Andrew Thornton <[email protected]>

* move session within the batch

Signed-off-by: Andrew Thornton <[email protected]>

* regen the sqlcmd each time round the loop

Signed-off-by: Andrew Thornton <[email protected]>

* as per @lunny

Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: techknowlogick <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
2020-11-09 01:15:09 -05:00
..