-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: Fixed the issue with list deployments: - Created a migration function and modified the moduleName to be 'Fullvm' to list all old VMs with 'Fullvm' type. * fix: fixed an issue happened when listing - Updated the import of 'BaseModule' in 'migration.ts' to be local dir instead of the dist one to fix the un-exported issue - Flat the array of the contracts then loop over them all - Updated the moduleName after listing the 'Fullvm' to 'vm' again to list the other deployments - Pushed the newly changed contract to the 'newContracts' array to avoid the lag of gql - Updated the 'moduleName' in 'base.ts' to take 'Fullvm' if the 'moduleNames' is undefined * fix: Removed unused 'console.log' in 'base.ts' * docs: DocString the '_migrateOldFullVMs' function. * fix: Apply comments: - Removed un-needed 'await' in 'Promise.all()' - Removed un-needed 'await' in returning the 'extrinsics' - Returned the 'module.tfClient.applyAllExtrinsics<Contract>(extrinsics);' without awaiting on it - Moved the update of the moduleName to the 'migrateModule' * fix: Apply comments: - Updated the import of the 'BaseModule' from '@threefold/grid_client' - Moved the update of the 'module.moduleName' to the '_migrateOldFullVMs' * fix: fixed the issue of listing deployments by changing the project Name to '{project Name}' instead of '{project Name/deployment_name}'. * fix(Listing deployments): Updated the 'GridClient/base.ts/getMyContracts' method with some improvements: - Replaced the 'exact' search with 'contains' algo by adding 'includes' when searching on the 'projectName'. - Introduced a new field 'updatedAt' in the 'GqlNodeContract' type to store the updated time in it. - Added a condition on checking on the 'updatedAt' field to replace the newly added contract with the Gql contract.
- Loading branch information
1 parent
3c8f13a
commit 0da6be6
Showing
5 changed files
with
78 additions
and
7 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
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