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

Feat: add type filter option #5789

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

iyear
Copy link
Contributor

@iyear iyear commented Apr 3, 2023

Description of your changes

Part of #5364

cuegen previously ignored the generation of field and embedded struct by json tag, now we need type filter to ignore the generation of top struct. This will be used by provider-gen to filter out the required structs, such as providers.Params[T] and providers.Returns[T]

I have:

  • Read and followed KubeVela's contribution process.
  • Related Docs updated properly. In a new feature or configuration option, an update to the documentation is necessary.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Unit tests

Special notes for your reviewer

Signed-off-by: iyear <ljyngup@gmail.com>
@github-advanced-security
Copy link

You have successfully added a new Trivy configuration .github/workflows/trivy-scan.yml:images. As part of the setup process, we have scanned this repository and found 9 existing alerts. Please check the repository Security tab to see all alerts.

@codecov
Copy link

codecov bot commented Apr 3, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.08 ⚠️

Comparison is base (52b1f20) 61.72% compared to head (d57888e) 61.65%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5789      +/-   ##
==========================================
- Coverage   61.72%   61.65%   -0.08%     
==========================================
  Files         217      217              
  Lines       30711    30711              
==========================================
- Hits        18957    18934      -23     
- Misses      10017    10034      +17     
- Partials     1737     1743       +6     
Flag Coverage Δ
core-unittests 55.79% <ø> (-0.05%) ⬇️
e2e-multicluster-test 25.73% <ø> (+0.08%) ⬆️
e2e-rollout-tests 22.25% <ø> (-0.02%) ⬇️
e2etests 27.97% <ø> (-0.20%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 12 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Somefive Somefive merged commit 06eb414 into kubevela:master Apr 4, 2023
26 checks passed
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.

None yet

2 participants