[PR #4181] [MERGED] Fixes #2511: Compare object change to the previous change #12782

Closed
opened 2025-12-29 22:23:35 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4181
Author: @hSaria
Created: 2/15/2020
Status: Merged
Merged: 2/19/2020
Merged by: @jeremystretch

Base: developHead: 2511-change-diff


📝 Commits (2)

📊 Changes

4 files changed (+70 additions, -0 deletions)

View changed files

📝 docs/release-notes/version-2.7.md (+1 -0)
📝 netbox/extras/views.py (+24 -0)
📝 netbox/templates/extras/objectchange.html (+29 -0)
📝 netbox/utilities/utils.py (+16 -0)

📄 Description

Fixes: #2511

Add a difference section to the object change (i.e. /extras/changelog/{pk}/) with previous and next buttons.

image

While going with a full-blown diff library might provide a nicer-looking diff, like that of GitHub, I've opted for a simpler approach to avoid the additional overhead of another dependency. And it seemed a bit overkill.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/4181 **Author:** [@hSaria](https://github.com/hSaria) **Created:** 2/15/2020 **Status:** ✅ Merged **Merged:** 2/19/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `2511-change-diff` --- ### 📝 Commits (2) - [`faa22cb`](https://github.com/netbox-community/netbox/commit/faa22cb6377e2a2b2c02a773c5a839b04d896764) Fixes #2511: Compare object change to the previous change - [`89ab655`](https://github.com/netbox-community/netbox/commit/89ab6553d63dbdbbf23866d67deb1ec485b389a4) Changelog for #2511 ### 📊 Changes **4 files changed** (+70 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-notes/version-2.7.md` (+1 -0) 📝 `netbox/extras/views.py` (+24 -0) 📝 `netbox/templates/extras/objectchange.html` (+29 -0) 📝 `netbox/utilities/utils.py` (+16 -0) </details> ### 📄 Description ### Fixes: #2511 Add a difference section to the object change (i.e. `/extras/changelog/{pk}/`) with previous and next buttons. <img width="817" alt="image" src="https://user-images.githubusercontent.com/34197532/74596136-f1063180-5042-11ea-96cf-762194a03f4b.png"> > While going with a full-blown diff library might provide a nicer-looking diff, like that of GitHub, I've opted for a simpler approach to avoid the additional overhead of another dependency. And it seemed a bit overkill. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:23:35 +01:00
adam closed this issue 2025-12-29 22:23:35 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12782