chore: add FIXME before PR merge
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

pull/3/head
Davide Polonio 2023-04-14 16:36:46 +02:00
parent 3baa041745
commit 7f632d2b6e
8 changed files with 8 additions and 8 deletions

View File

@ -8,6 +8,7 @@ import org.apache.velocity.VelocityContext;
import org.apache.velocity.tools.ToolManager; import org.apache.velocity.tools.ToolManager;
import org.apache.velocity.util.StringBuilderWriter; import org.apache.velocity.util.StringBuilderWriter;
// FIXME doc, tests
public class TemplateContentGenerator { public class TemplateContentGenerator {
private final LocalizedMessageFactory localizedMessageFactory; private final LocalizedMessageFactory localizedMessageFactory;

View File

@ -8,6 +8,7 @@ import javax.inject.Inject;
import javax.inject.Singleton; import javax.inject.Singleton;
import org.slf4j.Logger; import org.slf4j.Logger;
// FIXME tests, doc
@Singleton @Singleton
public class CallbackQueryContextCleaner { public class CallbackQueryContextCleaner {

View File

@ -2,7 +2,6 @@ package com.github.polpetta.mezzotre.orm.telegram;
import com.github.polpetta.mezzotre.orm.model.CallbackQueryContext; import com.github.polpetta.mezzotre.orm.model.CallbackQueryContext;
import com.github.polpetta.mezzotre.orm.model.TgChat; import com.github.polpetta.mezzotre.orm.model.TgChat;
import com.github.polpetta.mezzotre.orm.model.query.QCallbackQueryContext;
import com.github.polpetta.mezzotre.orm.model.query.QTgChat; import com.github.polpetta.mezzotre.orm.model.query.QTgChat;
import com.github.polpetta.mezzotre.util.Clock; import com.github.polpetta.mezzotre.util.Clock;
import com.github.polpetta.types.json.ChatContext; import com.github.polpetta.types.json.ChatContext;
@ -81,9 +80,4 @@ public class ChatUtil {
.filter(chatId -> chatId != 0L && chatId != Long.MIN_VALUE) .filter(chatId -> chatId != 0L && chatId != Long.MIN_VALUE)
.flatMap(chatId -> new QTgChat().id.eq(chatId).findOneOrEmpty()); .flatMap(chatId -> new QTgChat().id.eq(chatId).findOneOrEmpty());
} }
public <T> T cleanCallbackQuery(T toReturn, CallbackQueryContext callbackQueryContext) {
new QCallbackQueryContext().entryGroup.eq(callbackQueryContext.getId()).delete();
return toReturn;
}
} }

View File

@ -1,5 +1,6 @@
package com.github.polpetta.mezzotre.telegram.callbackquery; package com.github.polpetta.mezzotre.telegram.callbackquery;
// FIXME doc
public interface Field { public interface Field {
/** /**
* Additional fields that are related to {@code changeLanguage} event * Additional fields that are related to {@code changeLanguage} event

View File

@ -10,6 +10,7 @@ import java.util.concurrent.CompletableFuture;
import javax.inject.Inject; import javax.inject.Inject;
import org.slf4j.Logger; import org.slf4j.Logger;
// FIXME doc
public class NotFound implements Processor { public class NotFound implements Processor {
private final Logger log; private final Logger log;

View File

@ -23,6 +23,7 @@ public interface Processor {
*/ */
String getEventName(); String getEventName();
// FIXME javadoc
default boolean canBeDirectlyInvokedByTheUser() { default boolean canBeDirectlyInvokedByTheUser() {
return false; return false;
} }

View File

@ -17,10 +17,10 @@ import java.util.concurrent.CompletableFuture;
public interface Processor { public interface Processor {
/** /**
* Provides the keyword to trigger this executor. Note that it must start with "/" at the * Provides the keywords to trigger this executor. Note that it must start with "/" at the
* beginning, e.g. {@code /start}. * beginning, e.g. {@code /start}.
* *
* @return a {@link String} providing the keyword to trigger the current {@link Processor} * @return a {@link Set} providing the keywords to trigger the current {@link Processor}
*/ */
Set<String> getTriggerKeywords(); Set<String> getTriggerKeywords();

View File

@ -13,6 +13,7 @@ import javax.inject.Inject;
import javax.inject.Named; import javax.inject.Named;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
// FIXME doc, tests(?)
public class ServiceModule implements Extension { public class ServiceModule implements Extension {
private final ServiceManager serviceManager; private final ServiceManager serviceManager;