Skip to content

Commit

Permalink
#1 Significantly improving logging, and refactoring migration logic.
Browse files Browse the repository at this point in the history
 - Each step now logs
 - Failure will print failed step and may include reason for failure (if c8y api is descriptive)
  • Loading branch information
rpeach-sag committed Jan 27, 2020
1 parent ec4a0ab commit 37d6dca
Show file tree
Hide file tree
Showing 3 changed files with 439 additions and 351 deletions.
3 changes: 2 additions & 1 deletion src/destination/credentials/credentials.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {DataService} from "../../data.service";
import {MigrateComponent} from "../../migrate/migrate.component";
import {UpdateableAlert} from "../../utils/UpdateableAlert";
import {delay} from "../../utils/utils";
import {Migration} from "../../migrate/migration.service";

@Component({
templateUrl: './credentials.component.html'
Expand Down Expand Up @@ -100,7 +101,7 @@ export class CredentialsComponent {
alrt.update(`Downloading Migration Tool... ${(progress * 100).toFixed(0)}%`);
}); // TODO: progress
alrt.update('Uploading to tenant...');
const newApp = MigrateComponent.appMigrationToApp({ // TODO: shouldn't be accessing this as a static method, should be in a service or util file
const newApp = Migration.appMigrationToApp({
newName: 'Migration Tool',
newContextPath: 'migration-tool',
newAppKey: 'migration-tool-application-key',
Expand Down
Loading

0 comments on commit 37d6dca

Please sign in to comment.