8000 feat(SpringGen): adding extra annotations at the `SpringComposer` step for all Spring classes generated by zhumin8 · Pull Request #1062 · googleapis/sdk-platform-java · GitHub
[go: up one dir, main page]

Skip to content

feat(SpringGen): adding extra annotations at the SpringComposer step for all Spring classes generated #1062

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 5 commits into from
Nov 2, 2022

Conversation

zhumin8
Copy link
Contributor
@zhumin8 zhumin8 commented Oct 14, 2022

this pr:

  • adds a @BetaApi annotation for each class composed in SpringComposer
  • also moves the @Generated("by gapic-generator-java") annotation to SpringComposer for consistency. (this annotation was missing for the properties class composer.)

Updating annotations in SpringComposer level for the ones that applies to all classes makes it easier for future changes when needed.

@zhumin8 zhumin8 added the spring pr that's related to spring code gen, intend to merge into autoconfig-gen-draft2 branch. label Oct 14, 2022
Copy link
Contributor
@emmileaf emmileaf left a comment

Choose a reason for hiding this comment

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

LGTM! A couple of curiosities on the BetaApi annotation:

  • Would it be helpful to provide a context string, like @BetaApi(“Autogenerated Spring autoconfiguration is not yet stable”)?
  • Assuming this blanket BetaApi annotation will eventually be removed here: would we only intend to support Spring autoconfig for stable API client libraries, or could there be cases where this annotation is needed to distinguish such things from upstream?

@zhumin8
Copy link
Contributor Author
zhumin8 commented Oct 17, 2022
  • Yes, that's a good idea. I'll add a context string to say this is experimental.
  • This can be open for discussions, and can be done both ways. but I think it be reasonable to start out with stable ones.

@sonarqubecloud
Copy link
sonarqubecloud bot commented Nov 2, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor
@diegomarquezp diegomarquezp left a comment

Choose a reason for hiding this comment

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

LGTM!

@zhumin8 zhumin8 marked this pull request as ready for review November 2, 2022 19:18
@zhumin8 zhumin8 requested review from a team as code owners November 2, 2022 19:18
@zhumin8 zhumin8 merged commit 0019265 into autoconfig-gen-draft2 Nov 2, 2022
@zhumin8 zhumin8 deleted the add-beta-annotation branch November 2, 2022 19:19
diegomarquezp pushed a commit that referenced this pull request Nov 2, 2022
…p for all Spring classes generated (#1062)

this pr:
- adds a @BetaApi annotation for each class composed in SpringComposer
- also moves the @generated("by gapic-generator-java") annotation to SpringComposer for consistency. (this annotation was missing for the properties class composer.)
- Updating annotations in SpringComposer level for the ones that applies to all classes makes it easier for future changes when needed.
diegomarquezp added a commit that referenced this pull request Nov 3, 2022
* feat(SpringGen): adding extra annotations at the `SpringComposer` step for all Spring classes generated (#1062)

this pr:
- adds a @BetaApi annotation for each class composed in SpringComposer
- also moves the @generated("by gapic-generator-java") annotation to SpringComposer for consistency. (this annotation was missing for the properties class composer.)
- Updating annotations in SpringComposer level for the ones that applies to all classes makes it easier for future changes when needed.

* fix(test): remove wrong files from rebase action

* fix(format): linting

* fix(license): add license header to prop comm comp

* fix(test): restore ComposerTest

* fix: format files

Co-authored-by: Min Zhu <zhumin@google.com>
suztomo pushed a commit that referenced this pull request Mar 21, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [org.easymock:easymock](http://easymock.org) ([source](https://togithub.com/easymock/easymock)) | `5.0.1` -> `5.1.0` | [![age](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/5.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/5.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/5.1.0/compatibility-slim/5.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/5.1.0/confidence-slim/5.0.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-core).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4yNC4wIiwidXBkYXRlZEluVmVyIjoiMzQuMjQuMCJ9-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spring pr that's related to spring code gen, intend to merge into autoconfig-gen-draft2 branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0