Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the new get out of date connectors endpoint #20155

Merged
merged 16 commits into from
Jan 3, 2023
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add /v1/web_backend/check_updates
  • Loading branch information
gosusnp authored and krishnaglick committed Dec 12, 2022
commit c7e8579810edf01a960989ef1fa357724f52a7e3
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
@Slf4j
public class WebBackendCheckUpdatesHandler {

private static final int NO_CHANGES_FOUND = 0;

final ConfigRepository configRepository;
final AirbyteGithubStore githubStore;

Expand All @@ -48,7 +46,7 @@ private int getDestinationDiffCount() {
.toList();
} catch (final IOException e) {
log.error("Failed to get current list of standard destination definitions", e);
return NO_CHANGES_FOUND;
return 0;
}

try {
Expand All @@ -57,7 +55,7 @@ private int getDestinationDiffCount() {
.collect(Collectors.toMap(StandardDestinationDefinition::getDestinationDefinitionId, StandardDestinationDefinition::getDockerImageTag));
} catch (final InterruptedException e) {
log.error("Failed to get latest list of standard destination definitions", e);
return NO_CHANGES_FOUND;
return 0;
}

return getDiffCount(currentActorDefToDockerImageTag, newActorDefToDockerImageTag);
Expand All @@ -74,7 +72,7 @@ private int getSourceDiffCount() {
.toList();
} catch (final IOException e) {
log.error("Failed to get current list of standard source definitions", e);
return NO_CHANGES_FOUND;
return 0;
}

try {
Expand All @@ -83,7 +81,7 @@ private int getSourceDiffCount() {
.collect(Collectors.toMap(StandardSourceDefinition::getSourceDefinitionId, StandardSourceDefinition::getDockerImageTag));
} catch (final InterruptedException e) {
log.error("Failed to get latest list of standard source definitions", e);
return NO_CHANGES_FOUND;
return 0;
}

return getDiffCount(currentActorDefToDockerImageTag, newActorDefToDockerImageTag);
Expand Down