Skip to content

Commit

Permalink
Rename jobs/get-light to jobs/get_light and log response (airbytehq#1…
Browse files Browse the repository at this point in the history
…6685)

* test

* update jobInfoLight route and add log
  • Loading branch information
pmossman authored and robbinhan committed Sep 29, 2022
1 parent ae8b2e5 commit 752ddad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion airbyte-api/src/main/openapi/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2113,7 +2113,7 @@ paths:
$ref: "#/components/responses/NotFoundResponse"
"422":
$ref: "#/components/responses/InvalidInputResponse"
/v1/jobs/get-light:
/v1/jobs/get_light:
post:
tags:
- jobs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,9 @@ private CheckedSupplier<Worker<StandardSyncInput, ReplicationOutput>, Exception>
throws ApiException {
final JobIdRequestBody id = new JobIdRequestBody();
id.setId(Long.valueOf(jobRunConfig.getJobId()));

final var jobScope = airbyteApiClient.getJobsApi().getJobInfoLight(id).getJob().getConfigId();
final var jobInfo = airbyteApiClient.getJobsApi().getJobInfoLight(id);
LOGGER.info("received response from from jobsApi.getJobInfoLight: {}", jobInfo);
final var jobScope = jobInfo.getJob().getConfigId();
final var connectionId = UUID.fromString(jobScope);

return () -> new ReplicationLauncherWorker(
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/api/generated-api-html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ <h4><a href="#Jobs">Jobs</a></h4>
<li><a href="#cancelJob"><code><span class="http-method">post</span> /v1/jobs/cancel</code></a></li>
<li><a href="#getJobDebugInfo"><code><span class="http-method">post</span> /v1/jobs/get_debug_info</code></a></li>
<li><a href="#getJobInfo"><code><span class="http-method">post</span> /v1/jobs/get</code></a></li>
<li><a href="#getJobInfoLight"><code><span class="http-method">post</span> /v1/jobs/get-light</code></a></li>
<li><a href="#getJobInfoLight"><code><span class="http-method">post</span> /v1/jobs/get_light</code></a></li>
<li><a href="#listJobsFor"><code><span class="http-method">post</span> /v1/jobs/list</code></a></li>
</ul>
<h4><a href="#Logs">Logs</a></h4>
Expand Down Expand Up @@ -4743,7 +4743,7 @@ <h4 class="field-label">422</h4>
<div class="method"><a name="getJobInfoLight"/>
<div class="method-path">
<a class="up" href="#__Methods">Up</a>
<pre class="post"><code class="huge"><span class="http-method">post</span> /v1/jobs/get-light</code></pre></div>
<pre class="post"><code class="huge"><span class="http-method">post</span> /v1/jobs/get_light</code></pre></div>
<div class="method-summary">Get information about a job excluding attempt info and logs (<span class="nickname">getJobInfoLight</span>)</div>
<div class="method-notes"></div>

Expand Down

0 comments on commit 752ddad

Please sign in to comment.