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

Pontoon database includes about 300k rejected translations with no rejected_date #1317

Open
mathjazz opened this issue Aug 23, 2021 · 1 comment
Labels

Comments

@mathjazz
Copy link
Owner

This issue was created automatically by a script.

Bug 1727322

Bug Reporter: @eemeli
CC: @mathjazz

Discovered while building historical data for Project Insights, these almost certainly have no effect on normal operations, but make it a bit difficult to generate some of the statistics correctly. Visible with e.g. this query:

SELECT pro.id, pro.name, count(*)
FROM
  base_translation AS tra,
  base_entity AS ent,
  base_resource AS res,
  base_project AS pro
WHERE
  tra.rejected AND tra.rejected_date IS NULL AND
  tra.entity_id = ent.id AND
  ent.resource_id = res.id AND
  res.project_id = pro.id
GROUP BY pro.id
ORDER BY pro.name;

As the creation dates of these translations are rather spread out, it looks like there's some process that updates the rejected field without a corresponding rejected_date change.

@mathjazz
Copy link
Owner Author

Comment Author: @eemeli

Dropping the block of 1725648, as the scope of the parent issue was clarified not to include the affected data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant