Skip to content

Fixes duplicated Id suffix in indexers.#4547

Merged
andrueastman merged 1 commit intomainfrom
namingTests
Apr 25, 2024
Merged

Fixes duplicated Id suffix in indexers.#4547
andrueastman merged 1 commit intomainfrom
namingTests

Conversation

@andrueastman
Copy link
Contributor

@andrueastman andrueastman commented Apr 24, 2024

Fixes #4519

This PR is a follow up to #4174 which deduplicates path parameters and adds the -id suffix to the indexers. However, in the event that the indexer ends up with the id suffix without the -, downstream refiners will end up appending the two to result with duplicated Id suffix.

This PR therefore adds an attempt to cleanup the id suffix before appending the -id suffix so that an indexer like groupId will now be changed to group-id rather than groupId-id.

@andrueastman andrueastman mentioned this pull request Apr 24, 2024
@sonarqubecloud
Copy link

@andrueastman andrueastman marked this pull request as ready for review April 25, 2024 09:26
@andrueastman andrueastman requested a review from a team as a code owner April 25, 2024 09:26
@andrueastman andrueastman enabled auto-merge April 25, 2024 09:26
@andrueastman andrueastman changed the title Validation of #4519 Fixes duplicated Id suffix in indexers. Apr 25, 2024
@andrueastman andrueastman merged commit a5aa344 into main Apr 25, 2024
@andrueastman andrueastman deleted the namingTests branch April 25, 2024 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[Go] method naming

2 participants