Uploaded image for project: 'AdMaxLocal'
  1. AdMaxLocal
  2. AML-4158

The argument "Rerun" is not deleting the old report file for report-ad-leads-data.sh script

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a Bug
    • Affects Version/s: Mercury
    • Fix Version/s: None
    • Component/s: Other / Misc.
    • Labels:
      None
    • Environment:

      QA 4
      Build#ops-scripts-3.0.0-RC3

      Description

      The argument "Rerun" is not deleting the report file for report-ad-leads-data.sh script/

      1.[amlops@aml-qa4-monman1 performance]$ ./report-ad-leads-data.sh -h aml-qa4-mysql1 -u spike -p tar63t -r qa4amltest -d 2016-04-08
      .
      .
      .Using /tmp/ad_leads_data_reports/ for output directory.

      .
      ..
      2.Check the csv content and rows

      [amlops@aml-qa4-monman1 performance]$ wc -l /tmp/ad_leads_data_reports/Bing-qa4amltest-ad-leads-data-2016-04-08.csv
      9 /tmp/ad_leads_data_reports/Bing-qa4amltest-ad-leads-data-2016-04-08.csv

      3.Now run the script with option rerun

      ./report-ad-leads-data.sh -h aml-qa4-mysql1 -u spike -p tar63t -r qa4amltest -d 2016-04-08 -n

      ./report-ad-leads-data.sh -h aml-qa4-mysql1 -u spike -p tar63t -r qa4amltest -d 2016-04-08 -n

      4.Check the content of the csv

      Actual Result:

      Ad leads data is appending in the existing csv file.

      [amlops@aml-qa4-monman1 performance]$ wc -l /tmp/ad_leads_data_reports/Bing-qa4amltest-ad-leads-data-2016-04-08.csv
      17 /tmp/ad_leads_data_reports/Bing-qa4amltest-ad-leads-data-2016-04-08.csv

      Please see

      https://bitbucket.org/tsa/ops-scripts/commits/2eba9d42d4d57d2347b490864ea3f11ba1c924b2?at=develop#chg-scripts/report-ad-leads-data.sh

      Expected Result:

      Rerun option should delete the old file, recreate a new adwords level data csv.

      P.S. This is observed for the script report-keyword-leads-data.sh also

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              atul.sanagar Atul Sanagar (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: