This commit is contained in:
@@ -83,6 +83,7 @@ class EndpointChangeReport:
|
||||
http_method: str
|
||||
controller_class: str
|
||||
method_name: str
|
||||
source_file: str = ""
|
||||
parameter_changes: List[ParameterChange] = field(default_factory=list)
|
||||
is_new_endpoint: bool = False
|
||||
is_removed_endpoint: bool = False
|
||||
@@ -257,6 +258,7 @@ def compare_endpoints(
|
||||
http_method=a_ep.http_method,
|
||||
controller_class=a_ep.controller_class,
|
||||
method_name=a_ep.method_name,
|
||||
source_file=a_ep.source_file,
|
||||
is_renamed_endpoint=True,
|
||||
old_uri=r_ep.uri,
|
||||
)
|
||||
@@ -274,6 +276,7 @@ def compare_endpoints(
|
||||
http_method=ep.http_method,
|
||||
controller_class=ep.controller_class,
|
||||
method_name=ep.method_name,
|
||||
source_file=ep.source_file,
|
||||
is_removed_endpoint=True,
|
||||
)
|
||||
)
|
||||
@@ -287,6 +290,7 @@ def compare_endpoints(
|
||||
http_method=ep.http_method,
|
||||
controller_class=ep.controller_class,
|
||||
method_name=ep.method_name,
|
||||
source_file=ep.source_file,
|
||||
is_new_endpoint=True,
|
||||
parameter_changes=[
|
||||
ParameterChange(
|
||||
@@ -312,6 +316,7 @@ def compare_endpoints(
|
||||
http_method=new_ep.http_method,
|
||||
controller_class=new_ep.controller_class,
|
||||
method_name=new_ep.method_name,
|
||||
source_file=new_ep.source_file,
|
||||
parameter_changes=param_changes,
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user