-
Notifications
You must be signed in to change notification settings - Fork 76
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
Schedule job to update claimed artifacts #869
Comments
I can work on indexing artifacts with no associated projects |
Quick question for this, it looks like a number of methods in scaladex/modules/core/shared/src/main/scala/scaladex/core/model/Artifact.scala Lines 38 to 43 in 22f1672
But we know this is no longer going to be the case. Do you have any suggestions on how this should be handled? Maybe for the url-specific ones, we can point to a 404 page (if one exists) |
Those methods should probably return @for(url <- artifact.fullHttpUrl) { <a href="@url"> ... </a>} By the way, I think many of those methods will soon disappear because of the new project page we are currently working on with @mlachkar. I am going to work on it today. It should be merged later this week or maybe next week. |
Sounds good, I'll wait :) |
* Making the `repository` column in the `artifact` schema NULLABLE. * This provides schema-level support for Option[Project.Repository]` fields in `Artifact` types. * Should help resolve #869.
Motivation
Some artifacts are published without the
scmInfo
field in their pom files which we use to map artifacts to github repositories.To handle these we have a
scaladex-contrib
project in which library authors can claim that they own some artifacts.We need to run a scheduled job to take this information into account and update artifacts that are claimed.
Identified Obstacles
Currently artifacts with no project (github repository) are not indexed. We now need to index them so that the scheduler can find them in the database.
Implementation guidelines
LocalStorage
that can load theclaims.json
file from thescaladex-contrib
folder.SchedulerDatabase
to load all the claimed artifacts and update their corresponding projects.SchedulerService
to update the claimed artifacts.As a bonus the scheduler can also fetch the
scaladex-contrib
main branch from Github.Expectations
LocalStorage
andSchedulerDatabase
should be tested.Tasks
LocalStorage
that can load theclaims.json
file from thescaladex-contrib
folder.SchedulerDatabase
to load all the claimed artifacts and update their corresponding projects.SchedulerService
to update the claimed artifacts.The text was updated successfully, but these errors were encountered: