Skip to content

Conversation

@tiyash-basu-frequenz
Copy link
Contributor

@tiyash-basu-frequenz tiyash-basu-frequenz commented Jun 13, 2025

This commit:

  • Renames the directory proto/frequenz/api/common/v1/types to proto/frequenz/api/common/v1/type ..
  • .. along with renaming the corresponding package from types to type.

This is done to use the same standards as google, potentially making it more familiar to users.

closes #365

This commit:
- Renames the directory `proto/frequenz/api/common/v1/types` to
  `proto/frequenz/api/common/v1/type` ..
- .. along with renaming the corresponding package from `types` to
  `type`.

This is done to use the same standards as google, potentially making it
more familiar to users.

Signed-off-by: Tiyash Basu <[email protected]>
@tiyash-basu-frequenz tiyash-basu-frequenz self-assigned this Jun 13, 2025
Copilot AI review requested due to automatic review settings June 13, 2025 12:51
@tiyash-basu-frequenz tiyash-basu-frequenz requested a review from a team as a code owner June 13, 2025 12:51
@github-actions github-actions bot added part:docs Affects the documentation part:protobuf Affects the protocol buffer definition files part:python Affects the Python bindings part:tests Affects the unit, integration and performance (benchmarks) tests labels Jun 13, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Align package naming with Google standards by renaming the types directory and package to type.

  • Updated Python test imports to point at the new type package.
  • Adjusted all .proto files’ package declarations and imports from types to type.
  • Added a release notes entry for the rename.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pytests/test_common.py Updated imports from frequenz.api.common.v1.types to .type
proto/frequenz/api/common/v1/type/location.proto Changed package declaration to frequenz.api.common.v1.type
proto/frequenz/api/common/v1/type/interval.proto Changed package declaration to frequenz.api.common.v1.type
proto/frequenz/api/common/v1/type/decimal.proto Changed package declaration to frequenz.api.common.v1.type
proto/frequenz/api/common/v1/microgrid/microgrid.proto Updated import and message reference from types to type
proto/frequenz/api/common/v1/market/price.proto Updated import and field type from types to type
proto/frequenz/api/common/v1/market/power.proto Updated import and field type from types to type
proto/frequenz/api/common/v1/market/energy.proto Updated import and field type from types to type
RELEASE_NOTES.md Documented the package rename from types to type
Comments suppressed due to low confidence (3)

RELEASE_NOTES.md:60

  • The release notes entry still references the old package name types; update it to type to match the change.
+    + `types`:

RELEASE_NOTES.md:60

  • [nitpick] The indentation of this bullet is inconsistent with the surrounding list; consider aligning it with the other top-level entries.
+    + `types`:

pytests/test_common.py:17

  • [nitpick] Consider adding a test for importing the renamed interval_pb2 and interval_pb2_grpc modules to ensure full coverage of the new type package.
def test_module_import_decimal() -> None:

@tiyash-basu-frequenz tiyash-basu-frequenz added this pull request to the merge queue Jun 13, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 4b120ae Jun 13, 2025
6 checks passed
@tiyash-basu-frequenz tiyash-basu-frequenz deleted the 365_types branch June 13, 2025 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:protobuf Affects the protocol buffer definition files part:python Affects the Python bindings part:tests Affects the unit, integration and performance (benchmarks) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename types to type

2 participants