Skip to content

Commit

Permalink
Remove * import and switch WebSocket order constant to use the priori…
Browse files Browse the repository at this point in the history
…ty of the HttpSecurityRecorder's permissionCheckHandler
  • Loading branch information
rubik-cube-man committed Nov 9, 2023
1 parent 619495d commit 760ba55
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ public FlywayDataSourceBuildTimeConfig getConfigForDataSourceName(String dataSou
*/
@ConfigItem(name = ConfigItem.PARENT)
public Map<String, FlywayDataSourceBuildTimeConfig> namedDataSources = Collections.emptyMap();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

import io.quarkus.runtime.annotations.ConfigDocDefault;
import io.quarkus.runtime.annotations.ConfigGroup;
import io.quarkus.runtime.configuration.TrimmedStringConverter;
import io.smallrye.config.WithConverter;
import io.smallrye.config.WithDefault;

@ConfigGroup
Expand All @@ -24,7 +22,7 @@ public interface RedisClientBuildTimeConfig {
* </ul>
*/
@ConfigDocDefault("import.redis in DEV, TEST ; no-file otherwise")
Optional<@WithConverter(TrimmedStringConverter.class) List<String>> loadScript();
Optional<List<String>> loadScript();

/**
* When using {@code redisLoadScript}, indicates if the Redis database must be flushed (erased) before importing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@
import io.quarkus.smallrye.graphql.runtime.SmallRyeGraphQLLocaleResolver;
import io.quarkus.smallrye.graphql.runtime.SmallRyeGraphQLRecorder;
import io.quarkus.smallrye.graphql.runtime.SmallRyeGraphQLRuntimeConfig;
import io.quarkus.vertx.http.deployment.*;
import io.quarkus.vertx.http.deployment.BodyHandlerBuildItem;
import io.quarkus.vertx.http.deployment.FilterBuildItem;
import io.quarkus.vertx.http.deployment.HttpRootPathBuildItem;
import io.quarkus.vertx.http.deployment.NonApplicationRootPathBuildItem;
import io.quarkus.vertx.http.deployment.RouteBuildItem;
import io.quarkus.vertx.http.deployment.WebsocketSubProtocolsBuildItem;
import io.quarkus.vertx.http.deployment.webjar.WebJarBuildItem;
import io.quarkus.vertx.http.deployment.webjar.WebJarResourcesFilter;
import io.quarkus.vertx.http.deployment.webjar.WebJarResultsBuildItem;
Expand Down Expand Up @@ -143,7 +148,7 @@ public class SmallRyeGraphQLProcessor {
private static final List<String> SUPPORTED_WEBSOCKET_SUBPROTOCOLS = List.of(SUBPROTOCOL_GRAPHQL_WS,
SUBPROTOCOL_GRAPHQL_TRANSPORT_WS);

private static final int GRAPHQL_WEBSOCKET_HANDLER_ORDER = ManagementInterfaceFilterBuildItem.AUTHORIZATION + 1;
private static final int GRAPHQL_WEBSOCKET_HANDLER_ORDER = (-1 * FilterBuildItem.AUTHORIZATION) + 1;

private static final String GRAPHQL_MEDIA_TYPE = "application/graphql+json";

Expand Down

0 comments on commit 760ba55

Please sign in to comment.