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

Add Granite to network upgrades page. #890

Merged
merged 5 commits into from
Sep 10, 2024

Conversation

pauldowman
Copy link
Contributor

@pauldowman pauldowman commented Sep 9, 2024

Adds Granite hard fork times to the network upgrades page.

This PR is not ready yet because I noticed that there are broken anchor links to specs/superchain-upgrades.html, e.g. https://specs.optimism.io/protocol/superchain-upgrades.html#fjord, and there are pages in the specs repo for each hard fork that should probably be linked to instead but the granite page isn't ready.

A separate commit will address broken anchor links to specs/superchain-upgrades.html
Copy link

netlify bot commented Sep 9, 2024

Deploy Preview for docs-optimism ready!

Name Link
🔨 Latest commit 9f5e206
🔍 Latest deploy log https://app.netlify.com/sites/docs-optimism/deploys/66e05d503e286e0008bf80d6
😎 Deploy Preview https://deploy-preview-890--docs-optimism.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@pauldowman
Copy link
Contributor Author

So questions (some are about the specs repo):

  1. Should this page in dcos be linking to the specific hard fork page in specs? Right now it has a lot of links to the superchain upgrades page.
  2. Should there be a PR on specs to update the Granite page?
  3. Should it be linked in the sidebar? I see there are other hard fork pages that also aren't linked there
  4. The superchain upgrades page in specs also has a footnote for Granite that "Governance vote and veto still have to pass".

@pauldowman pauldowman marked this pull request as ready for review September 10, 2024 04:23
@pauldowman pauldowman requested a review from a team as a code owner September 10, 2024 04:23
Copy link
Contributor

coderabbitai bot commented Sep 10, 2024

Walkthrough

The pull request introduces updates to the network-upgrades.mdx documentation, restructuring upgrade entries to include new links to detailed overviews for each upgrade. The order of upgrades has been adjusted, with the Granite upgrade now listed first. Each entry has been reformatted to include brief descriptions of features and enhancements, ensuring the documentation reflects the latest governance approvals and technical specifications.

Changes

File Path Change Summary
pages/builders/node-operators/network-upgrades.mdx Restructured upgrade entries with new links to specific overviews, adjusted order of upgrades, and added brief descriptions for each upgrade.

Possibly related PRs

Tip

Announcements
  • The review status is no longer posted as a separate comment when there are no actionable or nitpick comments. In such cases, the review status is included in the walkthrough comment.
  • We have updated our review workflow to use the Anthropic's Claude family of models. Please share any feedback in the discussion post on our Discord.
  • Possibly related PRs: Walkthrough comment now includes a list of potentially related PRs to help you recall past context. Please share any feedback in the discussion post on our Discord.
  • Suggested labels: CodeRabbit can now suggest labels by learning from your past PRs in the walkthrough comment. You can also provide custom labeling instructions in the UI or configuration file.
  • Possibly related PRs, automatic label suggestions based on past PRs, learnings, and possibly related issues require data opt-in (enabled by default).

Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 7a04d96 and 9f5e206.

Files selected for processing (1)
  • pages/builders/node-operators/network-upgrades.mdx (3 hunks)
Additional context used
Path-based instructions (1)
pages/builders/node-operators/network-upgrades.mdx (1)

