-
Notifications
You must be signed in to change notification settings - Fork 2
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
HOSTSD-240 Keep removed servers #126
Conversation
Add DB migration 1.0.3
@@ -129,7 +129,7 @@ public IActionResult GetForId(string id) | |||
[Produces(MediaTypeNames.Application.Json)] | |||
[ProducesResponseType(typeof(IEnumerable<FileSystemHistoryItemModel>), (int)HttpStatusCode.OK)] | |||
[SwaggerOperation(Tags = new[] { "File System Item" })] | |||
[ResponseCache(VaryByQueryKeys = new[] { "*" }, Location = ResponseCacheLocation.Client, Duration = 1200)] | |||
// [ResponseCache(VaryByQueryKeys = new[] { "*" }, Location = ResponseCacheLocation.Client, Duration = 1200)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disable caching for now.
, "ServerItemServiceNowKey" | ||
, "InstallStatus" | ||
FROM ( | ||
SELECT fshi.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get the most recent values. In the current month only return installed items.
, "ServerItemServiceNowKey" | ||
, "InstallStatus" | ||
FROM ( | ||
SELECT fshi.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get the most recent values. In the current month only return installed items.
, "Version" | ||
, "InstallStatus" | ||
FROM ( | ||
SELECT * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get the most recent values. In the current month only return installed items.
, "Version" | ||
, "InstallStatus" | ||
FROM ( | ||
SELECT shi.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get the most recent values. In the current month only return installed items.
The Data Service will no longer delete removed servers and file systems items. Instead it will update their install status to
0
. The service has also been updated to improve the consistency of data between history and current storage values. There is still a difference regrettably, but I haven't figured out what causes the difference.When requesting historical data it will now include uninstalled items for the prior months, but only installed items for the current month. If the user selects invalid date range it will result in no data returned.
I've also disabled caching to see if it improves various data issues without too much of a hit to performance.
Added DB migration 1.0.3