Subversion Repositories SmartDukaan

Rev

Rev 35610 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35610 Rev 35612
Line 117... Line 117...
117
import org.openqa.selenium.chrome.ChromeOptions;
117
import org.openqa.selenium.chrome.ChromeOptions;
118
import org.springframework.beans.factory.annotation.Autowired;
118
import org.springframework.beans.factory.annotation.Autowired;
119
import org.springframework.core.io.ByteArrayResource;
119
import org.springframework.core.io.ByteArrayResource;
120
import org.springframework.mail.javamail.JavaMailSender;
120
import org.springframework.mail.javamail.JavaMailSender;
121
import org.springframework.stereotype.Component;
121
import org.springframework.stereotype.Component;
-
 
122
import org.springframework.transaction.annotation.Propagation;
122
import org.springframework.transaction.annotation.Transactional;
123
import org.springframework.transaction.annotation.Transactional;
123
 
124
 
124
import java.io.File;
125
import java.io.File;
125
import java.io.FileInputStream;
126
import java.io.FileInputStream;
126
import java.io.IOException;
127
import java.io.IOException;
Line 2082... Line 2083...
2082
     * Tickets resolved on behalf of Gaurav CRM (gaurav.sharma@smartdukaan.com)
2083
     * Tickets resolved on behalf of Gaurav CRM (gaurav.sharma@smartdukaan.com)
2083
     *
2084
     *
2084
     * @param dryRun if true, only logs what would be done without making changes
2085
     * @param dryRun if true, only logs what would be done without making changes
2085
     * @return summary of the operation
2086
     * @return summary of the operation
2086
     */
2087
     */
-
 
2088
    @Transactional(propagation = Propagation.REQUIRES_NEW)
2087
    public String resolveOldEscalationTickets(boolean dryRun) throws Exception {
2089
    public String resolveOldEscalationTickets(boolean dryRun) throws Exception {
2088
        StringBuilder result = new StringBuilder();
2090
        StringBuilder result = new StringBuilder();
2089
        result.append(dryRun ? "=== DRY RUN MODE ===\n" : "=== EXECUTING ===\n");
2091
        result.append(dryRun ? "=== DRY RUN MODE ===\n" : "=== EXECUTING ===\n");
2090
        LOGGER.info("Starting resolveOldEscalationTickets migration (dryRun={})...", dryRun);
2092
        LOGGER.info("Starting resolveOldEscalationTickets migration (dryRun={})...", dryRun);
2091
 
2093