pontoon icon indicating copy to clipboard operation
pontoon copied to clipboard

Obsolete Resources instead of deleting them

Open bugzilla-to-github opened this issue 7 years ago • 2 comments

This issue was created automatically by a script.

Bug 1468840

Bug Reporter: @mathjazz CC: @VishalCR7 Depends on: Bug 1473749

When a source string is removed from the VCS, we mark corresponding Entity object as obsolete in the DB.

When a source file is removed from the VCS, we delete the corresponding Resource object from the DB.

That's inconsistent.

We should unify the behaviour by marking corresponding Resource objects as obsolete when source files are removed. One of the consequences will be more accurate contributor stats.

bugzilla-to-github avatar Jun 14 '18 06:06 bugzilla-to-github

Comment Author: @mathjazz

When the Resource is made obsolete, we should set the value of the date_obsoleted field (see bug #1473749).

bugzilla-to-github avatar Jul 05 '18 08:07 bugzilla-to-github

Comment Author: GitHub Bugzilla PR Linker <[email protected]>

Created attachment 9035975 Link to GitHub pull-request: https://github.com/mozilla/pontoon/pull/1163

Attached file: file_244106172.txt (text/x-github-pull-request, 44 bytes) Description: Link to GitHub pull-request: https://github.com/mozilla/pontoon/pull/1163

bugzilla-to-github avatar Jan 11 '19 02:01 bugzilla-to-github