Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A aurweb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 86
    • Issues 86
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch LinuxArch Linux
  • aurweb
  • Merge requests
  • !496

Draft: Show architecture for packages

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Hugo Barrera requested to merge whynothugo/aurweb:show-architecture into master Jul 19, 2022
  • Overview 2
  • Commits 3
  • Pipelines 1
  • Changes 4

I'd like to see the architecture for packages in the AUR's web view.

This is a PoC that's not ready to merge. The web pages show architectures for packages if they are known. The are parsed from .SRCINFO when the package is uploaded, so it will only be available for new packages. The dummy data generator has been updated to seek a sensible mix of platforms.

The biggest issue right now is that there's a single column that stores the architectures as a string. If someone ever wants to allow searching/filtering by this field, it'll be a nightmare. I'm not totally decided on how to model the DB part, but for now I'm thinking a table Architectures with this list, and another table PackageArchitectures with two columns: PackageId and ArchitectureId. This is well normalised and should perform well for searching on this column while de-duplicate the on-disk.

I'd like to hear feedback before actually investing more time in this. Thoughts?

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: show-architecture