Skip to content

Commit

Permalink
Merge pull request #894 from OpenBAS-Platform/revert-880-issue/841
Browse files Browse the repository at this point in the history
Revert "[frontend/backend] Adding the correct version of RabbitMQ"
  • Loading branch information
Dimfacion authored May 16, 2024
2 parents 2981eeb + ac39daf commit 829ef59
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 62 deletions.
45 changes: 0 additions & 45 deletions openbas-api/src/main/java/io/openbas/helper/RabbitMQHelper.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import io.openbas.database.model.Theme;
import io.openbas.database.repository.SettingRepository;
import io.openbas.executors.caldera.config.CalderaExecutorConfig;
import io.openbas.helper.RabbitMQHelper;
import io.openbas.injectors.opencti.config.OpenCTIConfig;
import io.openbas.rest.helper.RestBehavior;
import io.openbas.rest.settings.form.SettingsEnterpriseEditionUpdateInput;
Expand Down Expand Up @@ -58,8 +57,6 @@ public class PlatformSettingsApi extends RestBehavior {

private CalderaExecutorConfig calderaExecutorConfig;

private String rabbitMQVersion = null;

@Resource
private OpenBASConfig openBASConfig;

Expand Down Expand Up @@ -208,7 +205,6 @@ public PlatformSettings settings() {
platformSettings.setPlatformVersion(openBASConfig.getVersion());
platformSettings.setPostgreVersion(settingRepository.getServerVersion());
platformSettings.setJavaVersion(Runtime.version().toString());
platformSettings.setRabbitMQVersion(RabbitMQHelper.getRabbitMQVersion(openBASConfig));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

import com.fasterxml.jackson.annotation.JsonProperty;
import io.openbas.rest.settings.form.ThemeInput;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.*;

import java.util.List;

Expand Down Expand Up @@ -66,9 +63,6 @@ public class PlatformSettings {
@JsonProperty("java_version")
private String javaVersion;

@JsonProperty("rabbitmq_version")
private String rabbitMQVersion;

@JsonProperty("platform_ai_enabled")
private Boolean aiEnabled;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ public class OpenBASConfig {
@JsonProperty("rabbitmq_ssl")
private boolean rabbitmqSsl = false;

@JsonProperty("rabbitmq_port")
@JsonProperty("rabbitmq_ssl")
private int rabbitmqPort = 5672;

@JsonProperty("rabbitmq_management_port")
private int rabbitmqManagementPort = 15672;

@JsonProperty("rabbitmq_user")
private String rabbitmqUser = "guest";

Expand Down
2 changes: 1 addition & 1 deletion openbas-front/src/admin/components/settings/Parameters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const Parameters = () => {
</ListItem>
<ListItem divider={true}>
<ListItemText primary={t('RabbitMQ')} />
<ItemBoolean status={null} variant="large" neutralLabel={settings?.rabbitmq_version} />
<ItemBoolean status={null} variant="large" neutralLabel={settings?.postgre_version} />
</ListItem>
</List>
</Paper>
Expand Down
1 change: 0 additions & 1 deletion openbas-front/src/utils/api-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,6 @@ export interface PlatformSettings {
platform_version?: string;
platform_whitemark?: string;
postgre_version?: string;
rabbitmq_version?: string;
xtm_opencti_enable?: boolean;
xtm_opencti_url?: string;
}
Expand Down

0 comments on commit 829ef59

Please sign in to comment.