Skip to content

Conversation

@khansaad
Copy link
Contributor

@khansaad khansaad commented Apr 21, 2025

Description

This PR adds validations for the Bulk API params.

Fixes # (issue)

Type of change

  • Bug fix
  • New feature
  • Docs update
  • Breaking change (What changes might users need to make in their application due to this PR?)
  • Requires DB changes

How has this been tested?

Please describe the tests that were run to verify your changes and steps to reproduce. Please specify any test configuration required.

  • New Test X
  • Functional testsuite

Test Configuration

  • Kubernetes clusters tested on:

Checklist 🎯

  • Followed coding guidelines
  • Comments added
  • Dependent changes merged
  • Documentation updated
  • Tests added or updated

Additional information

Include any additional information such as links, test results, screenshots here

@khansaad khansaad added this to the Kruize 0.6 Release milestone Apr 21, 2025
@khansaad khansaad requested a review from msvinaykumar April 21, 2025 04:50
@khansaad khansaad self-assigned this Apr 21, 2025
@rbadagandi1 rbadagandi1 moved this to Under Review in Monitoring May 2, 2025
@rbadagandi1 rbadagandi1 moved this from Under Review to In Progress in Monitoring May 2, 2025
@khansaad khansaad moved this from In Progress to Under Review in Monitoring Dec 1, 2025
@rbadagandi1 rbadagandi1 requested review from bharathappali and removed request for msvinaykumar December 2, 2025 09:03
@khansaad khansaad mentioned this pull request Dec 2, 2025
12 tasks
Copy link
Member

@bharathappali bharathappali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@khansaad Thanks for the PR, I have requested some changes for adding copyrights and java doc, apart from that everything LGTM

@@ -0,0 +1,95 @@
package com.autotune.common.bulk;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@khansaad Thanks for raising the validations PR. Please kindly add the Copyrights header, as it's a new file.

import java.time.OffsetDateTime;
import java.time.format.DateTimeParseException;

public class BulkServiceValidation {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a Javadoc could be a bit helpful for the devs to understand about this class.


private static final Logger LOGGER = LoggerFactory.getLogger(BulkServiceValidation.class);

public static ValidationOutputData validate(BulkInput payload, String jobID) throws Exception {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Java doc for this and other methods would be helpful as well.

return errorMessage;
}

public static String validateTimeRange(BulkInput.TimeRange timeRange) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a java doc would be helpful

}


public static String validateDatasourceConnection(String datasourceName) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a java doc would be helpful

return validationOutputData;
}

private static ValidationOutputData buildErrorOutput(String errorMsg, String jobID) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a java doc would be helpful

@khansaad
Copy link
Contributor Author

khansaad commented Dec 5, 2025

@khansaad Thanks for the PR, I have requested some changes for adding copyrights and java doc, apart from that everything LGTM

Thanks for pointing that out. Added now.

Copy link
Member

@bharathappali bharathappali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Under Review

Development

Successfully merging this pull request may close these issues.

4 participants