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

fix(website): Use Ipfs reference for partial deploy on web #1305

Merged
merged 25 commits into from
Aug 27, 2024

Conversation

FuzzB0t
Copy link
Contributor

@FuzzB0t FuzzB0t commented Aug 21, 2024

fixes https://linear.app/usecannon/issue/CAN-444/add-deployments-from-partial-deploy-file

This ticket redesigns the deploy page and removes the need to specify cannonfile url in partial deployments on the web app.

Below is an example of running a partial deployment (I ran the same thing on the current instance of the website and confirmed the error response was the same on there)

Without cannonfile ref:

https://www.loom.com/share/054e6dda24aa47aebd4f0c729ed83f61

With cannonfile ref:

https://www.loom.com/share/aa0414806f364c679e8b9978525cb5aa

Also added the ability to specify chain id on pin command since it was not pinning partial deployment hashes on other networks

Copy link

changeset-bot bot commented Aug 21, 2024

⚠️ No Changeset found

Latest commit: b6cdcfe

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

nx-cloud bot commented Aug 21, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit b6cdcfe. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@FuzzB0t FuzzB0t changed the title fix(website): Rework deploy page fix(website): Use Ipfs reference for partial deploy on web Aug 22, 2024
@@ -414,7 414,13 @@ const commandsConfig = {
description: 'IPFS hash to write deployment data for',
},
],
options: [...debugVerbosity],
options: [
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added chain id option to pin command because the pin command fails when trying to pin a package that was built on a live network

@@ -490,7 486,7 @@ function QueueFromGitOps() {
function renderCannonfileInput() {
return (
<FormControl mb="4">
<FormLabel>Cannonfile</FormLabel>
<FormLabel>Cannonfile {selectedDeployType == '3' ? '(Optional)' : ''}</FormLabel>
Copy link
Contributor

Choose a reason for hiding this comment

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

I know this is not part of this PR, but if we could give semantical names to '1' '2' '2' would be great.

Copy link
Member

@mjlescano mjlescano left a comment

Choose a reason for hiding this comment

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

Currently the UI is allowing you to just paster a cannonfile without a partial deployment file, which it shouldn't:
Screenshot 2024-08-26 at 18 54 22

@FuzzB0t
Copy link
Contributor Author

FuzzB0t commented Aug 27, 2024

Currently the UI is allowing you to just paster a cannonfile without a partial deployment file, which it shouldn't: Screenshot 2024-08-26 at 18 54 22

I disabled the cannonfile input when a partial deployment hash hasnt been provided

@mjlescano
Copy link
Member

When landing for the first time on the gitops deployment page, directly from the link or navigating, there's no radio button selected by default, when the first one should be selected:
Screenshot 2024-08-27 at 11 46 51

@mjlescano mjlescano self-requested a review August 27, 2024 14:59
@mjlescano mjlescano self-requested a review August 27, 2024 15:19
@FuzzB0t FuzzB0t enabled auto-merge (squash) August 27, 2024 15:21
@FuzzB0t FuzzB0t merged commit 24941db into main Aug 27, 2024
7 of 9 checks passed
@FuzzB0t FuzzB0t deleted the partial-deploy-web branch August 27, 2024 15:28
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.

3 participants