-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
#1228 #1235 #1247 Overloaded AddOcelot method for dynamic FileConfiguration construction #1569
Conversation
@TomPallister Please review. |
@vijay-karavadra Hi Vijay! Could you write a couple of unit/integration tests for your proposed feature, please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, fix minor issues!
Also, I would welcome you to write unit and/or integration test(s).
src/Ocelot/DependencyInjection/ConfigurationBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/Ocelot/DependencyInjection/ConfigurationBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
Added an AddOcelot overload to load FileConfiguration directly from the application, so that all the routes could be made configurable and could be load from anywhere.
Hey @raman-m , First of all, thanks for the review. I appreciate it. I had added this overload because I wanted to load ocelot configuration from a third party configuration manager(AWS SSM). So, I was thinking to load them on startup and then seed them into ocelot with this overload. So, the thing is I'm a little bit busy right now and this has been deprioritized at the moment. But, I still think that this feature makes sense, so I'll try to give some time to it by this or next weekend and will try to complete it. Thanks! |
@vijay-karavadra commented on Jul 10, 2023
OK. New extensions for the
Sure thing, Vijay! Pay attention that if you introduce new extension-method, it is required to update docs to show how to use your extended functionality. More in #1655 . |
Is this PR related to some existed issue? |
@vijay-karavadra Hi! Pay attention this is production ready project. A number of projects use this gateway. Are you ready for new code challenges? 😉 |
@vijay-karavadra commented on Jul 10:
Do you have a successful and workable solution now? I meant store file config object in AWS SSM, inject this object during app startup, pass the object to your extension-method... It seems we have to write some acceptance test(s) to emulate AWS environment, and integrate to Ocelot environment. |
Hey @raman-m , I had a great summer! I hope you had a great one too and also you are doing well. I was somewhat busy in some projects, thanks for bringing me back to this. I appreciate your patience and I grasp the gravity and significance of this project. I added the code review changes as per suggestions, please review. Also I started working on unit and acceptance tests and will push once done. |
Perfect! Added code is fine. 2 code review issues have been resolved. |
I have recently incorporated unit tests, and I would greatly appreciate your review of them. In regard to the acceptance tests, I've conducted a thorough examination of the existing ones. It appears that the acceptance tests have been designed under the presumption that the configuration builder functions seamlessly. To clarify, the configuration builder is not included as a component of the acceptance tests. Nevertheless, I am open to your insights and suggestions, so please do inform me if there are any specific tests you believe should be integrated into our suite of unit and acceptance tests. |
…inalize(object). This will prevent derived types that introduce a finalizer from needing to re-implement 'IDisposable' to call it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more approval is required.
Thanks @raman-m . It was a very good experience in working in this library. Feel free to assign me any issues in this library where the help is needed. I'd be happy to help! |
You are welcome! |
Closes #1228 #1235 #1247
New Feature
Added an
AddOcelot
overload to loadFileConfiguration
directly from the application, so that all the routes could be made configurable and could be load from anywhere.Proposed Changes
AddOcelot
inConfigurationBuilder
to remove Ocelot file dependency from the application.