-
Notifications
You must be signed in to change notification settings - Fork 82
Feature/compiler plugin backend indexing #1626
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
base: main
Are you sure you want to change the base?
Feature/compiler plugin backend indexing #1626
Conversation
- Introduce CompilerPlugin in Platform.scala - Update BinaryVersion.toString to handle CompilerPlugin - Update all platform matches in Artifact.scala to explicitly handle CompilerPlugin - Throw UnsupportedOperationException where features aren’t implemented - Add unit test for creating Artifact with CompilerPlugin - Lints clean
- Update indexing logic to include CompilerPlugin artifacts - Add database migration for CompilerPlugin if required - Ensure queries return correct versions and metadata - Add unit/integration tests for CompilerPlugin indexing
adpi2
left a comment
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.
Thank you @vidishagawas121 for your work. This is a good start but it does not yet allow parsing an artifact ID with a full Scala version as the binary version, such as kind-projector_2.13.16.
modules/core/shared/src/test/scala/scaladex/core/model/ArtifactTests.scala
Outdated
Show resolved
Hide resolved
modules/infra/src/test/scala/scaladex/infra/ElasticsearchEngineTests.scala
Outdated
Show resolved
Hide resolved
modules/core/shared/src/main/scala/scaladex/core/model/Platform.scala
Outdated
Show resolved
Hide resolved
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 is one broken test (see my comment). Also you need to run scalafmt and sbt scalafixAll.
Apart from that, it looks good to me.
| for | ||
| _ <- insertAll(projects) | ||
| platforms <- searchEngine.countByPlatforms(params) | ||
| yield platforms should contain(CompilerPlugin -> 1L) |
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.
This should be CompilerPlugin(Version(2, 13, 16))
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.
ok
gh pr create
--title "Backend: Index CompilerPlugin artifacts"
--body "This PR adds backend support for indexing CompilerPlugin artifacts in Scaladex.
This PR depends on PR 1, which introduced CompilerPlugin in the models."
--base main
--head feature/compiler-plugin-backend-indexing