google-nomulus/java/google/registry
larryruili f1c76d035f Prepare ICANN reporting for production
This originally started as a small change, but quickly grew into a major refactor as I realized the original parameter structure wasn't conducive to a cron task and manual re-runs.

The changes are as follows:
1. Adds DNS metrics to activity reports, thanks to Nick's work with the Zoneman Dremel -> #plx workflow.
2. Surrounds registrar names in transactions reports with quotes, to escape possible commas.
3. Factors out the report generation logic into IcannReportingStager.
4. Assigns default values to the three main parameters
  - yearMonth defaults to the previous month
  - subdir defaults to "icann/monthly/yearMonth", i.e. "gs://domain-registry-reporting/icann/monthly/yyyy-MM"
  - reportType defaults to both reports
5. Adds "Total" row generation logic to transactions reports
  - This was a previously overlooked requirement.
6. Adds "MANIFEST.txt" generation and upload logic.
  - The MANIFEST lists out which files need to be uploaded in the subdirectory.
7. Increases urlfetch timeout from 5s to 10s in backend tasks.
  - Backend tasks should be more latency tolerant anyway, and this reduces the number of incorrect timeouts we see for services like Bigquery which might take some time to respond.

TESTED=Extensive testing in alpha, and ran FOSS test.
TODO: send out an e-mail for report generation and upload, and add reporting to cron.xml

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=172738344
2017-10-24 16:53:47 -04:00
..
backup Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
batch Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
bigquery Format some imports using fix_imports.py 2017-10-24 16:53:47 -04:00
braintree Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
builddefs Rename set to depset in .bzl and BUILD files 2017-08-29 16:53:21 -04:00
config Fix problem with RDAP help information 2017-10-24 16:53:47 -04:00
cron Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
dns Translate multi-part TLD zone names 2017-10-24 16:53:47 -04:00
eclipse Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
env Add RDAP support for deleted domains and filtering by registrar 2017-10-24 16:53:47 -04:00
export Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
flows Rename ClaimsCheckFlow to DomainClaimsCheckFlow 2017-10-24 16:53:47 -04:00
gcs Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
groups Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
idn Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
keyring Format some imports using fix_imports.py 2017-10-24 16:53:47 -04:00
loadtest Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
mapreduce Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
model Add metric for lock contention 2017-10-24 16:53:47 -04:00
module Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
monitoring Format some imports using fix_imports.py 2017-10-24 16:53:47 -04:00
pricing Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
rdap Add RDAP support for deleted domains and filtering by registrar 2017-10-24 16:53:47 -04:00
rde Remove reference to TLD in Locks' ResourceName 2017-10-24 16:53:47 -04:00
reporting Prepare ICANN reporting for production 2017-10-24 16:53:47 -04:00
request Prepare ICANN reporting for production 2017-10-24 16:53:47 -04:00
security Remove XsrfTokenManager fallback for validating legacy tokens 2017-03-21 15:36:31 -04:00
storage/drive Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
tldconfig/idn Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
tmch Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
tools Fix NPE in GetHistoryEntriesCommand 2017-10-24 16:53:47 -04:00
ui Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
util Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
whois Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
xjc Fix the build on MacOS 2017-07-12 11:03:50 -04:00
xml Add support for a domain delete superuser EPP extension 2017-09-12 15:51:50 -04:00
BUILD Add nocron ear and deployer rules for the crash environment 2017-10-04 16:16:45 -04:00
repositories.bzl Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00