Obsolete Resources instead of deleting them
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.
Comment Author: @mathjazz
When the Resource is made obsolete, we should set the value of the date_obsoleted field (see bug #1473749).
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