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

Update CHANGELOG.md for v0.5.2 #1045

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Update CHANGELOG.md for v0.5.2 #1045

merged 1 commit into from
Oct 22, 2024

Conversation

hackerwins
Copy link
Member

@hackerwins hackerwins commented Oct 22, 2024

What this PR does / why we need it:

Update CHANGELOG.md for v0.5.2

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Additional documentation:


Checklist:

  • Added relevant tests or not required
  • Didn't break anything

Summary by CodeRabbit

Release Notes for Version 0.5.2

  • New Features

    • Documents will now be detached automatically when a client is deactivated, improving document management.
  • Updates

    • OpenAPI specifications have been updated to version 0.5.2 across multiple files, enhancing readability and consistency.
    • Version numbers have been incremented in various documentation and configuration files to reflect the new release.
  • Bug Fixes

    • Formatting adjustments made throughout the API documentation for better clarity and consistency.

Copy link

coderabbitai bot commented Oct 22, 2024

Walkthrough

The pull request introduces updates for version 0.5.2, which is currently marked as unreleased. Key changes include the detachment of documents when a client is deactivated and the removal of jstype=string from resources.proto. Additionally, various OpenAPI specifications have been updated to version 0.5.2, with significant formatting improvements across multiple YAML files. The Makefile and Chart.yaml have also been modified to reflect the new version. Overall, the changes enhance the documentation and maintain consistency in the API specifications.

Changes

File Change Summary
CHANGELOG.md Updated for version 0.5.2 with entries for client deactivation and removal of jstype=string.
Makefile Updated YORKIE_VERSION from 0.5.1 to 0.5.2.
api/docs/yorkie.base.yaml Incremented version from v0.5.1 to v0.5.2.
api/docs/yorkie/v1/admin.openapi.yaml Updated to version v0.5.2, made formatting changes, and adjusted server definitions for clarity.
api/docs/yorkie/v1/cluster.openapi.yaml Updated to version v0.5.2, modified server definitions, and changed formatting for consistency.
api/docs/yorkie/v1/resources.openapi.yaml Updated to version v0.5.2, made formatting changes, and adjusted schema references.
api/docs/yorkie/v1/system.openapi.yaml Updated to version v0.5.2, modified server definitions, and changed formatting for consistency.
api/docs/yorkie/v1/yorkie.openapi.yaml Updated to version v0.5.2, made formatting changes, and adjusted server definitions for clarity.
build/charts/yorkie-cluster/Chart.yaml Updated version and appVersion from 0.4.29 to 0.5.2.

Possibly related PRs


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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

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.

Copy link

@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 and nitpick comments (5)
api/docs/yorkie/v1/system.openapi.yaml (1)

291-293: LGTM: Description formatting improvement.

The description for the 'project' field has been reformatted to use multiple lines, improving readability.

Note: There's a TODO comment indicating potential future refactoring of the fields. This should be tracked for future improvements.

Consider creating an issue to track the TODO for replacing fields with types.Project, types.Client, and types.DocumentSummary.

CHANGELOG.md (1)

14-15: Consider using proper Markdown link syntax for the URLs.

Instead of using bare URLs, it's recommended to use Markdown link syntax for better readability and maintainability. For example:

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and Yorkie adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

This change will improve the overall quality of the document and address the MD034 (no-bare-urls) warning from markdownlint.

🧰 Tools
🪛 Markdownlint

14-14: null
Bare URL used

(MD034, no-bare-urls)


15-15: null
Bare URL used

(MD034, no-bare-urls)

api/docs/yorkie/v1/resources.openapi.yaml (1)

Line range hint 16-1752: LGTM: Improved schema definitions with a minor suggestion.

The schema definitions have been significantly improved:

  • $ref references now consistently use double quotes.
  • enum definitions are more readable.
  • additionalProperties: false is consistently applied, enforcing stricter schema validation.
  • Complex types like Operation have a better-organized structure.

