Skip to content

KTL-4245: Explore insights meta#292

Merged
Nikita Vlaev (nikitavlaevjb) merged 24 commits into
releasefrom
feature/KTL-4245-Explore-insights-meta
May 29, 2026
Merged

KTL-4245: Explore insights meta#292
Nikita Vlaev (nikitavlaevjb) merged 24 commits into
releasefrom
feature/KTL-4245-Explore-insights-meta

Conversation

@nikitavlaevjb

Copy link
Copy Markdown
Collaborator

Meta-issue tracking multiple insights features including KTL-4388 (number of dependents) and KTL-4361 (comparison feature).

Comment thread core/package/src/main/kotlin/io/klibs/core/pckg/entity/PackageDependencyEntity.kt Outdated
Comment thread app/src/main/kotlin/io/klibs/app/indexing/PackageIndexingService.kt Outdated
Comment thread app/src/main/kotlin/io/klibs/app/indexing/PackageIndexingService.kt Outdated
Comment thread app/src/test/kotlin/io/klibs/app/indexing/AggregateVariantDependenciesTest.kt Outdated
Comment thread app/src/test/kotlin/io/klibs/app/indexing/AggregateVariantDependenciesTest.kt Outdated
Comment thread app/src/main/kotlin/io/klibs/app/indexing/PackageIndexingService.kt Outdated
Comment thread app/src/main/resources/db/migration/db.changelog-master.yml
Comment thread app/src/main/kotlin/io/klibs/app/job/RefreshDependentCountJob.kt Outdated
@dkrasnoff Dmitrii Krasnov (dkrasnoff) force-pushed the feature/KTL-4245-Explore-insights-meta branch 3 times, most recently from 1700252 to 384b931 Compare May 22, 2026 21:33
Updated the package's dependency counting with this new database hierarchy.
@dkrasnoff Dmitrii Krasnov (dkrasnoff) force-pushed the feature/KTL-4245-Explore-insights-meta branch from 384b931 to e4ea1e5 Compare May 22, 2026 21:58
)
)
} catch (_: DataIntegrityViolationException) {
// A concurrent transaction inserted the same GAV first — re-read it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Do I understand correctly that there is no test for it?
Is it possible to create one?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Also not sure that after exception it wouldn't just be a rollback

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good questions, I'll check.
I thought that DataIntegrityViolationException is not a RuntimeException, and as I recall only RuntimeException raises the rollback

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You were right about the transaction and rollback, I've replaced it with ON CONFLICT DO NOTHING

@dkrasnoff Dmitrii Krasnov (dkrasnoff) force-pushed the feature/KTL-4245-Explore-insights-meta branch from 117a631 to d7dcf52 Compare May 28, 2026 15:44
@nikitavlaevjb Nikita Vlaev (nikitavlaevjb) merged commit 48b862b into release May 29, 2026
2 checks passed
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.

2 participants