-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into v2.x.x
# Conflicts: # packages/cli/package.json # packages/framework-provider-aws-infrastructure/package.json # packages/framework-provider-aws/package.json # packages/framework-provider-azure-infrastructure/package.json # packages/metadata-booster/package.json
- Loading branch information
Showing
32 changed files
with
180 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
name: Bug Report | ||
about: Use this template for reporting a bug. | ||
labels: bug | ||
--- | ||
|
||
# Bug Report | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: Maintainance task | ||
about: Use this template to propose a maintainance task. | ||
labels: maintainance | ||
--- | ||
|
||
# Maintainance task | ||
|
||
## Description | ||
|
||
<!--- Description of the maintainance task you are proposing. Please include as much context and information as possible. --> | ||
|
||
## Possible Solution | ||
|
||
<!--- Only if you have suggestions on a implementation --> | ||
|
||
## Additional information | ||
|
||
<!-- Only if you want to share additional context or related information --> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,34 @@ | ||
{ | ||
"name": "@boostercloud/framework-core", | ||
"entries": [ | ||
{ | ||
"version": "1.21.0", | ||
"tag": "@boostercloud/framework-core_v1.21.0", | ||
"date": "Mon, 30 Oct 2023 16:27:59 GMT", | ||
"comments": { | ||
"minor": [ | ||
{ | ||
"comment": "Add elapsed time to data migration entities", | ||
"author": "gonzalojaubert <[email protected]>", | ||
"commit": "b37bb4430ee9dc6708f53f7b0f56431bb717464d" | ||
} | ||
], | ||
"dependency": [ | ||
{ | ||
"comment": "Updating dependency \"@boostercloud/framework-common-helpers\" from `^1.20.0` to `^1.21.0`" | ||
}, | ||
{ | ||
"comment": "Updating dependency \"@boostercloud/framework-types\" from `^1.20.0` to `^1.21.0`" | ||
}, | ||
{ | ||
"comment": "Updating dependency \"@boostercloud/metadata-booster\" from `^1.20.0` to `^1.21.0`" | ||
}, | ||
{ | ||
"comment": "Updating dependency \"@boostercloud/eslint-config\" from `^1.20.0` to `^1.21.0`" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"version": "1.20.0", | ||
"tag": "@boostercloud/framework-core_v1.20.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 25 additions & 3 deletions
28
...framework-core/src/core-concepts/data-migration/entities/booster-data-migration-entity.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,43 @@ | ||
import { DataMigrationStatus } from '@boostercloud/framework-types' | ||
import { BoosterDataMigrationEntityDuration, DataMigrationStatus } from '@boostercloud/framework-types' | ||
import { BoosterDataMigrationStarted } from '../events/booster-data-migration-started' | ||
import { BoosterDataMigrationFinished } from '../events/booster-data-migration-finished' | ||
|
||
export class BoosterDataMigrationEntity { | ||
public constructor(public id: string, public status: DataMigrationStatus, public lastUpdated: string) {} | ||
public constructor( | ||
public id: string, | ||
public status: DataMigrationStatus, | ||
public lastUpdated: string, | ||
public duration?: BoosterDataMigrationEntityDuration | ||
) {} | ||
|
||
public static started( | ||
event: BoosterDataMigrationStarted, | ||
currentDataMigration: BoosterDataMigrationEntity | ||
): BoosterDataMigrationEntity { | ||
return new BoosterDataMigrationEntity(event.name, DataMigrationStatus.RUNNING, event.lastUpdated) | ||
const duration = { | ||
start: new Date().toISOString(), | ||
} | ||
return new BoosterDataMigrationEntity(event.name, DataMigrationStatus.RUNNING, event.lastUpdated, duration) | ||
} | ||
|
||
public static finished( | ||
event: BoosterDataMigrationFinished, | ||
currentDataMigration: BoosterDataMigrationEntity | ||
): BoosterDataMigrationEntity { | ||
const current = new Date() | ||
if (currentDataMigration.duration?.start) { | ||
const start = currentDataMigration.duration.start | ||
const end = current.toISOString() | ||
const startTime = Date.parse(start) | ||
const endTime = current.getTime() | ||
const elapsedTime = endTime - startTime | ||
const duration: BoosterDataMigrationEntityDuration = { | ||
start: start, | ||
end: end, | ||
elapsedMilliseconds: elapsedTime, | ||
} | ||
return new BoosterDataMigrationEntity(event.name, DataMigrationStatus.FINISHED, event.lastUpdated, duration) | ||
} | ||
return new BoosterDataMigrationEntity(event.name, DataMigrationStatus.FINISHED, event.lastUpdated) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.