team: Generate team page data using cron job.

This eliminates the contributors data as a possible source of
flakiness when installing Zulip from Git.

Fixes #14351.
This commit is contained in:
Vishnu KS
2020-04-07 22:57:07 +05:30
committed by Tim Abbott
parent 8415a1472a
commit 449f7e2d4b
10 changed files with 52 additions and 70 deletions

View File

@@ -134,12 +134,6 @@ def main(options: argparse.Namespace) -> int:
else:
print("No need to run `tools/setup/build_pygments_data`.")
update_authors_json_paths = ["tools/fetch-contributor-data", "zerver/tests/fixtures/authors.json"]
if file_or_package_hash_updated(update_authors_json_paths, "update_authors_json_hash", options.is_force):
run(["tools/fetch-contributor-data", "--use-fixture"])
else:
print("No need to run `tools/fetch-contributor-data`.")
email_source_paths = ["scripts/setup/inline-email-css", "templates/zerver/emails/email.css"]
email_source_paths += glob.glob('templates/zerver/emails/*.source.html')
if file_or_package_hash_updated(email_source_paths, "last_email_source_files_hash", options.is_force):