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

Add GCS_READ_BUCKET type to the template parameter type #1513

Conversation

akashorabek
Copy link
Contributor

Add GCS_READ_BUCKET type to the template parameter type

@akashorabek
Copy link
Contributor Author

R: @an2x

Copy link

codecov bot commented May 9, 2024

Codecov Report

Attention: Patch coverage is 88.23529% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 41.04%. Comparing base (45f4eb8) to head (64faa80).
Report is 99 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1513      +/-   ##
============================================
+ Coverage     40.93%   41.04%   +0.11%     
- Complexity     2815     2827      +12     
============================================
  Files           740      743       +3     
  Lines         42875    42979     +104     
  Branches       4585     4587       +2     
============================================
+ Hits          17549    17639      +90     
- Misses        23824    23838      +14     
  Partials       1502     1502              
Components Coverage Δ
spanner-templates 60.02% <ø> (+0.21%) ⬆️
spanner-import-export 65.54% <ø> (-0.07%) ⬇️
spanner-live-forward-migration 73.64% <ø> (+0.06%) ⬆️
spanner-live-reverse-replication 48.66% <ø> (+0.15%) ⬆️
spanner-bulk-migration 78.03% <ø> (+0.34%) ⬆️
Files Coverage Δ
...gle/cloud/teleport/metadata/TemplateParameter.java 0.00% <ø> (ø)
...le/cloud/teleport/metadata/util/MetadataUtils.java 41.42% <100.00%> (+1.72%) ⬆️
.../teleport/plugin/model/ImageSpecParameterType.java 100.00% <100.00%> (ø)
...loud/teleport/plugin/model/ImageSpecParameter.java 32.59% <85.71%> (+2.13%) ⬆️

... and 22 files with indirect coverage changes

@Amar3tto Amar3tto force-pushed the BIDI-103-Add-GCS-READ-BUCKET-type branch from e85f9de to efd863f Compare May 20, 2024 10:17
Copy link
Contributor

@damccorm damccorm left a comment

Choose a reason for hiding this comment

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

Just had one comment which applies across the board, otherwise this looks good. I'll hold off on reviewing similar PRs until that's addressed, I think we should be able to get them in pretty quickly at that point

@@ -30,6 +30,9 @@ public enum ImageSpecParameterType {
/** Cloud Storage folder to read. */
GCS_READ_FOLDER,

/** Cloud Storage bucket to read. */
GCS_READ_BUCKET,

Copy link
Contributor

Choose a reason for hiding this comment

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

Could we please add a basic test like

ImageSpecParameter inputKafkaTopic = metadata.getParameter("inputKafkaTopic").get();
?

Copy link
Contributor

Choose a reason for hiding this comment

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

This applies to all of these PRs (cc @Amar3tto )

Copy link
Contributor

Choose a reason for hiding this comment

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

Done (for all PRs)

Copy link
Contributor

@damccorm damccorm left a comment

Choose a reason for hiding this comment

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

Thanks!

@damccorm damccorm added the Google LGTM Approval of a pull request to be merged into the repository label May 22, 2024
@copybara-service copybara-service bot merged commit 3b391e2 into GoogleCloudPlatform:main May 22, 2024
12 checks passed
Polber pushed a commit to Polber/DataflowTemplates that referenced this pull request May 22, 2024
…-GCS-READ-BUCKET-type

PiperOrigin-RevId: 636276594
Polber pushed a commit to Polber/DataflowTemplates that referenced this pull request May 22, 2024
…-GCS-READ-BUCKET-type

PiperOrigin-RevId: 636276594
Polber pushed a commit to Polber/DataflowTemplates that referenced this pull request May 22, 2024
…-GCS-READ-BUCKET-type

PiperOrigin-RevId: 636276594
Polber pushed a commit to Polber/DataflowTemplates that referenced this pull request May 22, 2024
…-GCS-READ-BUCKET-type

PiperOrigin-RevId: 636276594
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Google LGTM Approval of a pull request to be merged into the repository size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants