зеркало из https://github.com/Azure/azure-hpc.git
Fix various misspellings of the word Repository in AzureBlast.Web
This commit is contained in:
Родитель
06353c721c
Коммит
d54d834586
|
@ -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" />
|
||||
|
|
|
@ -32,32 +32,32 @@ namespace Microsoft.Azure.Blast.Web.Controllers.Api
|
|||
[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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace Microsoft.Azure.Blast.Web.Controllers
|
|||
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,
|
||||
|
|
|
@ -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; }
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
@model Microsoft.Azure.Blast.Web.Models.RespositoryViewModel
|
||||
@model Microsoft.Azure.Blast.Web.Models.RepositoryViewModel
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Databases";
|
||||
|
|
Загрузка…
Ссылка в новой задаче