Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Anonymous Ticket Portal Anonymous Ticket Portal
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • TPA
  • Anonymous Ticket PortalAnonymous Ticket Portal
  • Merge requests
  • !37

Refined Models and Added Project Detail View

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged MariaV requested to merge project_detail_view into master Jan 08, 2021
  • Overview 0
  • Commits 14
  • Pipelines 0
  • Changes 21

1.) Finished updated and testing all models with easier to understand attributes (e.g. project.name vs project.project_name) and to keep naming system consistent, as some model attributes cannot be changed (e.g project.project_slug is not a valid slugfield entry). Migrated models in steps; will drop all migrations and remake fresh once models are semi-finalized.

2.) Created a decorator to check if a project exists in the database before allowing access to a view - I thought a decorator would be easy to "turn on/turn off" in case we changed our mind about which views should be restrict by projects in database vs all gitlab projects.

3.) Updated the project model to use name_with_namespace for string representation - > prettier search + create forms which are also alphabetized by group first (e.g. TPA > Project name)

4.) Created a new view - > Project Detail view, including the view logic, URL pathing, and template. Although a bit barebones at this time, it is styled and lists the issues associated with a project.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: project_detail_view