Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Fix various misspellings of the word Repository in AzureBlast.Web #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
<Compile Include="Models\NewSearchModel.cs" />
<Compile Include="Models\PoolDetailsModel.cs" />
<Compile Include="Models\PoolSpec.cs" />
<Compile Include="Models\RespositoryViewModel.cs" />
<Compile Include="Models\RepositoryViewModel.cs" />
<Compile Include="Models\VisualizeResultsModel.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Startup.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,32 +32,32 @@ public IEnumerable<ExternalRepository> Get()
[Route("{repositoryId}/databases"), HttpGet]
public IEnumerable<ExternalDatabase> Get(string repositoryId)
{
var databaseRespository = _externalRepositoryManager.GetRepository(repositoryId);
var databaseRepository = _externalRepositoryManager.GetRepository(repositoryId);

if (databaseRespository == null)
if (databaseRepository == null)
{
return Enumerable.Empty<ExternalDatabase>();
}

return databaseRespository.DatabaseSource.ListDatabases().ToList();
return databaseRepository.DatabaseSource.ListDatabases().ToList();
}

[Route("{repositoryId}/databases/{databaseId}/import"), HttpPost]
public void Post(string repositoryId, string databaseId)
{
var databaseRespository = _externalRepositoryManager.GetRepository(repositoryId);
if (databaseRespository == null)
var databaseRepository = _externalRepositoryManager.GetRepository(repositoryId);
if (databaseRepository == null)
{
throw new Exception("No such repository");
}

var database = databaseRespository.DatabaseSource.GetDatabase(databaseId);
var database = databaseRepository.DatabaseSource.GetDatabase(databaseId);
if (database == null)
{
throw new Exception("No such database");
}

_databaseImportManager.SubmitImport(databaseRespository, database);
_databaseImportManager.SubmitImport(databaseRepository, database);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public RepositoriesController(IExternalRepositoryManager externalRepositoryManag
public ActionResult Index(string id)
{
var repos = _externalRepositoryManager.ListRepositories().ToList();
var repoModel = new RespositoryViewModel
var repoModel = new RepositoryViewModel
{
SelectedRepoId = string.IsNullOrEmpty(id) ? "ncbi" : id,
Repositories = repos,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.Azure.Batch.Blast.Databases.ExternalSources;
namespace Microsoft.Azure.Blast.Web.Models
{
public class RespositoryViewModel
{
public string SelectedRepoId { get; set; }
public List<ExternalRepository> Repositories { get; set; }
}
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using System.Collections.Generic;
using Microsoft.Azure.Batch.Blast.Databases.ExternalSources;

namespace Microsoft.Azure.Blast.Web.Models
{
public class RepositoryViewModel
{
public string SelectedRepoId { get; set; }
public List<ExternalRepository> Repositories { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

@model Microsoft.Azure.Blast.Web.Models.RespositoryViewModel
@model Microsoft.Azure.Blast.Web.Models.RepositoryViewModel

@{
ViewBag.Title = "Databases";
Expand Down