You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each time we update the Artifact model we need to re-download all POM files to get the new values and populate the new fields in the database.
Identified Obstacles
We need a new endpoint to trigger the task. (The difference between a scheduled job and a task is: a scheduled job runs automatically, a task is triggered by an admin once in a while).
We should make sure that downloading all POM files will not fill the disk completely. (Probably it won't because POM files are quite small, smaller than JAR files).
What if we cannot download some artifact: should we remove it from Scaladex?
Implementation Guideline
In Task, add a new task update-maven-artifacts
In AdminPage, add a new endpoint to trigger this task.
In AdminService create a method updateMavenArtifacts that will download each POM file and reindex it. Maybe create a new class File MavenArtifactUpdater to implement this method. It should
Query the database to get all Maven artifact references.
Use CoursierResolver to download the POM file
Use PublishProcess to publish the POM file.
Expectations
We should be able to trigger the task in the admin page and it should update all artifacts one by one without failing. If there is a failure it should appear in the admin page.
The text was updated successfully, but these errors were encountered:
Motivation
Each time we update the
Artifact
model we need to re-download all POM files to get the new values and populate the new fields in the database.Identified Obstacles
Implementation Guideline
Task
, add a new taskupdate-maven-artifacts
AdminPage
, add a new endpoint to trigger this task.AdminService
create a methodupdateMavenArtifacts
that will download each POM file and reindex it. Maybe create a new class FileMavenArtifactUpdater
to implement this method. It shouldCoursierResolver
to download the POM filePublishProcess
to publish the POM file.Expectations
We should be able to trigger the task in the admin page and it should update all artifacts one by one without failing. If there is a failure it should appear in the admin page.
The text was updated successfully, but these errors were encountered: