duckduckgo / community-platform

DuckDuckGo Community Platform
https://duck.co/
Other
457 stars 128 forks source link

Skip updating locale package if no update in last 12h #1511

Closed jbarrett closed 6 years ago

jbarrett commented 6 years ago
Description :

Do not publish locale package if there has not been a new translation or vote in 12 hours

Reviewer notes :

(Providing you have made no translation changes in the last 12h):

  1. This will skip publishing the package: $ script/ddgc_update_locale_dist.pl --domain=test
  2. You can force it to update: $ script/ddgc_update_locale_dist.pl --domain=test --force
  3. Go to /translate/test and add or vote on a translation, then publish without force publishes a package: $ script/ddgc_update_locale_dist.pl --domain=test
  4. Wait a few seconds and try with a different delta - this should skip publish: $ script/ddgc_update_locale_dist.pl --domain=test --delta=5s
References issues / PRs:

#

Who should be informed of this change?
Does this change have significant privacy, security, performance or deployment implications?
Checklist :