Skip to content

Conversation

@AnkitCLI
Copy link
Contributor

@AnkitCLI AnkitCLI commented May 7, 2025

This PR contains the fixes for salesforce e2e tests by updating the schema for sObjects and fixing the data validation logic to validate all the records from salesforce and BQ. Previously it was fetching only one record from salesforce.

@AnkitCLI AnkitCLI added the build label May 7, 2025
@AnkitCLI AnkitCLI force-pushed the e2e-test-fixes branch 3 times, most recently from 005d6b1 to 4d73f95 Compare May 8, 2025 06:18
@AnkitCLI AnkitCLI marked this pull request as ready for review May 8, 2025 10:22
@AnkitCLI AnkitCLI requested review from itsankit-google and ritwiksahani and removed request for itsankit-google May 8, 2025 10:25
Copy link

@ritwiksahani ritwiksahani left a comment

Choose a reason for hiding this comment

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

Please add details in the description around what E2E test is failing and details around what changes we are doing to fix it.

@AnkitCLI AnkitCLI force-pushed the e2e-test-fixes branch 3 times, most recently from 20ce8d9 to e29559e Compare May 8, 2025 16:14
@AnkitCLI AnkitCLI force-pushed the e2e-test-fixes branch 4 times, most recently from 6b25d30 to 05534f0 Compare May 9, 2025 04:40
@AnkitCLI AnkitCLI requested a review from ritwiksahani May 9, 2025 04:42
Copy link

@ritwiksahani ritwiksahani left a comment

Choose a reason for hiding this comment

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

Please ensure that e2e tests are now successful after this change.

logger.info("Queried Object id from response: " + uniqueRecordId);
String id = recordObject.get("Id").getAsString();
idList.add(id);
logger.info("Queried Object id from response: " + idList);

Choose a reason for hiding this comment

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

We should not be logging idList every time. Pelase change this log to id.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

public void updateExistingSalesforceRecords() {
String uniqueRecordId = SalesforceClient.queryObjectId(customObject);
SalesforceClient.updateObject(uniqueRecordId, customObject);
List<String> uniqueRecordId = SalesforceClient.queryObjectId(customObject);

Choose a reason for hiding this comment

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

rename the variable to recordIdList/recordIds.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@AnkitCLI AnkitCLI force-pushed the e2e-test-fixes branch 2 times, most recently from d1e84e8 to 532feb7 Compare May 9, 2025 07:29
@AnkitCLI AnkitCLI merged commit ac45c00 into data-integrations:develop May 9, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants