Skip to content
This repository was archived by the owner on Dec 20, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions front50-core/front50-core.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ dependencies {
implementation "org.springframework.security:spring-security-web"
implementation "io.spinnaker.kork:kork-web"
implementation "io.spinnaker.kork:kork-retrofit"
implementation "io.reactivex:rxjava"
implementation "io.reactivex.rxjava3:rxjava"
implementation "com.jakewharton.retrofit:retrofit1-okhttp3-client"
implementation "com.squareup.retrofit:converter-jackson"
implementation "javax.validation:validation-api"
implementation "jakarta.validation:jakarta.validation-api"
implementation "org.hibernate.validator:hibernate-validator"
api "com.github.ben-manes.caffeine:guava"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@
import com.netflix.spinnaker.front50.model.tag.DefaultEntityTagsDAO;
import com.netflix.spinnaker.front50.model.tag.EntityTagsDAO;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.reactivex.rxjava3.schedulers.Schedulers;
import java.util.concurrent.Executors;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import rx.schedulers.Schedulers;

@Configuration
@ConditionalOnProperty(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
import io.github.resilience4j.circuitbreaker.CircuitBreakerConfig;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.github.resilience4j.core.SupplierUtils;
import io.reactivex.rxjava3.core.Observable;
import io.reactivex.rxjava3.core.Scheduler;
import jakarta.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
Expand All @@ -49,11 +52,8 @@
import java.util.function.Supplier;
import java.util.function.ToDoubleFunction;
import java.util.stream.Collectors;
import javax.annotation.PostConstruct;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import rx.Observable;
import rx.Scheduler;

public abstract class StorageServiceSupport<T extends Timestamped> {
private final Logger log = LoggerFactory.getLogger(getClass());
Expand Down Expand Up @@ -329,11 +329,11 @@ public void bulkImport(Collection<T> items) {
return;
}

Observable.from(items)
Observable.fromIterable(items)
.buffer(10)
.flatMap(
itemSet ->
Observable.from(itemSet)
Observable.fromIterable(itemSet)
.flatMap(
item -> {
try {
Expand All @@ -352,8 +352,7 @@ public void bulkImport(Collection<T> items) {
.subscribeOn(scheduler))
.subscribeOn(scheduler)
.toList()
.toBlocking()
.single();
.blockingGet();
}

public void bulkDelete(Collection<String> ids) {
Expand Down Expand Up @@ -468,11 +467,11 @@ private Set<T> fetchAllItems(Set<T> existingItems) {
}
}
} catch (UnsupportedOperationException e) {
Observable.from(modifiedKeys)
Observable.fromIterable(modifiedKeys)
.buffer(10)
.flatMap(
ids ->
Observable.from(ids)
Observable.fromIterable(ids)
.flatMap(
entry -> {
try {
Expand Down Expand Up @@ -501,8 +500,7 @@ private Set<T> fetchAllItems(Set<T> existingItems) {
.subscribeOn(scheduler))
.subscribeOn(scheduler)
.toList()
.toBlocking()
.single()
.blockingGet()
.forEach(item -> resultMap.put(buildObjectKey(item), item));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
import com.netflix.spinnaker.front50.model.StorageServiceSupport;
import com.netflix.spinnaker.kork.web.exceptions.NotFoundException;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.reactivex.rxjava3.core.Scheduler;
import java.util.Collection;
import java.util.Map;
import rx.Scheduler;

public class DefaultApplicationDAO extends StorageServiceSupport<Application>
implements ApplicationDAO {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import com.netflix.spinnaker.front50.model.StorageService;
import com.netflix.spinnaker.front50.model.StorageServiceSupport;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import rx.Scheduler;
import io.reactivex.rxjava3.core.Scheduler;

public class DefaultApplicationPermissionDAO extends StorageServiceSupport<Application.Permission>
implements ApplicationPermissionDAO {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
import com.netflix.spinnaker.front50.model.StorageService;
import com.netflix.spinnaker.front50.model.StorageServiceSupport;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.reactivex.rxjava3.core.Scheduler;
import java.util.Collection;
import java.util.UUID;
import java.util.stream.Collectors;
import org.springframework.util.Assert;
import rx.Scheduler;

public class DefaultDeliveryRepository extends StorageServiceSupport<Delivery>
implements DeliveryRepository {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import com.netflix.spinnaker.front50.model.StorageServiceSupport;
import com.netflix.spinnaker.kork.web.exceptions.NotFoundException;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import rx.Scheduler;
import io.reactivex.rxjava3.core.Scheduler;

public class DefaultNotificationDAO extends StorageServiceSupport<Notification>
implements NotificationDAO {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
import com.netflix.spinnaker.front50.model.StorageServiceSupport;
import com.netflix.spinnaker.kork.web.exceptions.NotFoundException;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.reactivex.rxjava3.core.Scheduler;
import java.util.Collection;
import java.util.UUID;
import java.util.stream.Collectors;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.Assert;
import org.springframework.util.ObjectUtils;
import rx.Scheduler;

public class DefaultPipelineDAO extends StorageServiceSupport<Pipeline> implements PipelineDAO {
private static final Logger log = LoggerFactory.getLogger(DefaultPipelineDAO.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
import com.netflix.spinnaker.front50.model.StorageServiceSupport;
import com.netflix.spinnaker.kork.web.exceptions.NotFoundException;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.reactivex.rxjava3.core.Scheduler;
import java.util.Collection;
import java.util.UUID;
import java.util.stream.Collectors;
import rx.Scheduler;

public class DefaultPipelineStrategyDAO extends StorageServiceSupport<Pipeline>
implements PipelineStrategyDAO {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
import com.netflix.spinnaker.front50.model.StorageService;
import com.netflix.spinnaker.front50.model.StorageServiceSupport;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.reactivex.rxjava3.core.Scheduler;
import org.springframework.util.Assert;
import rx.Scheduler;

public class DefaultPipelineTemplateDAO extends StorageServiceSupport<PipelineTemplate>
implements PipelineTemplateDAO {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
import com.netflix.spinnaker.kork.exceptions.IntegrationException;
import com.netflix.spinnaker.kork.exceptions.UserException;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.reactivex.rxjava3.core.Scheduler;
import java.time.Instant;
import java.time.format.DateTimeParseException;
import java.util.Collection;
import java.util.Objects;
import java.util.stream.Collectors;
import javax.annotation.Nonnull;
import rx.Scheduler;

public class DefaultPluginInfoRepository extends StorageServiceSupport<PluginInfo>
implements PluginInfoRepository {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import com.netflix.spinnaker.front50.model.StorageServiceSupport;
import com.netflix.spinnaker.kork.exceptions.IntegrationException;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.reactivex.rxjava3.core.Scheduler;
import java.util.Objects;
import rx.Scheduler;

public class DefaultPluginVersionPinningRepository
extends StorageServiceSupport<ServerGroupPluginVersions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.google.common.base.Splitter;
import com.netflix.spinnaker.front50.api.model.Timestamped;
import com.netflix.spinnaker.kork.api.plugins.remote.RemoteExtensionConfig;
import jakarta.validation.Valid;
import java.time.Instant;
import java.util.ArrayList;
import java.util.List;
Expand All @@ -28,7 +29,6 @@
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import javax.annotation.Nonnull;
import javax.validation.Valid;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.hibernate.validator.constraints.URL;
Expand Down Expand Up @@ -105,7 +105,7 @@ public static class Release {
*
* @link https://semver.org/
*/
@javax.validation.constraints.Pattern(regexp = VERSION_PATTERN)
@jakarta.validation.constraints.Pattern(regexp = VERSION_PATTERN)
private String version;

/** The date of the plugin release. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@

import com.netflix.spinnaker.front50.config.PluginVersionCleanupProperties;
import com.netflix.spinnaker.moniker.Namer;
import jakarta.annotation.PostConstruct;
import java.util.Collection;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
import javax.annotation.PostConstruct;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.TaskScheduler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import com.netflix.spinnaker.front50.model.StorageServiceSupport;
import com.netflix.spinnaker.kork.web.exceptions.NotFoundException;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.reactivex.rxjava3.core.Scheduler;
import java.util.UUID;
import rx.Scheduler;

public class DefaultProjectDAO extends StorageServiceSupport<Project> implements ProjectDAO {
public DefaultProjectDAO(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import com.netflix.spinnaker.front50.model.StorageService;
import com.netflix.spinnaker.front50.model.StorageServiceSupport;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import rx.Scheduler;
import io.reactivex.rxjava3.core.Scheduler;

public class DefaultServiceAccountDAO extends StorageServiceSupport<ServiceAccount>
implements ServiceAccountDAO {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import com.netflix.spinnaker.front50.model.StorageService;
import com.netflix.spinnaker.front50.model.StorageServiceSupport;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.reactivex.rxjava3.core.Scheduler;
import org.springframework.util.Assert;
import rx.Scheduler;

public class DefaultSnapshotDAO extends StorageServiceSupport<Snapshot> implements SnapshotDAO {
public DefaultSnapshotDAO(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
import com.netflix.spinnaker.front50.model.StorageService;
import com.netflix.spinnaker.front50.model.StorageServiceSupport;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.reactivex.rxjava3.core.Scheduler;
import java.util.Objects;
import java.util.concurrent.TimeUnit;
import rx.Scheduler;

public class DefaultEntityTagsDAO extends StorageServiceSupport<EntityTags>
implements EntityTagsDAO {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
import com.netflix.spinnaker.front50.api.model.pipeline.Pipeline;
import com.netflix.spinnaker.front50.config.StorageServiceConfigurationProperties;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.reactivex.rxjava3.core.Scheduler;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.junit.jupiter.api.Test;
import rx.Scheduler;

class StorageServiceSupportTest {

Expand Down
2 changes: 1 addition & 1 deletion front50-gcs/front50-gcs.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies {
implementation "com.netflix.spectator:spectator-api"
implementation "io.spinnaker.kork:kork-exceptions"
implementation "io.github.resilience4j:resilience4j-circuitbreaker"
implementation "io.reactivex:rxjava"
implementation "io.reactivex.rxjava3:rxjava"
implementation "net.logstash.logback:logstash-logback-encoder"
implementation "org.slf4j:slf4j-api"
implementation "org.springframework:spring-beans"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import com.netflix.spinnaker.front50.model.application.ApplicationPermissionDAO;
import com.netflix.spinnaker.front50.model.application.DefaultApplicationPermissionDAO;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.reactivex.rxjava3.schedulers.Schedulers;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Collections;
Expand All @@ -50,7 +51,6 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
import rx.schedulers.Schedulers;

@Configuration
@ConditionalOnExpression("${spinnaker.gcs.enabled:false}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import java.util.concurrent.ExecutorService
import java.util.concurrent.Future
import java.util.concurrent.TimeUnit
import java.util.concurrent.TimeoutException
import javax.annotation.PostConstruct
import jakarta.annotation.PostConstruct

class GcsStorageService(
private val storage: Storage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import com.netflix.spinnaker.front50.config.S3MetadataStorageProperties;
import com.netflix.spinnaker.front50.model.events.S3Event;
import com.netflix.spinnaker.front50.model.events.S3EventWrapper;
import jakarta.annotation.PreDestroy;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
Expand All @@ -42,7 +43,6 @@
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import javax.annotation.PreDestroy;
import org.joda.time.DateTime;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
import com.amazonaws.services.sqs.model.ReceiptHandleIsInvalidException;
import com.amazonaws.services.sqs.model.ReceiveMessageRequest;
import com.amazonaws.services.sqs.model.ReceiveMessageResult;
import jakarta.annotation.PreDestroy;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import javax.annotation.PreDestroy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
4 changes: 3 additions & 1 deletion front50-sql/src/test/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
spring:
profiles: default
config:
activate:
on-profile: default

spinnaker:
migration:
Expand Down
2 changes: 1 addition & 1 deletion front50-test/front50-test.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies {
implementation "org.spockframework:spock-core"
implementation "com.amazonaws:aws-java-sdk-s3"
implementation "io.spinnaker.kork:kork-sql-test"
implementation "io.reactivex:rxjava"
implementation "io.reactivex.rxjava3:rxjava"
}

tasks.compileGroovy.enabled = true
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
import com.netflix.spinnaker.kork.sql.config.SqlRetryProperties;
import com.netflix.spinnaker.kork.sql.test.SqlTestUtil;
import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.reactivex.rxjava3.core.Scheduler;
import io.reactivex.rxjava3.schedulers.Schedulers;
import java.time.Clock;
import java.util.concurrent.Executors;
import rx.Scheduler;
import rx.schedulers.Schedulers;

public class SqlPipelineDAOTestConfiguration {

Expand Down
Loading
Loading