Merge pull request #14277 from backstage/freben/human-types

move `HumanDuration` to `@backstage/types`
This commit is contained in:
Fredrik Adelöw
2022-10-24 10:39:17 +01:00
committed by GitHub
21 changed files with 144 additions and 41 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ import { FactLifecycle } from '@backstage/plugin-tech-insights-node';
import { FactRetriever } from '@backstage/plugin-tech-insights-node';
import { FactRetrieverRegistration } from '@backstage/plugin-tech-insights-node';
import { FactSchema } from '@backstage/plugin-tech-insights-node';
import { HumanDuration } from '@backstage/backend-tasks';
import { HumanDuration } from '@backstage/types';
import { Logger } from 'winston';
import { PluginDatabaseManager } from '@backstage/backend-common';
import { PluginEndpointDiscovery } from '@backstage/backend-common';
@@ -41,6 +41,7 @@
"@backstage/errors": "workspace:^",
"@backstage/plugin-tech-insights-common": "workspace:^",
"@backstage/plugin-tech-insights-node": "workspace:^",
"@backstage/types": "workspace:^",
"@types/express": "^4.17.6",
"@types/luxon": "^3.0.0",
"express": "^4.17.1",
@@ -13,7 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { HumanDuration } from '@backstage/backend-tasks';
import { HumanDuration } from '@backstage/types';
import {
FactLifecycle,
FactRetriever,
+1 -1
View File
@@ -8,7 +8,7 @@ import { Config } from '@backstage/config';
import { DateTime } from 'luxon';
import { Duration } from 'luxon';
import { DurationLike } from 'luxon';
import { HumanDuration } from '@backstage/backend-tasks';
import { HumanDuration } from '@backstage/types';
import { JsonValue } from '@backstage/types';
import { Logger } from 'winston';
import { PluginEndpointDiscovery } from '@backstage/backend-common';
+1 -2
View File
@@ -15,13 +15,12 @@
*/
import { DateTime, Duration, DurationLike } from 'luxon';
import { Config } from '@backstage/config';
import { JsonValue } from '@backstage/types';
import { HumanDuration, JsonValue } from '@backstage/types';
import {
PluginEndpointDiscovery,
TokenManager,
} from '@backstage/backend-common';
import { Logger } from 'winston';
import { HumanDuration } from '@backstage/backend-tasks';
/**
* A container for facts. The shape of the fact records needs to correspond to the FactSchema with same `ref` value.