These changes enhance the overall quality and consistency of the API specification.

Consider adding descriptions to the individual enum values in yorkie.v1.DocEventType, yorkie.v1.PresenceChange.ChangeType, and yorkie.v1.ValueType to provide more context for API consumers.

api/docs/yorkie/v1/admin.openapi.yaml (2)

18-205: LGTM! Consistent use of double quotes for $ref.

All $ref references in the paths section have been updated to use double quotes instead of single quotes. This change improves consistency throughout the document.

Consider adding a note in the PR description explaining this global change for better context.


Line range hint 1-2238: LGTM! Overall improvements to the OpenAPI specification.

This update to the admin.openapi.yaml file includes several positive changes:

  1. Version update from v0.5.1 to v0.5.2
  2. Consistent use of double quotes for $ref references throughout the file
  3. Improved formatting and structure in various sections (servers, paths, components)
  4. Added descriptions for servers and tags

These changes enhance the readability and consistency of the OpenAPI specification, making it easier to maintain and understand.

Consider adding a brief explanation in the PR description about the global change from single quotes to double quotes for $ref references, as this affects a large portion of the file.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between b9812ea and 8d0ba90.

📒 Files selected for processing (9)
  • CHANGELOG.md (1 hunks)
  • Makefile (1 hunks)
  • api/docs/yorkie.base.yaml (1 hunks)
  • api/docs/yorkie/v1/admin.openapi.yaml (56 hunks)
  • api/docs/yorkie/v1/cluster.openapi.yaml (7 hunks)
  • api/docs/yorkie/v1/resources.openapi.yaml (65 hunks)
  • api/docs/yorkie/v1/system.openapi.yaml (7 hunks)
  • api/docs/yorkie/v1/yorkie.openapi.yaml (50 hunks)
  • build/charts/yorkie-cluster/Chart.yaml (1 hunks)
✅ Files skipped from review due to trivial changes (3)
  • api/docs/yorkie.base.yaml
  • api/docs/yorkie/v1/yorkie.openapi.yaml
  • build/charts/yorkie-cluster/Chart.yaml
🧰 Additional context used
🪛 Markdownlint
CHANGELOG.md

14-14: null
Bare URL used

(MD034, no-bare-urls)


15-15: null
Bare URL used

(MD034, no-bare-urls)

🔇 Additional comments (30)
Makefile (2)

1-1: LGTM: Version update looks good.

The YORKIE_VERSION has been correctly updated from 0.5.1 to 0.5.2. This change is consistent with the PR objectives and the updates mentioned in other files.


1-1: Verified: Version change propagates correctly.

The updated YORKIE_VERSION is correctly used throughout the Makefile:

  1. It's injected into the Go binary via GO_LDFLAGS in the build and build-binaries targets.
  2. It's used for tagging the Docker image in the docker target.

No additional changes are required in the Makefile to accommodate this version update.

To double-check the version usage, you can run:

✅ Verification successful

Verified: Version change propagates correctly.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the usage of YORKIE_VERSION in the Makefile

# Test: Check if the new version is used in GO_LDFLAGS and docker target
grep -n "YORKIE_VERSION" Makefile
grep -n "\${YORKIE_VERSION}" Makefile

Length of output: 461

api/docs/yorkie/v1/cluster.openapi.yaml (11)

3-7: LGTM: Version update and improved description formatting.

The version update to 0.5.2 is consistent with the PR objectives. The multi-line formatting of the description improves readability.


9-12: LGTM: Improved server definitions format.

The server definitions have been updated to use a list format, which improves readability and aligns with OpenAPI best practices. This change also facilitates easier addition of new server definitions in the future.


18-18: LGTM: Consistent use of double quotes in schema references.

The schema references have been updated to use double quotes consistently. This change improves alignment with JSON formatting standards and enhances overall maintainability of the OpenAPI specification.

Also applies to: 21-21, 23-23, 25-25


32-32: LGTM: Consistent formatting in component schema references.

The component schema references have been updated to use double quotes consistently. This change maintains a uniform style throughout the document and aligns with the previous updates to schema references.

Also applies to: 35-35, 42-42, 45-45, 51-51, 54-54


59-77: LGTM: Improved structure of connect.error schema.

The connect.error schema has been reformatted for better readability. The error codes are now listed as enum values, which provides a clear and comprehensive list of possible error codes. This change enhances the overall structure and usability of the error schema.


189-189: LGTM: Updated schema references in ClusterServiceDetachDocumentRequest.

The schema references in the ClusterServiceDetachDocumentRequest have been updated to use the $ref keyword. This change aligns with OpenAPI 3.x standards for referencing schemas and improves the overall structure and maintainability of the specification.

Also applies to: 195-195


212-212: LGTM: Updated timestamp schema references in DocumentSummary.

The schema references for timestamp fields in the DocumentSummary have been updated to use the $ref keyword. This change is consistent with the previous updates to schema references and maintains a uniform style throughout the document. It also improves the overall structure of the DocumentSummary schema.

Also applies to: 218-218, 239-239


268-268: LGTM: Updated timestamp schema references in Project.

The schema references for timestamp fields in the Project schema have been updated to use the $ref keyword. This change is consistent with the previous updates to schema references in other schemas and maintains a uniform style throughout the document. It also improves the overall structure of the Project schema.

Also applies to: 294-294


307-307: LGTM: Updated security scheme format.

The security scheme has been updated to use a list format. This change aligns with OpenAPI 3.x standards for defining security schemes. It improves readability and allows for easier addition of multiple security schemes in the future if needed.


309-310: LGTM: Improved tags section with description.

The tags section has been updated to use a list format, which improves the overall structure and readability. Additionally, a description for the ClusterService tag has been added, providing useful context for the service. These changes enhance the clarity and usability of the OpenAPI specification.


Line range hint 1-310: LGTM: Comprehensive update to OpenAPI specification.

This update to the cluster.openapi.yaml file includes:

  1. Version bump to 0.5.2
  2. Improved formatting and structure throughout the file
  3. Consistent use of double quotes for schema references
  4. Updated schema references to use the $ref keyword
  5. Reformatted server definitions, security schemes, and tags sections

These changes enhance the overall quality, readability, and maintainability of the OpenAPI specification while adhering to OpenAPI 3.x standards. No functional changes or breaking modifications were introduced.

api/docs/yorkie/v1/system.openapi.yaml (8)

3-7: LGTM: Description formatting and version update.

The description's multi-line format improves readability, and the version update to 0.5.2 is consistent with the PR objective.


9-12: LGTM: Server definitions formatting.

The server definitions have been reformatted to use a list structure, which improves readability and aligns with OpenAPI best practices.


18-18: LGTM: Reference formatting in paths section.

The references have been updated to use double quotes, which is more standard in JSON-like structures. The tag for yorkie.v1.SystemService has been reformatted to use a list structure, improving consistency and readability.

Also applies to: 21-21, 23-23, 25-25


32-32: LGTM: Reference formatting in components section.

The references in the components section have been updated to use double quotes, improving consistency and aligning with JSON standards.

Also applies to: 35-35, 42-42, 45-45, 51-51, 54-54


59-79: LGTM: connect.error schema improvements.

The connect.error schema has been improved with:

  1. An updated and better-formatted description.
  2. A list structure for error codes, which is more consistent with OpenAPI best practices.

These changes enhance the readability and maintainability of the error schema.


184-184: LGTM: Reference formatting in various schemas.

References to google.protobuf.Timestamp and other schemas have been updated to use double quotes, improving consistency across the file and aligning with JSON standards.

Also applies to: 190-190, 211-211, 240-240, 266-266, 283-283, 289-289


309-309: LGTM: Security and tags section formatting.

The security scheme for ApiKeyAuth and the tags section for yorkie.v1.SystemService have been reformatted to use a list structure. This improves consistency with the rest of the file and aligns with OpenAPI best practices.

Also applies to: 311-312


Line range hint 1-312: Overall assessment: LGTM

This update successfully achieves the PR objective of updating the OpenAPI specification to version 0.5.2. The changes include:

  1. Version update from 0.5.1 to 0.5.2
  2. Improved formatting throughout the file, enhancing readability
  3. Consistent use of double quotes for references
  4. Adoption of list structures for server definitions, error codes, and tags
  5. Multi-line formatting for descriptions

These changes improve the overall quality and consistency of the OpenAPI specification, making it easier to read and maintain. The update aligns with OpenAPI best practices and JSON standards.

CHANGELOG.md (1)

10-15: LGTM! The new version entry follows the established format.

The new version 0.5.2 is correctly added as unreleased with a date. The changes are properly categorized under the "Changed" section, which is consistent with the Keep a Changelog format.

🧰 Tools
🪛 Markdownlint

14-14: null
Bare URL used

(MD034, no-bare-urls)


15-15: null
Bare URL used

(MD034, no-bare-urls)

api/docs/yorkie/v1/resources.openapi.yaml (4)

1-7: LGTM: Version update and formatting improvements.

The API version has been correctly updated to v0.5.2, and the description has been reformatted for better readability. These changes are consistent with the PR objectives and improve the overall structure of the file.


9-12: LGTM: Improved server configuration format.

The servers section has been updated to use a list format, which is more flexible and aligns with OpenAPI best practices. The inclusion of both production and local server configurations is beneficial for different environments.


Line range hint 1755-1761: LGTM: Proper security scheme definition and usage.

The security scheme ApiKeyAuth is correctly defined using the apiKey type. The global security requirement has been updated to use a list format, which is more consistent with OpenAPI standards. These changes ensure proper authentication configuration for the API.


Line range hint 1-1761: Overall LGTM: Successful update to v0.5.2 with improved specification structure.

This update successfully achieves the following:

  1. Updates the API version to v0.5.2.
  2. Improves the overall structure and consistency of the OpenAPI specification.
  3. Enhances readability through better formatting and organization.
  4. Strengthens schema definitions with stricter validation rules.
  5. Aligns the specification more closely with OpenAPI best practices.

These changes will benefit API consumers by providing a more accurate and easier-to-use API documentation.

api/docs/yorkie/v1/admin.openapi.yaml (4)

3-7: LGTM! API information updated correctly.

The API version has been updated to v0.5.2, and the description has been reformatted for better readability. These changes are consistent with the overall update.


9-12: LGTM! Server definitions improved.

The server definitions have been reformatted to use a list format, and descriptions have been added for each server. This improves readability and provides more context.


Line range hint 206-2226: LGTM! Components section updated consistently.

The components section has been updated with consistent use of double quotes for $ref references, matching the changes in the paths section. Minor formatting improvements have also been made, enhancing overall readability.


2235-2238: LGTM! Security scheme and tags updated.

The security scheme definition has been modified to use a list format, consistent with other formatting updates in the document. The tags section has also been updated with a clear description for the AdminService.

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.32%. Comparing base (5e9d925) to head (8d0ba90).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1045   +/-   ##
=======================================
  Coverage   48.32%   48.32%           
=======================================
  Files          80       80           
  Lines       11410    11410           
=======================================
  Hits         5514     5514           
  Misses       5354     5354           
  Partials      542      542           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hackerwins hackerwins merged commit cc76426 into main Oct 22, 2024
5 checks passed
@hackerwins hackerwins deleted the 0.5.2 branch October 22, 2024 04:50
hackerwins added a commit that referenced this pull request Oct 22, 2024
@coderabbitai coderabbitai bot mentioned this pull request Nov 7, 2024
2 tasks
@coderabbitai coderabbitai bot mentioned this pull request Nov 22, 2024
3 tasks
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.

1 participant