Adding allow route overwrite option in blueprint#2716
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2716 +/- ##
=============================================
- Coverage 88.938% 88.895% -0.044%
=============================================
Files 92 92
Lines 6952 6961 +9
Branches 1185 1188 +3
=============================================
+ Hits 6183 6188 +5
- Misses 527 529 +2
- Partials 242 244 +2
☔ View full report in Codecov by Sentry. |
|
@ChihweiLHBird Don't bother trying to keep it up to date and merging in latest (unless part of a local commit). It will likely change 10 more times before this is ready. I will make sure it is up to date when the time comes. |
|
@ahopkins Thanks! I added one test case for overwriting route after bp copy. It probably needs another test case for a non-copied blueprint to allow overwriting a route handler. Do you plan to include this PR in this release? |
260c3a1 to
158cf16
Compare
If its finished, yes. |
76fce02 to
158cf16
Compare
|
GitHub seems having a delay to sync branch with PR... By the way, I try initializing a bp instance with overwriting route option set to |
|
Works for me. |
|
@ahopkins Thanks! |
|
We can consider to proceed with this PR if that's a better way to implement it. |
* Adding allow route overwrite option * Add test case for route overwriting after bp copy * Fix test * Fix * Add test case `test_bp_allow_override` * Remove conflicted future routes when overwriting is allowed * Improved test test_bp_copy_with_route_overwriting * Fix type * Fix type 2 * Add `test_bp_copy_without_route_overwriting` case * make `allow_route_overwrite` flag to be internal * Remove unwanted test case --------- Co-authored-by: Adam Hopkins <adam@amhopkins.com>
closes #2554