[
https://issues.apache.org/jira/browse/GOBBLIN-1904?focusedWorklogId=880365&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-880365
]
ASF GitHub Bot logged work on GOBBLIN-1904:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 14/Sep/23 11:47
Start Date: 14/Sep/23 11:47
Worklog Time Spent: 10m
Work Description: gautamguptabasant commented on code in PR #3768:
URL: https://github.com/apache/gobblin/pull/3768#discussion_r1325828361
##########
gobblin-salesforce/src/main/java/org/apache/gobblin/salesforce/SalesforceSource.java:
##########
@@ -155,19 +133,25 @@ protected void addLineageSourceInfo(SourceState
sourceState, SourceEntity entity
}
@Override
protected List<WorkUnit> generateWorkUnits(SourceEntity sourceEntity,
SourceState state, long previousWatermark) {
- List<WorkUnit> workUnits = null;
- workUnitConf = new SfConfig(state.getProperties());
+ SalesforceConnector connector = getConnector(state);
Review Comment:
This needs to update the class variable. Updated, thanks.
Issue Time Tracking
-------------------
Worklog Id: (was: 880365)
Time Spent: 1h 50m (was: 1h 40m)
> Refactor Salesforce Source to promote testability
> -------------------------------------------------
>
> Key: GOBBLIN-1904
> URL: https://issues.apache.org/jira/browse/GOBBLIN-1904
> Project: Apache Gobblin
> Issue Type: Improvement
> Components: gobblin-core
> Reporter: William Lo
> Assignee: Abhishek Tiwari
> Priority: Major
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> Salesforce source is difficult to test due to many internal classes that
> cannot mock inputs and outputs. We should clean this class and use
> composition to promote testability.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)