Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.5.6 - Performance Part 2 (Is that a new scan loop?) #1500

Merged
merged 53 commits into from
Sep 2, 2022
Merged
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
0eac193
New Scan Loop (#1447)
majora2007 Aug 19, 2022
df094f5
Bump versions by dotnet-bump-version.
majora2007 Aug 19, 2022
0c9c20a
Misc UI Fixes (#1450)
majora2007 Aug 19, 2022
252f31d
Bump versions by dotnet-bump-version.
majora2007 Aug 19, 2022
7cb547f
New Scan Loop Fixes (#1452)
majora2007 Aug 20, 2022
66a9984
Bump versions by dotnet-bump-version.
majora2007 Aug 20, 2022
329970f
Simplify parent lookup with Directory.GetParent (#1455)
tjarls Aug 20, 2022
354be09
Bump versions by dotnet-bump-version.
majora2007 Aug 20, 2022
1c9544f
Scan Loop Fixes (#1459)
majora2007 Aug 22, 2022
ac9f1c7
Bump versions by dotnet-bump-version.
majora2007 Aug 22, 2022
268f436
Scroll Resume (#1460)
majora2007 Aug 22, 2022
ca2137f
Bump versions by dotnet-bump-version.
majora2007 Aug 22, 2022
ff26a45
Misc UI fixes (#1461)
therobbiedavis Aug 23, 2022
87ad584
Bump versions by dotnet-bump-version.
therobbiedavis Aug 23, 2022
037a1a5
Folder Watching (#1467)
majora2007 Aug 23, 2022
fc0121e
Bump versions by dotnet-bump-version.
majora2007 Aug 23, 2022
1e535a8
More Scan Loop Bugfixes (#1471)
majora2007 Aug 24, 2022
e37d7cf
Bump versions by dotnet-bump-version.
majora2007 Aug 24, 2022
f92ef19
More Scan Loop Fixes (#1473)
majora2007 Aug 25, 2022
d4285c4
Bump versions by dotnet-bump-version.
majora2007 Aug 25, 2022
8edd5e4
Misc UI Fixes (#1477)
majora2007 Aug 25, 2022
d6cc93e
Bump versions by dotnet-bump-version.
majora2007 Aug 25, 2022
508485c
Added fixes for libvips (#1479)
Kizaing Aug 25, 2022
36300c5
Bump versions by dotnet-bump-version.
majora2007 Aug 25, 2022
0cd14b3
Tachiyomi + Fixes (#1481)
majora2007 Aug 25, 2022
4899ed3
Bump versions by dotnet-bump-version.
majora2007 Aug 25, 2022
851c777
Adding Health controller (#1480)
therobbiedavis Aug 26, 2022
b64ed6d
Bump versions by dotnet-bump-version.
therobbiedavis Aug 26, 2022
b07aaf1
Simplify Folder Watcher (#1484)
majora2007 Aug 28, 2022
ae13775
Bump versions by dotnet-bump-version.
majora2007 Aug 28, 2022
f0c516a
Sort series by chapter number only when some chapters have no volume …
tjarls Aug 28, 2022
2d834df
SQLite Hangfire (#1488)
majora2007 Aug 28, 2022
403d371
Bump versions by dotnet-bump-version.
majora2007 Aug 28, 2022
e0cf632
Merge branch 'develop' of https://github.com/Kareadita/Kavita into de…
majora2007 Aug 28, 2022
610d9c0
Bump versions by dotnet-bump-version.
majora2007 Aug 28, 2022
29827f4
Merge branch 'develop' of https://github.com/Kareadita/Kavita into de…
majora2007 Aug 28, 2022
6d10c52
Fixed typeahead not working correctly (#1490)
majora2007 Aug 29, 2022
fb86ce4
Bump versions by dotnet-bump-version.
majora2007 Aug 29, 2022
d7f2661
Release Testing Day 1 (#1491)
majora2007 Aug 29, 2022
521b2ad
Bump versions by dotnet-bump-version.
majora2007 Aug 29, 2022
85790dd
Scan Loop Last Write Time Change (#1492)
majora2007 Aug 30, 2022
8e21a70
Bump versions by dotnet-bump-version.
majora2007 Aug 30, 2022
2cd94e7
Release Testing Day 2 (#1493)
majora2007 Aug 31, 2022
9ee5ab9
Bump versions by dotnet-bump-version.
majora2007 Aug 31, 2022
52ed572
Fixed a bug where a series with a relationship couldn't be deleted. (…
majora2007 Sep 1, 2022
ab21c1b
Bump versions by dotnet-bump-version.
majora2007 Sep 1, 2022
f2249ea
Release Testing Day 3 (#1496)
majora2007 Sep 1, 2022
9c8aa5b
Bump versions by dotnet-bump-version.
majora2007 Sep 1, 2022
b85c5cc
Updating series detail cover style (#1498)
therobbiedavis Sep 2, 2022
4eb5219
Bump versions by dotnet-bump-version.
majora2007 Sep 2, 2022
c4a3f76
Version bump
majora2007 Sep 2, 2022
e649f5c
v0.5.6 Release (#1499)
majora2007 Sep 2, 2022
a8f3c81
Merge branch 'develop' of https://github.com/Kareadita/Kavita into re…
majora2007 Sep 2, 2022
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
Prev Previous commit
Next Next commit
SQLite Hangfire (#1488)
* Update to use SQLIte for Hangfire to retain information on tasks

* Updated all external links to have noopener noreferrer

* When watching folders, ensure the folders exist before creating watchers.

* Tweaked the messaging for Email Service and added link to the project.
  • Loading branch information
majora2007 authored Aug 28, 2022
commit 2d834dfc58e7ade4e27d28b43cefaf210aec3da2
1 change: 1 addition & 0 deletions API/API.csproj
Original file line number Diff line number Diff line change
@@ -54,6 +54,7 @@
<PackageReference Include="Hangfire.AspNetCore" Version="1.7.30" />
<PackageReference Include="Hangfire.MaximumConcurrentExecutions" Version="1.1.0" />
<PackageReference Include="Hangfire.MemoryStorage.Core" Version="1.4.0" />
<PackageReference Include="Hangfire.Storage.SQLite" Version="0.3.2" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.43" />
<PackageReference Include="MarkdownDeep.NET.Core" Version="1.5.0.4" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.7" />
1 change: 1 addition & 0 deletions API/Services/Tasks/Scanner/LibraryWatcher.cs
Original file line number Diff line number Diff line change
@@ -115,6 +115,7 @@ public async Task StartWatching()
.SelectMany(l => l.Folders)
.Distinct()
.Select(Parser.Parser.NormalizePath)
.Where(_directoryService.Exists)
.ToList();
foreach (var libraryFolder in _libraryFolders)
{
3 changes: 2 additions & 1 deletion API/Startup.cs
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@
using API.SignalR;
using Hangfire;
using Hangfire.MemoryStorage;
using Hangfire.Storage.SQLite;
using Kavita.Common;
using Kavita.Common.EnvironmentInfo;
using Microsoft.AspNetCore.Builder;
@@ -155,7 +156,7 @@ public void ConfigureServices(IServiceCollection services)
services.AddHangfire(configuration => configuration
.UseSimpleAssemblyNameTypeSerializer()
.UseRecommendedSerializerSettings()
.UseMemoryStorage());
.UseSQLiteStorage());

// Add the processing server as IHostedService
services.AddHangfireServer(options =>
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ <h4 class="modal-title" id="modal-basic-title">Choose a Directory</h4>
</table>
</div>
<div class="modal-footer">
<a class="btn btn-icon" *ngIf="helpUrl.length > 0" href="{{helpUrl}}" target="_blank">Help</a>
<a class="btn btn-icon" *ngIf="helpUrl.length > 0" href="{{helpUrl}}" target="_blank" rel="noopener noreferrer">Help</a>
<button type="button" class="btn btn-secondary" (click)="close()">Cancel</button>
<button type="button" class="btn btn-primary" (click)="share()">Share</button>
</div>
4 changes: 2 additions & 2 deletions UI/Web/src/app/admin/invite-user/invite-user.component.html
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ <h4 class="modal-title" id="modal-basic-title">Invite User</h4>
</div>
<div class="modal-body">
<p>
Invite a user to your server. Enter their email in and we will send them an email to create an account. If you do not want to use our email service, you can <a href="https://wiki.kavitareader.com/en/guides/misc/email" target="_blank" rel="noopener noreferrer">host your own</a>
Invite a user to your server. Enter their email in and we will send them an email to create an account. If you do not want to use our email service, you can <a href="https://wiki.kavitareader.com/en/guides/misc/email" rel="noopener noreferrer" target="_blank" rel="noopener noreferrer">host your own</a>
email service or use a fake email (Forgot User will not work). A link will be presented regardless and can be used to setup the email account manually.
</p>

@@ -39,7 +39,7 @@ <h4>User invited</h4>
<p>You can use the following link below to setup the account for your user or use the copy button. You may need to log out before using the link to register a new user.
If your server is externally accessible, an email will have been sent to the user and the links can be used by them to finish setting up their account.
</p>
<a class="email-link" href="{{emailLink}}" target="_blank">Setup user's account</a>
<a class="email-link" href="{{emailLink}}" target="_blank" rel="noopener noreferrer">Setup user's account</a>
<app-api-key title="Invite Url" tooltipText="Copy this and paste in a new tab. You may need to log out." [showRefresh]="false" [transform]="makeLink"></app-api-key>
</ng-container>

Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@
<form [formGroup]="settingsForm" *ngIf="serverSettings !== undefined">
<h4>Email Services (SMTP)</h4>
<p>Kavita comes out of the box with an email service to power flows like invite user, forgot password, etc. Emails sent via our service are deleted immediately. You can use your own
email service. Set the url of the email service and use the Test button to ensure it works. At any time you can reset to ours. There is no way to disable emails although you are not required to use a
valid email address for users. Confirmation links will always be saved to logs. Emails will not be sent if you are not accessing Kavita via a publically reachable url.
email service, by setting up <a href="https://github.com/Kareadita/KavitaEmail" target="_blank" rel="noopener noreferrer">Kavita Email</a> service. Set the url of the email service and use the Test button to ensure it works. At any time you can reset to the default. There is no way to disable emails although you are not required to use a
valid email address for users. Confirmation links will always be saved to logs and presented in the UI. Emails will not be sent if you are not accessing Kavita via a publically reachable url.
</p>
<div class="mb-3">
<label for="settings-emailservice" class="form-label">Email Service Url</label>&nbsp;<i class="fa fa-info-circle" placement="right" [ngbTooltip]="emailServiceTooltip" role="button" tabindex="0"></i>
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@

<div class="mb-3">
<label for="stat-collection" class="form-label" aria-describedby="collection-info">Allow Anonymous Usage Collection</label>
<p class="accent" id="collection-info">Send anonymous usage data to Kavita's servers. This includes information on certain features used, number of files, OS version, kavita install version, cpu and memory. We will use this information to prioritize features, bug fixes, and preformance tuning. Requires restart to take effect. See <a href="https://wiki.kavitareader.com/en/faq" target="_blank" referrerpolicy="no-refer">wiki</a> for what is collected.</p>
<p class="accent" id="collection-info">Send anonymous usage data to Kavita's servers. This includes information on certain features used, number of files, OS version, kavita install version, cpu and memory. We will use this information to prioritize features, bug fixes, and preformance tuning. Requires restart to take effect. See <a href="https://wiki.kavitareader.com/en/faq" rel="noopener noreferrer" target="_blank" referrerpolicy="no-refer">wiki</a> for what is collected.</p>
<div class="form-check form-switch">
<input id="stat-collection" type="checkbox" aria-label="Stat Collection" class="form-check-input" formControlName="allowStatCollection" role="switch">
<label for="stat-collection" class="form-check-label">Send Data</label>
12 changes: 6 additions & 6 deletions UI/Web/src/app/admin/manage-system/manage-system.component.html
Original file line number Diff line number Diff line change
@@ -16,26 +16,26 @@ <h3>More Info</h3>
<div>
<div class="row">
<div class="col-4">Home page:</div>
<div class="col"><a href="https://www.kavitareader.com" target="_blank">kavitareader.com</a></div>
<div class="col"><a href="https://www.kavitareader.com" target="_blank" rel="noopener noreferrer">kavitareader.com</a></div>
</div>
<div class="row">
<div class="col-4">Wiki:</div>
<div class="col"><a href="https://wiki.kavitareader.com" target="_blank">wiki.kavitareader.com</a></div>
<div class="col"><a href="https://wiki.kavitareader.com" target="_blank" rel="noopener noreferrer">wiki.kavitareader.com</a></div>
</div>
<div class="row">
<div class="col-4">Discord:</div>
<div class="col"><a href="https://discord.gg/b52wT37kt7" target="_blank">discord.gg/b52wT37kt7</a></div>
<div class="col"><a href="https://discord.gg/b52wT37kt7" target="_blank" rel="noopener noreferrer">discord.gg/b52wT37kt7</a></div>
</div>
<div class="row">
<div class="col-4">Donations:</div>
<div class="col"><a href="https://opencollective.com/kavita" target="_blank">opencollective.com/kavita</a></div>
<div class="col"><a href="https://opencollective.com/kavita" target="_blank" rel="noopener noreferrer">opencollective.com/kavita</a></div>
</div>
<div class="row">
<div class="col-4">Source:</div>
<div class="col"><a href="https://github.com/Kareadita/Kavita" target="_blank">github.com/Kareadita/Kavita</a></div>
<div class="col"><a href="https://github.com/Kareadita/Kavita" target="_blank" rel="noopener noreferrer">github.com/Kareadita/Kavita</a></div>
</div>
<div class="row">
<div class="col-4">Feature Requests:</div>
<div class="col"><a href="https://feats.kavitareader.com" target="_blank">https://feats.kavitareader.com</a><br/>
<div class="col"><a href="https://feats.kavitareader.com" target="_blank" rel="noopener noreferrer">https://feats.kavitareader.com</a><br/>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -133,7 +133,7 @@ export class ManageUsersComponent implements OnInit, OnDestroy {
return;
}
await this.confirmService.alert(
'Please click this link to confirm your email. You must confirm to be able to login. You may need to log out of the current account before clicking. <br/> <a href="' + email + '" target="_blank">' + email + '</a>');
'Please click this link to confirm your email. You must confirm to be able to login. You may need to log out of the current account before clicking. <br/> <a href="' + email + '" target="_blank" rel="noopener noreferrer">' + email + '</a>');

});
});
Original file line number Diff line number Diff line change
@@ -13,8 +13,8 @@ <h6 class="card-subtitle mb-1 mt-1 text-muted">Published: {{update.publishDate |
<pre class="card-text update-body">
<app-read-more [text]="update.updateBody" [maxLength]="500"></app-read-more>
</pre>
<a *ngIf="!update.isDocker && update.updateVersion === update.currentVersion" href="{{update.updateUrl}}" class="btn disabled btn-{{indx === 0 ? 'primary' : 'secondary'}} float-end" target="_blank">Installed</a>
<a *ngIf="!update.isDocker && update.updateVersion !== update.currentVersion" href="{{update.updateUrl}}" class="btn btn-{{indx === 0 ? 'primary' : 'secondary'}} float-end" target="_blank">Download</a>
<a *ngIf="!update.isDocker && update.updateVersion === update.currentVersion" href="{{update.updateUrl}}" class="btn disabled btn-{{indx === 0 ? 'primary' : 'secondary'}} float-end" target="_blank" rel="noopener noreferrer">Installed</a>
<a *ngIf="!update.isDocker && update.updateVersion !== update.currentVersion" href="{{update.updateUrl}}" class="btn btn-{{indx === 0 ? 'primary' : 'secondary'}} float-end" target="_blank" rel="noopener noreferrer">Download</a>
</div>
</div>
</ng-container>
2 changes: 1 addition & 1 deletion UI/Web/src/app/bookmark/bookmarks/bookmarks.component.html
Original file line number Diff line number Diff line change
@@ -21,6 +21,6 @@ <h6 subtitle>{{series.length}} Series</h6>
</ng-template>

<ng-template #noData>
There are no bookmarks. Try creating <a href="https://wiki.kavitareader.com/en/guides/get-started-using-your-library/bookmarks" target="_blank">one&nbsp;<i class="fa fa-external-link-alt" aria-hidden="true"></i></a>.
There are no bookmarks. Try creating <a href="https://wiki.kavitareader.com/en/guides/get-started-using-your-library/bookmarks" rel="noopener noreferrer" target="_blank">one&nbsp;<i class="fa fa-external-link-alt" aria-hidden="true"></i></a>.
</ng-template>
</app-card-detail-layout>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="container-fluid">

<p>
Not sure what relationship to add? See our <a href="https://wiki.kavitareader.com/en/guides/get-started-using-your-library/series-relationships" target="_blank" referrerpolicy="no-refer">wiki for hints</a>.
Not sure what relationship to add? See our <a href="https://wiki.kavitareader.com/en/guides/get-started-using-your-library/series-relationships" target="_blank" rel="noopener noreferrer" referrerpolicy="no-refer">wiki for hints</a>.
</p>

<div class="row g-0" *ngIf="relations.length > 0">
Original file line number Diff line number Diff line change
@@ -16,6 +16,6 @@ <h6 subtitle>{{collections.length}} Items</h6>
</ng-template>

<ng-template #noData>
There are no collections. Try creating <a href="https://wiki.kavitareader.com/en/guides/get-started-using-your-library/collections" target="_blank">one&nbsp;<i class="fa fa-external-link-alt" aria-hidden="true"></i></a>.
There are no collections. Try creating <a href="https://wiki.kavitareader.com/en/guides/get-started-using-your-library/collections" rel="noopener noreferrer" target="_blank">one&nbsp;<i class="fa fa-external-link-alt" aria-hidden="true"></i></a>.
</ng-template>
</app-card-detail-layout>
Original file line number Diff line number Diff line change
@@ -19,6 +19,6 @@ <h6 subtitle *ngIf="pagination">{{pagination.totalItems}} Items</h6>
</ng-template>

<ng-template #noData>
There are no reading lists. Try creating <a href="https://wiki.kavitareader.com/en/guides/get-started-using-your-library#reading-list" target="_blank">one&nbsp;<i class="fa fa-external-link-alt" aria-hidden="true"></i></a>.
There are no reading lists. Try creating <a href="https://wiki.kavitareader.com/en/guides/get-started-using-your-library#reading-list" rel="noopener noreferrer" target="_blank">one&nbsp;<i class="fa fa-external-link-alt" aria-hidden="true"></i></a>.
</ng-template>
</app-card-detail-layout>
Original file line number Diff line number Diff line change
@@ -11,5 +11,5 @@ <h5>{{updateData.updateTitle}}</h5>

<div class="modal-footer">
<button type="button" class="btn {{updateData.isDocker ? 'btn-primary' : 'btn-secondary'}}" (click)="close()">Close</button>
<a *ngIf="!updateData.isDocker" href="{{updateData.updateUrl}}" class="btn btn-primary" target="_blank" (click)="close()">Download</a>
<a *ngIf="!updateData.isDocker" href="{{updateData.updateUrl}}" class="btn btn-primary" target="_blank" rel="noopener noreferrer" (click)="close()">Download</a>
</div>