Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D debexpo
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 42
    • Issues 42
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mentors.debian.net
  • debexpo
  • Merge requests
  • !107

django: package repository

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Baptiste Beauplat requested to merge lyknode/debexpo:dj/repository into django Feb 04, 2020
  • Overview 11
  • Commits 23
  • Pipelines 7
  • Changes 38

Django migration: #47 (closed).

The MR re-adds the package repository.

The following visual changes have been made:

  • On the package view where the link name for the dsc has been shorten to the filename only.

The Repository object is now responsible for installing and removing files from/to the repository. It can be done it batch as the update is happening separately by calling Repository.update(). The update method process the pending changes and apply them to the repository.

The main advantage is that package removing can now happen asynchronously when requested by a user. The request is forwarded to the worker, thus won't block the page loading.

The RepositoryFile entries reflect the state of the repository. It doesn't link to other models to allow the async workflow to work.

As usual, tests have been updated. Note the use of fakeredis to emulate a redis server without actually starting one.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: dj/repository