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

Add default group ID in project settings #1409

Open
adpi2 opened this issue May 30, 2024 · 0 comments
Open

Add default group ID in project settings #1409

adpi2 opened this issue May 30, 2024 · 0 comments
Labels

Comments

@adpi2
Copy link
Member

adpi2 commented May 30, 2024

Motivation

It's quite common that people use their personal group id to release alpha versions of their project. Those temporary artifacts are sometimes selected by Scaladex as the default artifact. They should not. To fix this issue we can introduce a defaultGroupId field in the Project.Settings.

Identified Obstacles

Use the defaultGroupId field to compute the default artifact in ProjectHeader, to compute the badges, and to sort the artifacts.

Implementation Guideline

  1. Add the defaultGroupId field in the Project.Settings
  2. Add the default_group_id column in the project-settings table by adding a SQL migration file here and adapt the SQL requests in ProjectSettingsTable.
  3. Add the drop down list in the edit-project.scala.html for the user to pick the default artifact.
  4. Add the defaultGroupId field in ProjectHeader and use it to compute the default artifact
  5. Check that it is also used to compute the badges

Expectations

The defaultGroupId should be used to compute the default artifact, the badges, and to sort the artifacts. There should be some unit tests.

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

No branches or pull requests

1 participant