Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.1.0-rc14 #75

Merged
merged 5 commits into from
May 9, 2024
Merged

Release v0.1.0-rc14 #75

merged 5 commits into from
May 9, 2024

Conversation

angrybayblade
Copy link
Contributor

No description provided.

Comment on lines +61 to +70
// TODO: Replace with proper upload logic
// if (services.length > 0) {
// return ServicesService.startDeployment(services[0].hash).then(() => {
// setServiceStatus(DeploymentStatus.DEPLOYED);
// setIsBalancePollingPaused(false);
// setServiceButtonState({ isLoading: false });
// });
// }

if (services.length > 0) {
return ServicesService.startDeployment(services[0].hash).then(() => {
setServiceStatus(DeploymentStatus.DEPLOYED);
setIsBalancePollingPaused(false);
setServiceButtonState({ isLoading: false });
});
}

// For now POST /api/services will take care of creating, starting and updating the service
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@truemiller until we have OTA updates in place

operate/cli.py Outdated
Comment on lines 378 to 411
manager = operate.service_manager()
update = False
if len(manager.json) > 0:
old_hash = manager.json[0]["hash"]
if old_hash == template["hash"]:
logger.info("Loading service " + template["hash"])
service = manager.create_or_load(
hash=template["hash"],
rpc=template["configuration"]["rpc"],
on_chain_user_params=services.manage.OnChainUserParams.from_json(
template["configuration"]
),
)
else:
logger.info(f"Updating service from {old_hash} to " + template["hash"])
service = manager.update_service(
old_hash=old_hash,
new_hash=template["hash"],
rpc=template["configuration"]["rpc"],
on_chain_user_params=services.manage.OnChainUserParams.from_json(
template["configuration"]
),
)
update = True
else:
logger.info("Creating service " + template["hash"])
service = manager.create_or_load(
hash=template["hash"],
rpc=template["configuration"]["rpc"],
on_chain_user_params=services.manage.OnChainUserParams.from_json(
template["configuration"]
),
)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@truemiller POST /api/services can be used for creating, updating and starting services

@angrybayblade angrybayblade changed the title Release v0.1.0-rc13 Release v0.1.0-rc14 May 8, 2024
@angrybayblade angrybayblade merged commit 60fb8f6 into main May 9, 2024
3 checks passed
@truemiller truemiller deleted the release/v0.1.0-rc13 branch September 25, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants