Skip to content
Merged
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
2 changes: 0 additions & 2 deletions src/SIL.Machine.AspNetCore/Models/ClearMLProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@

public class ClearMLProject
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; } = default!;
}
2 changes: 0 additions & 2 deletions src/SIL.Machine.AspNetCore/Models/ClearMLTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ public enum ClearMLTaskStatus

public class ClearMLTask
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; } = default!;
public string Name { get; set; } = default!;
public ClearMLProject Project { get; set; } = default!;
Expand Down
2 changes: 0 additions & 2 deletions src/SIL.Machine.AspNetCore/Models/Corpus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public class Corpus
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; } = default!;
public string SourceLanguage { get; set; } = default!;
public string TargetLanguage { get; set; } = default!;
Expand Down
2 changes: 0 additions & 2 deletions src/SIL.Machine.AspNetCore/Models/Lock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public class Lock
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; } = default!;
public DateTime? ExpiresAt { get; set; }
public string HostId { get; set; } = default!;
Expand Down
2 changes: 0 additions & 2 deletions src/SIL.Machine.AspNetCore/Models/RWLock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public class RWLock : IEntity
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; } = default!;
public int Revision { get; set; }
public Lock? WriterLock { get; set; }
Expand Down
2 changes: 0 additions & 2 deletions src/SIL.Machine.AspNetCore/Models/TrainSegmentPair.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public class TrainSegmentPair : IEntity
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; } = default!;
public int Revision { get; set; } = 1;
public string TranslationEngineRef { get; set; } = default!;
Expand Down
2 changes: 0 additions & 2 deletions src/SIL.Machine.AspNetCore/Services/InMemoryStorage.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Newtonsoft.Json.Serialization;

namespace SIL.Machine.AspNetCore.Services;

public class InMemoryStorage : FileStorage
Expand Down
14 changes: 4 additions & 10 deletions src/SIL.Machine.AspNetCore/Usings.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
global using Amazon;
global using Amazon.S3;
global using Amazon.S3.Model;
global using Amazon.S3.Transfer;
global using System.Collections;
global using System.Collections.Concurrent;
global using System.Collections.Specialized;
global using System.Diagnostics;
global using System.Diagnostics.CodeAnalysis;
global using System.IO.Compression;
global using System.Linq.Expressions;
global using System.Net;
global using System.Net.Http.Headers;
global using System.Reflection;
global using System.Runtime.CompilerServices;
global using System.Security.Cryptography;
global using System.Text;
global using System.Text.Json;
global using System.Text.Json.Nodes;
global using System.Web;
global using Amazon;
global using Amazon.S3;
global using Amazon.S3.Model;
global using Amazon.S3.Transfer;
global using Grpc.Core;
global using Grpc.Core.Interceptors;
global using Grpc.Net.Client.Configuration;
Expand All @@ -32,8 +28,6 @@
global using Microsoft.Extensions.Hosting;
global using Microsoft.Extensions.Logging;
global using Microsoft.Extensions.Options;
global using MongoDB.Bson;
global using MongoDB.Bson.Serialization.Attributes;
global using MongoDB.Driver;
global using MongoDB.Driver.Linq;
global using Nito.AsyncEx;
Expand Down