Skip to content

Commit

Permalink
refactor: Rename object_diff to object_comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
freshavocado7 committed Sep 11, 2024
1 parent dc83ae1 commit d22b47f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 169 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/DiffView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const DiffView = ({ objectID, endpoint, diffData }) => {
.then(() => {
let url;
if (diffData.change) {
url = `${endpoint}object_diff/${objectID}`;
url = `${endpoint}object_comparison/${objectID}`;
}
fetch(url, {
method: 'GET',
Expand Down
12 changes: 3 additions & 9 deletions templates/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,9 @@ categories:
scope:
name: object
type: CapellaModule
- idx: model-diff
template: model-diff.html.j2
name: Model Version Diff
description: Template to visualize differences between two model versions
isExperimental: true
single: true
- idx: object_diff
template: object_diff.html.j2
name: Object Diff
- idx: object_comparison
template: object_comparison.html.j2
name: Object Comparison
description: Template to visualize differences between two objects
isExperimental: true
single: true
158 changes: 0 additions & 158 deletions templates/model-diff.html.j2

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,5 @@
{% endif %}
{{show_other_attributes(object, object_diff) | safe}}
{% else %}
<h1> deleted </h1>
<h1 style="color: red">Object not found</h1>
{% endif %}

0 comments on commit d22b47f

Please sign in to comment.