mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-11-13 04:52:55 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d23010d08e | |||
| fdbe00929a | |||
| 5c20042618 | |||
| 25f1a0ec3e | |||
| 320517fc80 | |||
| b9889e387b |
+1
-1
Submodule .claude/commands updated: 155a138209...7d0dbea846
+1
-1
Submodule internal updated: 2e314b1de5...f5da35f43c
+1
-1
@@ -19,7 +19,7 @@ namespace AutopilotMonitor.Functions.Functions.Vulnerability
|
||||
/// Downloads the NVD product dictionary now instead of waiting for the nightly run, which is
|
||||
/// otherwise the only thing that loads it: on a new installation, and after a night whose
|
||||
/// download failed, the operator's Auto-Map has no dictionary until 03:00 UTC. Synchronous
|
||||
/// (a download takes about a quarter of a minute); 409 while a refresh runs on this instance.
|
||||
/// (a download takes a few seconds); 409 while a refresh runs on this instance.
|
||||
/// Global Admin only.
|
||||
/// </summary>
|
||||
public class TriggerCpeDictionarySyncFunction
|
||||
|
||||
@@ -614,7 +614,7 @@ export function VulnerabilityDataSection({
|
||||
onClick={handleSyncDictionary}
|
||||
disabled={!canMutate || syncingDictionary || syncing || syncingMsrc || reseedingSeed || reseedingCommunity}
|
||||
className="inline-flex items-center px-4 py-2 text-sm font-medium rounded-md text-white bg-teal-700 hover:bg-teal-800 disabled:opacity-50 disabled:cursor-not-allowed transition-colors shadow-sm"
|
||||
title="Downloads the NVD product dictionary now instead of waiting for the nightly run (about 15 seconds). Auto-Map needs it."
|
||||
title="Downloads the NVD product dictionary now instead of waiting for the nightly run. Takes a few seconds. Auto-Map needs it."
|
||||
>
|
||||
{syncingDictionary ? (
|
||||
<>
|
||||
|
||||
+3
-1
@@ -40,7 +40,9 @@ describe("autoResolveReasonText", () => {
|
||||
expect(autoResolveReasonText("nvd_unavailable")).toBe("NVD did not answer; try again later");
|
||||
expect(autoResolveReasonText("already_mapped")).toBe("Already mapped");
|
||||
expect(autoResolveReasonText("ignored")).toBe("On the ignore list");
|
||||
expect(autoResolveReasonText("no_dictionary")).toBe("The NVD product dictionary has not been loaded yet (nightly sync)");
|
||||
expect(autoResolveReasonText("no_dictionary")).toBe(
|
||||
"The NVD product dictionary has not been loaded yet (Vulnerability Data > Sync NVD Dictionary loads it)",
|
||||
);
|
||||
expect(autoResolveReasonText("empty_name")).toBe("No name");
|
||||
});
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ const AUTO_RESOLVE_REASONS = new Map<string, string>([
|
||||
["nvd_unavailable", "NVD did not answer; try again later"],
|
||||
["already_mapped", "Already mapped"],
|
||||
["ignored", "On the ignore list"],
|
||||
["no_dictionary", "The NVD product dictionary has not been loaded yet (nightly sync)"],
|
||||
["no_dictionary", "The NVD product dictionary has not been loaded yet (Vulnerability Data > Sync NVD Dictionary loads it)"],
|
||||
["empty_name", "No name"],
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user