Skip to content

Commit

Permalink
Removed upload-only jobs from menu
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondap committed Jan 19, 2024
1 parent c0a69c0 commit 41f2aa9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ func initRoutes(router *gin.Engine) {
router.POST("/storage_services/test/:id", controllers.StorageServiceTestConnection)

// Upload Jobs
//
// These are disabled for now. We've hidden them from the main menu.
// We can re-enable upload-only jobs if we restrict
// them to uploading files only (no directories, because directory uploads
// require considerable work and open up a huge number of potential problems).
//
router.GET("/upload_jobs/new", controllers.UploadJobNew)
router.GET("/upload_jobs/files/:id", controllers.UploadJobShowFiles)
router.POST("/upload_jobs/add_file/:id", controllers.UploadJobAddFile)
Expand Down
2 changes: 1 addition & 1 deletion server/views/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<a class="dropdown-item" href="/jobs/new">New</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/validation_jobs/new">Validate Bags</a>
<a class="dropdown-item" href="/upload_jobs/new">Upload Files</a>
<!-- <a class="dropdown-item" href="/upload_jobs/new">Upload Files</a> -->
</div>
</li>
<li class="nav-item dropdown {{ if (eq .section "Workflows")}}active{{ end }}">
Expand Down

0 comments on commit 41f2aa9

Please sign in to comment.