Skip to content
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 @@ -193,10 +193,10 @@ public async Task Dashboard()
}

[Fact]
public async Task AuditTrial()
public async Task AuditTrail()
{
var groupShareClient = Helper.GsClient;
var auditTrial = await groupShareClient.Project.AuditTrial(ProjectId);
var auditTrail = await groupShareClient.Project.AuditTrail(ProjectId);

Assert.True(auditTrial?.Count>0);
}
Expand Down
2 changes: 1 addition & 1 deletion Sdl.Community.GroupShareKit/Clients/IProjectClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ Task<string> CreateProject(BasicCreateProjectRequest request,
/// Thrown when the current user does not have permission to make the request.
/// </exception>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
Task<IReadOnlyList<AuditTrial>> AuditTrial(string projectId);
Task<IReadOnlyList<AuditTrail>> AuditTrail(string projectId);

/// <summary>
/// Returns the projects report data
Expand Down
4 changes: 2 additions & 2 deletions Sdl.Community.GroupShareKit/Clients/ProjectClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1254,10 +1254,10 @@ public async Task<DashboardStatistics> DashboardStatistics()
/// Thrown when the current user does not have permission to make the request.
/// </exception>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
public Task<IReadOnlyList<AuditTrial>> AuditTrial(string projectId)
public Task<IReadOnlyList<AuditTrail>> AuditTrail(string projectId)
{
Ensure.ArgumentNotNullOrEmptyString(projectId, "projectid");
return ApiConnection.GetAll<AuditTrial>(ApiUrls.AuditTrial(projectId), null);
return ApiConnection.GetAll<AuditTrail>(ApiUrls.AuditTrail(projectId), null);
}

#endregion
Expand Down
2 changes: 1 addition & 1 deletion Sdl.Community.GroupShareKit/Helpers/ApiUrls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ public static Uri DashboardStatistics()
/// <summary>
/// Returns the <see cref="Uri"/> that retries the audit trail for all the language files in the given project
/// </summary>
public static Uri AuditTrial(string projectId)
public static Uri AuditTrail(string projectId)
{
return "{0}/auditTrail/languageFiles/{1}".FormatUri(CurrentProjectServerUrl, projectId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Sdl.Community.GroupShareKit.Models.Response
{
public class AuditTrial
public class AuditTrail
{
public LanguageFileDetails LanguageFile { get; set; }
public List<Trial> Trials { get; set; }
public List<Trail> Trails { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Sdl.Community.GroupShareKit.Models.Response
{
public class AuditTrialDetails
public class AuditTrailDetails
{
public LanguageFileDetails LanguageFile { get; set; }
public List<Trial> Trials { get; set; }
public List<Trail> Trails { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Sdl.Community.GroupShareKit.Models.Response
{
public class Trial
public class Trail
{
public string Action { get; set; }
public string Timestamp { get; set; }
Expand Down