From b567ee28186358cac3a4c2b57d78374ad1dd625f Mon Sep 17 00:00:00 2001 From: Jussi Hallila Date: Mon, 10 Jan 2022 16:13:34 +0100 Subject: [PATCH] Make Vale happier. Signed-off-by: Jussi Hallila --- .changeset/six-coins-admire.md | 8 ++++---- plugins/tech-insights-backend/README.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.changeset/six-coins-admire.md b/.changeset/six-coins-admire.md index 539c6e470d..42d0ecbb8f 100644 --- a/.changeset/six-coins-admire.md +++ b/.changeset/six-coins-admire.md @@ -3,10 +3,10 @@ '@backstage/plugin-tech-insights-node': patch --- -Adds a configuration option to fact retrievers to define lifecycle for facts the retriever persists. Possible values are either 'items-to-live' or 'time-to-live'. The former will only n number of items in to the database for each fact per entity. The latter will remove all facts that are older than the TTL value. +Adds a configuration option to fact retrievers to define lifecycle for facts the retriever persists. Possible values are either 'items-to-live' or 'time-to-live'. The former will keep only n number of items in to the database for each fact per entity. The latter will remove all facts that are older than the TTL value. Possible values: -- { itl: 5 } // Deletes all facts for the retriever/entity pair, apart from the last five -- { ttl: 1209600000 } // (2 weeks) Deletes all facts older than 2 weeks for the retriever/entity pair -- { ttl: { weeks: 2 } } // Deletes all facts older than 2 weeks for the retriever/entity pair +- `{ itl: 5 }` // Deletes all facts for the retriever/entity pair, apart from the last five +- `{ ttl: 1209600000 }` // (2 weeks) Deletes all facts older than 2 weeks for the retriever/entity pair +- `{ ttl: { weeks: 2 } }` // Deletes all facts older than 2 weeks for the retriever/entity pair diff --git a/plugins/tech-insights-backend/README.md b/plugins/tech-insights-backend/README.md index ea76cf2541..c0d903b2eb 100644 --- a/plugins/tech-insights-backend/README.md +++ b/plugins/tech-insights-backend/README.md @@ -91,7 +91,7 @@ const myFactRetrieverRegistration = createFactRetrieverRegistration( ); ``` -FactRetrieverRegistration also accepts an optional `lifecycle` configuration value. This can be either ITL (items to live) or TTL (time to live). Valid options for this value are either a number for itl or a Luxon duration like object for ttl. For example: +FactRetrieverRegistration also accepts an optional `lifecycle` configuration value. This can be either ITL (items to live) or TTL (time to live). Valid options for this value are either a number for ITL or a Luxon duration like object for TTL. For example: ```ts const itl = { itl: 7 }; // Deletes all but 7 latest facts for each id/entity pair