Pattern **/*.mdx: "ALWAYS review Markdown content THOROUGHLY with the following criteria:

  • Use proper nouns in place of personal pronouns like 'We' and 'Our' to maintain consistency in communal documentation.
  • Avoid gender-specific language and use the imperative form.
  • Monitor capitalization for emphasis. Use bold for prominence instead of all caps or italics.
  • Ensure proper nouns are capitalized in sentences.
  • Apply the Oxford comma.
  • Use proper title case for headers, buttons, tab names, page names, and links. Sentence case should be used for body content and short phrases, even in links.
  • Use correct spelling and grammar at all times (IMPORTANT).
    "
LanguageTool
pages/builders/node-operators/network-upgrades.mdx

[uncategorized] ~34-~34: Possible missing comma found.
Context: ...e the summaries of each network upgrade changes ordered by the most recent activation....

(AI_HYDRA_LEO_MISSING_COMMA)

Additional comments not posted (4)
pages/builders/node-operators/network-upgrades.mdx (4)

24-30: LGTM!

The changes to the network upgrades table are approved:

  • The Granite upgrade has been added with the correct link.
  • The links for other upgrades have been updated to point directly to their respective overview pages, improving navigation.

37-43: Looks good!

The Granite upgrade summary is well-written and informative:

  • The key changes are clearly listed using bullet points.
  • The links to the relevant specification pages provide additional details.

Line range hint 44-57: Great job!

The Fjord upgrade summary is comprehensive and well-structured:

  • The key changes are organized into clear categories (precompile, compression, gas pricing, protocol parameters).
  • The bullet points and sub-points make it easy to understand the scope of the upgrade.
  • The links to the specification pages allow readers to dive into the details.
Tools
LanguageTool

[uncategorized] ~34-~34: Possible missing comma found.
Context: ...e the summaries of each network upgrade changes ordered by the most recent activation....

(AI_HYDRA_LEO_MISSING_COMMA)


Line range hint 59-113: Excellent work!

The summaries for the Ecotone, Delta, and Canyon upgrades are top-notch:

  • Each upgrade's key changes are clearly outlined, with relevant EIPs and specification links.
  • The Ecotone summary is particularly detailed, covering changes in the execution layer, consensus layer, and data availability.
  • The Delta and Canyon summaries concisely highlight the main features and activation mechanisms.

The consistent structure and use of formatting make the information easy to digest.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@pauldowman
Copy link
Contributor Author

I made a PR in specs to add the Granite page to the sidebar and changed all hard fork specs links to go to their details page: ethereum-optimism/specs#367

@pauldowman pauldowman force-pushed the pauldowman/add-granite-to-network-upgrades-page branch from ff8eba4 to cb0b670 Compare September 10, 2024 04:27
@pauldowman pauldowman force-pushed the pauldowman/add-granite-to-network-upgrades-page branch from cb0b670 to 42493fa Compare September 10, 2024 04:28
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (1)
pages/builders/node-operators/network-upgrades.mdx (1)

26-26: Suggestion: Fix cell padding inconsistencies in the upgrade activation table.

The lint tool has flagged two warnings regarding inconsistent cell padding in the upgrade activation table:

  1. Line 26: Cell should be padded with 1 space, not 12
  2. Line 28: Cell should be padded with 1 space, not 12

While these inconsistencies do not affect the functionality or clarity of the content, maintaining consistent formatting can improve the overall readability and maintainability of the documentation.

Consider updating the cell padding to ensure consistency throughout the table:

-| [Granite](https://specs.optimism.io/protocol/granite/overview.html)            | (https://gov.optimism.io/t/upgrade-proposal-10-granite-network-upgrade/8733)     | Wed Sep 11 16:00:01 UTC 2024 (`1726070401`)                                                                                             | Mon Aug 12 16:00:00 UTC 2024 (`1723478400`)                                                                                             |
+| [Granite](https://specs.optimism.io/protocol/granite/overview.html) | (https://gov.optimism.io/t/upgrade-proposal-10-granite-network-upgrade/8733) | Wed Sep 11 16:00:01 UTC 2024 (`1726070401`) | Mon Aug 12 16:00:00 UTC 2024 (`1723478400`) |

-| [Ecotone](https://specs.optimism.io/protocol/ecotone/overview.html)            | (https://gov.optimism.io/t/upgrade-proposal-5-ecotone-network-upgrade/7669)      | Thu Mar 14 00:00:01 UTC 2024 (`1710374401`)                                                                                             | Wed Feb 21 17:00:00 UTC 2024 (`1708534800`)                                                                                             |
+| [Ecotone](https://specs.optimism.io/protocol/ecotone/overview.html) | (https://gov.optimism.io/t/upgrade-proposal-5-ecotone-network-upgrade/7669) | Thu Mar 14 00:00:01 UTC 2024 (`1710374401`) | Wed Feb 21 17:00:00 UTC 2024 (`1708534800`) |

Also applies to: 28-28

Tools
GitHub Check: lint

[warning] 26-26:
Cell should be padded with 1 space, not 12

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (1)
pages/builders/node-operators/network-upgrades.mdx (1)

34-34: Improve clarity by adding a comma and preposition.

To enhance the clarity of the sentence, consider making the following changes:

  • Add a comma after "upgrade changes" to separate the two clauses.
  • Add the preposition "in" before "order" to specify the relationship between the changes and the activation order.

Here's the suggested revision:

-These are the summary of each network upgrade changes order by the most recent
+These are the summary of each network upgrade changes, in order by the most recent

Making these small adjustments will improve the readability and grammatical correctness of the sentence.

Tools
LanguageTool

[uncategorized] ~34-~34: Possible missing comma found.
Context: ...are the summary of each network upgrade changes order by the most recent activation. Th...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~34-~34: Possible missing preposition found.
Context: ...summary of each network upgrade changes order by the most recent activation. These ar...

(AI_HYDRA_LEO_MISSING_IN)

@sbvegan
Copy link
Collaborator

sbvegan commented Sep 10, 2024

Hey @pauldowman thanks for opening this PR. Our team will take a look but we're a short staffed this week so it might take a couple days

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (1)
pages/builders/node-operators/network-upgrades.mdx (1)

34-35: Add a comma to improve readability.

Consider adding a comma after "upgrade" to separate the two parts of the sentence:

-These are the summaries of each network upgrade changes ordered by the most
+These are the summaries of each network upgrade, changes ordered by the most
Tools
LanguageTool

[uncategorized] ~34-~34: Possible missing comma found.
Context: ...e the summaries of each network upgrade changes ordered by the most recent activation....

(AI_HYDRA_LEO_MISSING_COMMA)

@pauldowman
Copy link
Contributor Author

Granite goes live tomorrow, and the contracts will be upgraded today, there will be comms about it today and I think we really should have the docs updated if at all possible! The diff is pretty tiny.

There are failing checks for broken links but most weren't touched in this PR. The new one is the Granite specs page which will exist after this PR is merged: ethereum-optimism/specs#367

@bradleycamacho
Copy link
Member

Hey @pauldowman, went ahead and approved this! Looks great to me and it seems like most of your questions have been resolved with your PR to the specs repo. Let me know if you need anymore assistance.

For future reference, GH can be a bit noisy and hard to parse through. If there's ever something time sensitive like this that we haven't gotten to, feel free to ping us in the #docs slack channel. Thanks!

@bradleycamacho
Copy link
Member

We can merge once the specs PR is merged

@bradleycamacho bradleycamacho self-assigned this Sep 10, 2024
@pauldowman
Copy link
Contributor Author

pauldowman commented Sep 10, 2024

Thanks @bradleycamacho! The specs PR is merged now. Should I merge this or is that usually for someone on the docs team to do?

@pauldowman pauldowman merged commit ddd1eed into main Sep 10, 2024
7 of 8 checks passed
@pauldowman pauldowman deleted the pauldowman/add-granite-to-network-upgrades-page branch September 10, 2024 22:22
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