-
Notifications
You must be signed in to change notification settings - Fork 8
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
Incremental clone detecting #143
base: master
Are you sure you want to change the base?
Incremental clone detecting #143
Conversation
private val fph1 = Tables.FUNCTION_PART_HASH.`as`("fph1") | ||
private val fph2 = Tables.FUNCTION_PART_HASH.`as`("fph2") | ||
|
||
override suspend fun handleQuery(message_: ComplexDatabaseQuery): 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.
это в принципе ужас, но мне нужно было обратиться к тому, кто к БД обратиться может, пришлось таким ужасным способом делать
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.
И из-за этого тестирование и подсчет клонов в одном месте
} | ||
val projectId = Integer.parseInt(message_.filter) | ||
|
||
val lastProcessedSub = dbFindAsync(ProcessedProjectSubRecord().apply { |
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.
Сделано, чтобы не считать клоны для сабмишенов проекта, для которых мы уже считали клоны
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.
В идеальном мире по идее неплохо
} | ||
}) | ||
log.info("functionid = ${functionFromDb.id}, submissionid = ${res.id}, leavesСount = ${hashes.last().leafNum}") | ||
dbCreateAsync(FunctionLeavesRecord().apply { |
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.
раньше по идее нужно было, сейчас можно удалить
No description provided.