Skip to content
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

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

VladislavFetisov
Copy link

No description provided.

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 {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это в принципе ужас, но мне нужно было обратиться к тому, кто к БД обратиться может, пришлось таким ужасным способом делать

Copy link
Author

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 {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Сделано, чтобы не считать клоны для сабмишенов проекта, для которых мы уже считали клоны

Copy link
Author

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 {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

раньше по идее нужно было, сейчас можно удалить

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant