chore: added changeset and added logging
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-backend': patch
|
||||
---
|
||||
|
||||
**DEPRECATION**: Deprecated the `RefreshIntervalFunction` and `createRandomRefreshInterval` in favour of the `ProcessingIntervalFunction` and `createRandomProcessingInterval` type and method respectively. Please migrate to use the new names.
|
||||
|
||||
**DEPRECATION**: Deprecated the `setRefreshInterval` and `setRefreshIntervalSeconds` methods on the `CatalogBuilder` for the new `setProcessingInterval` and `setProcessingIntervalSeconds` methods. Please migrate to use the new names.
|
||||
@@ -196,7 +196,10 @@ export class CatalogBuilder {
|
||||
*
|
||||
* @deprecated use {@link CatalogBuilder#setProcessingIntervalSeconds} instead
|
||||
*/
|
||||
setRefreshIntervalSeconds(seconds: number): CatalogBuilder {
|
||||
setRefreshIntervalSecon0ds(seconds: number): CatalogBuilder {
|
||||
this.env.logger.warn(
|
||||
'[DEPRECATION] - CatalogBuilder.setRefreshIntervalSeconds is deprecated. Use CatalogBuilder.setProcessingIntervalSeconds instead.',
|
||||
);
|
||||
this.processingInterval = createRandomProcessingInterval({
|
||||
minSeconds: seconds,
|
||||
maxSeconds: seconds * 1.5,
|
||||
@@ -225,6 +228,9 @@ export class CatalogBuilder {
|
||||
* @deprecated use {@link CatalogBuilder#setProcessingInterval} instead
|
||||
*/
|
||||
setRefreshInterval(refreshInterval: RefreshIntervalFunction): CatalogBuilder {
|
||||
this.env.logger.warn(
|
||||
'[DEPRECATION] - CatalogBuilder.setRefreshInterval is deprecated. Use CatalogBuilder.setProcessingInterval instead.',
|
||||
);
|
||||
this.processingInterval = refreshInterval;
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user