Release Testing Day 2 (#1937)
* Removed unneded ngModel on password field * Fixed some bad validation messages on Edit Reading List modal and disabled save button * Added a lot of trace code to help debug a foreign constraint issue. * Fixed a bug where after a series is scanned, generate covers for series didn't respect webp cover generation. * Fixed library last scan being stored in Utc, but expected to be server time. * Fixed up some of that trace logging being way too verbose. Fixed a case where when a missing storyarc number, the whole pair was dropped. Now, it will default that item to the end of the reading list. Fixed a bug where Start and End dates weren't being calculated after generating a reading list. * Fixed a bug where the default admin user for reading list creation from files was selecting the wrong user. Changed so that when there is a bad pair (aka number missing) and only 1 pair, then we wont constantly reorder the item. * Fixed unit test
This commit is contained in:
parent
66f84a0ee3
commit
c70154f428
12 changed files with 163 additions and 51 deletions
|
@ -17,7 +17,7 @@ public class ChapterBuilder : IEntityBuilder<Chapter>
|
|||
{
|
||||
Range = string.IsNullOrEmpty(range) ? number : range,
|
||||
Title = string.IsNullOrEmpty(range) ? number : range,
|
||||
Number = Services.Tasks.Scanner.Parser.Parser.MinNumberFromRange(number) + string.Empty,
|
||||
Number = Parser.MinNumberFromRange(number) + string.Empty,
|
||||
Files = new List<MangaFile>(),
|
||||
Pages = 1
|
||||
};
|
||||
|
@ -42,12 +42,24 @@ public class ChapterBuilder : IEntityBuilder<Chapter>
|
|||
return this;
|
||||
}
|
||||
|
||||
private ChapterBuilder WithNumber(string number)
|
||||
public ChapterBuilder WithNumber(string number)
|
||||
{
|
||||
_chapter.Number = number;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ChapterBuilder WithStoryArc(string arc)
|
||||
{
|
||||
_chapter.StoryArc = arc;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ChapterBuilder WithStoryArcNumber(string number)
|
||||
{
|
||||
_chapter.StoryArcNumber = number;
|
||||
return this;
|
||||
}
|
||||
|
||||
private ChapterBuilder WithRange(string range)
|
||||
{
|
||||
_chapter.Range = range;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue