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

Change getId() to id() #704

Closed
Tracked by #598
mikhailshilkov opened this issue Jun 28, 2022 · 5 comments · Fixed by #766
Closed
Tracked by #598

Change getId() to id() #704

mikhailshilkov opened this issue Jun 28, 2022 · 5 comments · Fixed by #766
Assignees
Labels
area/languages kind/enhancement Improvements or new features language/java resolution/fixed This issue was fixed
Milestone

Comments

@mikhailshilkov
Copy link
Member

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

We renamed all property getters to remove get from the name, but forgot to do the same for the getId() method:

public Output<String> getId() {
return this.id;
}

We should go ahead and do that. It's a breaking change but we now is the best time we can do it yet.

Affected area/feature

@pawelprazak
Copy link
Contributor

FYI this might require docs, example and templates changes.

@mikhailshilkov
Copy link
Member Author

Sure, that's reasonable

@pawelprazak
Copy link
Contributor

As it turns out this impacts codegen with the name collisions, will adjust the codegen accordingly.

@pawelprazak
Copy link
Contributor

Note to self, remember to remove in follow up:

  • deprecated old getters (left in place for backward compatibility)
  • remove old getter names from isReservedResourceMethod in codegen

pawelprazak added a commit that referenced this issue Jul 27, 2022
- remove get prefix
- update codegen
- mark old getters as deprecated, do not delete

Fix #704
pawelprazak added a commit that referenced this issue Jul 27, 2022
pawelprazak added a commit that referenced this issue Jul 27, 2022
pawelprazak added a commit that referenced this issue Jul 27, 2022
@pawelprazak
Copy link
Contributor

Added a follow up issue to cleanup the deprecated methods: #769

pawelprazak added a commit that referenced this issue Jul 28, 2022
pawelprazak added a commit that referenced this issue Aug 11, 2022
- remove get prefix
- update codegen
- mark old getters as deprecated, do not delete

Fix #704
pawelprazak added a commit that referenced this issue Aug 11, 2022
pawelprazak added a commit that referenced this issue Aug 11, 2022
pawelprazak added a commit that referenced this issue Aug 11, 2022
pawelprazak added a commit that referenced this issue Aug 11, 2022
- remove get prefix
- update codegen
- mark old getters as deprecated, do not delete

Fix #704
pawelprazak added a commit that referenced this issue Aug 11, 2022
pawelprazak added a commit that referenced this issue Aug 11, 2022
pawelprazak added a commit that referenced this issue Aug 11, 2022
pawelprazak added a commit that referenced this issue Aug 11, 2022
- remove get prefix
- update codegen
- mark old getters as deprecated, do not delete

Fix #704
pawelprazak added a commit that referenced this issue Aug 11, 2022
pawelprazak added a commit that referenced this issue Aug 11, 2022
pawelprazak added a commit that referenced this issue Aug 11, 2022
pawelprazak added a commit that referenced this issue Aug 12, 2022
- remove get prefix
- add _ suffix
- update codegen
- mark old getters as deprecated, do not delete

Fix #704

Rename getters on Resource
pawelprazak added a commit that referenced this issue Aug 12, 2022
@mikhailshilkov mikhailshilkov modified the milestones: 0.76, 0.77 Aug 15, 2022
pawelprazak added a commit that referenced this issue Aug 17, 2022
- remove get prefix
- add _ suffix
- update codegen
- mark old getters as deprecated, do not delete

Fix #704
pawelprazak added a commit that referenced this issue Aug 17, 2022
pawelprazak added a commit that referenced this issue Aug 18, 2022
@pulumi-bot pulumi-bot added the resolution/fixed This issue was fixed label Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/languages kind/enhancement Improvements or new features language/java resolution/fixed This issue was fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants