Skip to content

Create/Update route options#1339

Open
theghost5800 wants to merge 2 commits intocloudfoundry:mainfrom
theghost5800:routeOptions
Open

Create/Update route options#1339
theghost5800 wants to merge 2 commits intocloudfoundry:mainfrom
theghost5800:routeOptions

Conversation

@theghost5800
Copy link
Copy Markdown
Contributor

Refactor _RouteOptions class to handle added options in future

Refactor _RouteOptions class to handle added options in future
@theghost5800
Copy link
Copy Markdown
Contributor Author

@Kehrlann Is it necessary something else to be added before code review to be done?

@Kehrlann Kehrlann self-requested a review April 7, 2026 08:04
Copy link
Copy Markdown
Contributor

@Kehrlann Kehrlann left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution.
Could you please also add an integration test, even if you can't run it?


/**
* The loadbalancing
* All route options, including unknown future keys.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That's not a pattern we use anywhere, I don't think we should introduce it unless we have a very good reason to have it for this one specific sub-resource.

Otherwise, let's just add the hashes for now.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The reason why this pattern is used is because the client library doesn't keep up well with all new features introduced in Cloudfoundry API and it's annoying that consumers of cf-java-client library cannot use latest available features until it's contributed and released. So if there is an option to make some logic more generic, I think it's better for all users. What do you think?

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.

2 participants