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

[dagster-aws] delete dummy Pipes classes #23441

Merged

Conversation

danielgafni
Copy link
Contributor

@danielgafni danielgafni commented Aug 6, 2024

Summary & Motivation

Deleting dummy Pipes classes from AWS Pipes. These classes didn't provide any functionality and their introduction was questionable from the start.

Context:

I decided to keep PipesGlueLambdaEventContextInjector, because unlike the the other classes, it's actually used for a unique purpose: injecting variables into Lambda event input (it might be a bit confusing because it inherits from PipesEnvContextInjector but doesn't actually do anything with environment variables).

@schrockn let me know if you think if it makes sense

How I Tested These Changes

Nothing was really using these classes

Copy link
Contributor Author

danielgafni commented Aug 6, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @danielgafni and the rest of your teammates on Graphite Graphite

@danielgafni danielgafni requested a review from cmpadden August 6, 2024 15:56
@danielgafni danielgafni changed the title delete dummy classes [dagster-aws] delete dummy Pipes classes Aug 6, 2024
@schrockn
Copy link
Member

schrockn commented Aug 6, 2024

Curious to hear what @cmpadden thinks, but I think these wrapper classes actually obscure what is actually happening. If we imagine the implementations diverging more, that is another thing. But I think we should be explicit that we are fetching logs from CloudWatch or injecting context via S3 in a standardized way in these cases.

@danielgafni danielgafni force-pushed the 08-06-delete_dummy_classes branch from 94be632 to 14cb174 Compare August 6, 2024 16:00
@danielgafni danielgafni marked this pull request as ready for review August 6, 2024 16:01
@danielgafni danielgafni requested a review from schrockn August 6, 2024 16:01
@graphite-app graphite-app bot added the area: docs Related to documentation in general label Aug 6, 2024
@graphite-app graphite-app bot requested a review from erinkcochran87 August 6, 2024 16:02
@danielgafni danielgafni force-pushed the pipes-cloudwatch-message-reader branch from dc0da1c to cf82b96 Compare August 6, 2024 16:17
@cmpadden
Copy link
Contributor

cmpadden commented Aug 6, 2024

Curious to hear what @cmpadden thinks, but I think these wrapper classes actually obscure what is actually happening. If we imagine the implementations diverging more, that is another thing. But I think we should be explicit that we are fetching logs from CloudWatch or injecting context via S3 in a standardized way in these cases.

I'm in agreement -- I don't see the benefit of the wrapper classes in their current form. It's more clear to have the full context of where logs are being fetched without the added layer of abstraction.

@danielgafni danielgafni force-pushed the pipes-cloudwatch-message-reader branch from cf82b96 to 6021a9f Compare August 7, 2024 13:47
@danielgafni
Copy link
Contributor Author

Seems like this is good to go then?

@schrockn any idea why graphite doesn't propagate the pyright error fix from #23353 to this branch? I tried gt restack but it doesn't seem to help

@schrockn
Copy link
Member

schrockn commented Aug 7, 2024

No idea on your graphite issue.

Were these public or in docs? Do we need to go through a deprecation cycle?

@cmpadden
Copy link
Contributor

cmpadden commented Aug 7, 2024

Seems like this is good to go then?

@schrockn any idea why graphite doesn't propagate the pyright error fix from #23353 to this branch? I tried gt restack but it doesn't seem to help

You may need to do a gt get -- I'm by no means a graphite guru, but that's been helping me with rebase issues.

@cmpadden cmpadden force-pushed the pipes-cloudwatch-message-reader branch from 6021a9f to 89ec8ce Compare August 7, 2024 15:21
@cmpadden cmpadden force-pushed the 08-06-delete_dummy_classes branch from 14cb174 to 679b34c Compare August 7, 2024 15:21
@danielgafni
Copy link
Contributor Author

Were these public or in docs? Do we need to go through a deprecation cycle?

They weren't.

Also, the Glue client is marked as Experimental.

Copy link
Member

@schrockn schrockn left a comment

Choose a reason for hiding this comment

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

Great!

@danielgafni danielgafni force-pushed the pipes-cloudwatch-message-reader branch from 89ec8ce to 3cf6d49 Compare August 7, 2024 15:39
@danielgafni danielgafni force-pushed the 08-06-delete_dummy_classes branch from 679b34c to 03e7113 Compare August 7, 2024 16:15
@danielgafni danielgafni force-pushed the pipes-cloudwatch-message-reader branch from 3cf6d49 to af7fce7 Compare August 7, 2024 19:52
@danielgafni danielgafni force-pushed the 08-06-delete_dummy_classes branch from 03e7113 to c525f3d Compare August 7, 2024 19:53
@danielgafni danielgafni force-pushed the pipes-cloudwatch-message-reader branch from af7fce7 to afe07d1 Compare August 8, 2024 09:01
@danielgafni danielgafni force-pushed the pipes-cloudwatch-message-reader branch from afe07d1 to b9a5c95 Compare August 8, 2024 14:04
@danielgafni danielgafni force-pushed the 08-06-delete_dummy_classes branch from c525f3d to 3a2f693 Compare August 8, 2024 15:05
@danielgafni danielgafni merged commit e22ac4e into pipes-cloudwatch-message-reader Aug 8, 2024
2 checks passed
@danielgafni danielgafni deleted the 08-06-delete_dummy_classes branch August 8, 2024 15:53
danielgafni added a commit that referenced this pull request Aug 8, 2024
## Summary & Motivation

Deleting dummy Pipes classes from AWS Pipes. These classes didn't
provide any functionality and their introduction was questionable from
the start.

Context:
-
#23353 (comment)
- #22968

I decided to keep `PipesGlueLambdaEventContextInjector`, because unlike
the the other classes, it's actually used for a unique purpose:
injecting variables into Lambda event input (it might be a bit confusing
because it inherits from `PipesEnvContextInjector` but doesn't actually
do anything with environment variables).

@schrockn let me know if you think if it makes sense 

## How I Tested These Changes

Nothing was really using these classes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs Related to documentation in general
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants