-
Notifications
You must be signed in to change notification settings - Fork 9
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
Features 376 381 412 #417
Features 376 381 412 #417
Conversation
# Conflicts: # cogboard-app/src/main/kotlin/com/cognifide/cogboard/CogboardConstants.kt
// send(JsonObject().put("logs", logs)) | ||
} | ||
|
||
// private fun createTemplateLogs(n: Int): JsonArray { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
co to za komentarze? wyrzućmy, żeby nie śmiecić kodu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
private fun determineLogParsingStrategy() = | ||
LogParserStrategyFactory() | ||
.build(LogParserStrategyFactory.MOCK) | ||
/* temporary solution, we'll have to decide if we'll get information of log types from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tu też
import com.cognifide.cogboard.widget.type.logviewer.logparser.ParsedLog.Companion.PROVIDER | ||
import com.cognifide.cogboard.widget.type.logviewer.logparser.ParsedLog.Companion.MESSAGE | ||
|
||
class MockLogParserStrategy : LogParserStrategy() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nie wiem, czy MockLogParserStrategy to odpowiednia nazwa? Czy format logów, które tworzymy w logu trzyma się jakiejś konwencji, czy jest z czapy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nie bardzo jestem w stanie znaleźć jakiej konwencji mógłby się trzymać ten format logów, stąd nazwa klasy. Dotyczy stricte tych logów, które są generowane w mocku
|
||
override fun parseLine(logLine: String): JsonObject { | ||
val groups = regex.matchEntire(logLine.trim())?.groups | ||
// ?: throw LogParsingException("Unable to parse line: $logLine") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
co z tym wyjątkiem?
const reader = new FileReader(); | ||
reader.onload = async e => { | ||
const text = e.target.result; | ||
let event = e; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dlaczego od razu nie nazwiemy argumentu "event"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
const deleteFile = e => { | ||
e.preventDefault(); | ||
setFilename(''); | ||
let event = e; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tutaj tak samo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Description
Motivation and Context
#412, old pr: #415
#381, old pr: #413
#376
Screenshots (if appropriate)
Upgrade notes (if appropriate)
Types of changes
Checklist:
I hereby agree to the terms of the Cogboard Contributor License Agreement.