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 85
    • Issues 85
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 15
    • Merge requests 15
  • 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
  • !375

fix(templates): require valid User relationships for <a> usage

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Kevin Morris requested to merge kevr/aurweb:fix-user-link into pu Dec 31, 2021
  • Overview 0
  • Commits 3
  • Pipelines 4
  • Changes 4
commit d808049cd719110eedfa4b336eb27e01a656205e (HEAD -> fix-user-link, origin/fix-user-link)
Author: Kevin Morris <kevr@0cost.org>
Date:   Fri Dec 31 01:02:40 2021 -0800

    fix(templates): require valid User relationships for <a> usage

    Previously, when the relationship was None, an <a> would still
    wrap the None value erroneously. This addresses that for all
    three user fields.

    In addition, this commit adds direct testing for the
    `templates/partials/packages/details.html` template.

    Signed-off-by: Kevin Morris <kevr@0cost.org>

commit 64b8aae3b8a55d5dee358e5f1615dfe7877e1ad6
Author: Kevin Morris <kevr@0cost.org>
Date:   Fri Dec 31 15:52:41 2021 -0800

    feat(models.user): add User.__str__ -> User.Username

    Signed-off-by: Kevin Morris <kevr@0cost.org>

commit 93a57e653cbfca7af05c26de67469d35a0a65c88
Author: Kevin Morris <kevr@0cost.org>
Date:   Fri Dec 31 15:10:54 2021 -0800

    feat(testing.requests): add Request.__init__

    This new constructor is a beginning to making Request a bit more easy
    to deal with for standard testing needs. With this commit, users can
    now specify a `user` and `authenticated` state while constructing a
    Request:

        request = Request(user=some_user, authenticated=True)

    By default, the `authenticated` kwarg is set to False and `user` is
    set to `aurweb.testing.requests.User()`.

    Signed-off-by: Kevin Morris <kevr@0cost.org>
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix-user-link