-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Conversation
WalkthroughThe pull request introduces updates for version Changes
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? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this 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
, andyorkie.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:
- Version update from v0.5.1 to v0.5.2
- Consistent use of double quotes for $ref references throughout the file
- Improved formatting and structure in various sections (servers, paths, components)
- 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
📒 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:
- It's injected into the Go binary via
GO_LDFLAGS
in thebuild
andbuild-binaries
targets.- 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}" MakefileLength 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:
- Version bump to 0.5.2
- Improved formatting and structure throughout the file
- Consistent use of double quotes for schema references
- Updated schema references to use the
$ref
keyword- 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:
- An updated and better-formatted description.
- 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: LGTMThis update successfully achieves the PR objective of updating the OpenAPI specification to version 0.5.2. The changes include:
- Version update from 0.5.1 to 0.5.2
- Improved formatting throughout the file, enhancing readability
- Consistent use of double quotes for references
- Adoption of list structures for server definitions, error codes, and tags
- 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 theapiKey
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:
- Updates the API version to v0.5.2.
- Improves the overall structure and consistency of the OpenAPI specification.
- Enhances readability through better formatting and organization.
- Strengthens schema definitions with stricter validation rules.
- 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.
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
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:
Summary by CodeRabbit
Release Notes for Version 0.5.2
New Features
Updates
Bug Fixes