-
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
#738 #1990 Route Metadata as custom properties #1843
#738 #1990 Route Metadata as custom properties #1843
Conversation
a97bb42
to
b3094b2
Compare
Hi Van! Please, Be patient! I need some time to read and understand linked issues... |
Extending route config by custom properties is interesting idea. |
Are they really similar? The route metadata is a nice addition. |
Right, the technical designs are different.. But these both issues are about the same custom properties for route. Similarity in this thing only. @RaynaldM Thanks for the review! |
All feedback has been resolved. Thank everybody for taking the time to work on my PR. Thank @RaynaldM for your reviews. |
0f606c6
to
b2a30d9
Compare
|
Hi @raman-m
|
67121d9
to
29ae7e9
Compare
@raman-m ready for re-review |
@ggnaegi Hey, mentor! |
@raman-m in release/24.0, really? We can still revert it, but I'm not sure about the logic now... |
ThreeMammals:release/24.0 will be rebased onto develop soon, after current milestone release.
Sounds like a plan? |
The issue lies within the use of Milestones... |
@raman-m ok, fine, it's great! |
* feat(configuration): adding route metadata * feat(configuration): update docs * feat(configuration): replace Dictionary<> by IDictionary<>, code cleaning * feat(configuration): replace Dictionary<> by IDictionary<> * feat(configuration): replace Dictionary<> by IDictionary<> * feat(configuration): update the data type of FileDynamicRoute Metadata * formatting * feat(configuration): fix integration tests * feat !1843 add extension methods for DownstreamRoute to get metadata * feat !1843 add extension methods for DownstreamRoute * feat !1843 update docs * feat !1843 update docs * feat !1843 cleanup split string logic * SA1505: An opening brace should not be followed by a blank line * IDE1006: Naming rule violation: These words must begin with upper case characters: should_xxx * Fix compile errors after rebasing * Fix unit tests + AAA pattern * First Version, providing a generic extension method GetMetadata<T> with global configuration * Adding ConvertToNumericType method to be able to use the NumberStyles enum * adding first acceptance tests * The tests are now passing again... * adding latest test cases. That should be enough (includes global configuration changes too) * Update metadata.rst * adding the xml docs for IMetadataCreator and MetadataCreator * renaming MetadataCreator to DefaultMetadataCreator * number tests for .net 6 too * Moving Metadata specific downstream route extensions to the Metadata folder * cleanup * applying some of the requested changes * Final code review by @raman-m * Add traits * Fix docs build error --------- Co-authored-by: Raman Maksimchuk <[email protected]> Co-authored-by: Guillaume Gnaegi <[email protected]>
Feature commit in develop → 573a9d9 |
Closes #738 #1990
Related to
Proposed Changes
Route metadata allows Ocelot users to add custom functions that solve ad-hoc requirements or maybe write their plugins/extensions.
The new configuration will look like:
Now, the metadata is available in the
DownstreamRoute
object