Skip to content

[dg] Rename PackageObject* -> PluginObject* #29080

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

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

smackesey
Copy link
Collaborator

@smackesey smackesey commented Apr 7, 2025

Summary & Motivation

Collection of renames of abstractions related to the dg list plugins command.

  • dg list packages -> dg list plugins

  • PackageObjectKey -> PluginObjectKey

  • PackageObjectSnap -> PluginObjectSnap

  • PackageObjectFeatureData -> PluginObjectFeatureData

  • RemotePackageRegistry -> RemotePluginRegistry

How I Tested These Changes

Existing test suite.

Copy link
Collaborator Author

smackesey commented Apr 7, 2025

@smackesey smackesey requested a review from OwenKephart April 8, 2025 13:53
@smackesey smackesey marked this pull request as ready for review April 8, 2025 13:54
@smackesey smackesey requested a review from neverett as a code owner April 8, 2025 13:54
@smackesey smackesey force-pushed the sean/dg/package-object-renames branch from 232a875 to 752f9c4 Compare April 8, 2025 13:55
@smackesey smackesey requested a review from schrockn April 8, 2025 14:00
Copy link
Contributor

@OwenKephart OwenKephart left a comment

Choose a reason for hiding this comment

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

approving but note comments

def _all_packages_object_table(
registry: RemotePackageRegistry, name_only: bool, feature: Optional[PackageObjectFeature]
def _all_plugins_object_table(
registry: RemotePluginRegistry, name_only: bool, feature: Optional[PluginObjectFeature]
) -> Table:
table = DagsterOuterTable(["Package"] if name_only else ["Package", "Objects"])
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be updated to "Plugin"?

Note that that's a slightly annoying change because test_list_commands.py hardcodes the expected output (we should really convert those to snapshot tests to make our lives easier)

)
@dg_global_options
@cli_telemetry_wrapper
def list_packages_command(
def list_plugins_command(
name_only: bool,
package: Optional[str],
Copy link
Contributor

Choose a reason for hiding this comment

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

note the AI's comment here (oops that this is not under test)

@smackesey smackesey force-pushed the sean/dg/package-object-renames branch from 081095c to 7a42174 Compare April 8, 2025 16:09
@smackesey smackesey force-pushed the sean/dg/package-object-renames branch from 7a42174 to 4be0e00 Compare April 8, 2025 16:30
@smackesey smackesey merged commit 71f05ad into master Apr 8, 2025
7 checks passed
@smackesey smackesey deleted the sean/dg/package-object-renames branch April 8, 2025 17:06
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.

2 participants