Harmonize displaying json data from the netbox configuration
NetBox version
v4.4.8
Feature type
New functionality
Proposed functionality
Harmonize the displaying of Json data in the configuration history view:
At the moment only the "Default preferences" are rendered correct as JSON form:
I think it make sense to render the Validation rules for objects as JSON as well:
I think is just adding the "|json" statement, here:
Use case
Better and easier readability of the json data.
Database changes
External dependencies
@jonasnieberle, can you re-confirm as I can not reproduce this in my local.
These filters were removed explicitly in #17219 and #18369. My understanding is that these should be working this way already, due to the new specialized [ConfigJSONEncoder](https://github.com/netbox-community/netbox/pull/17247) introduced in the fix for # #17219.
@jnovinger yes that's right, but it only works at system --> config.
Navigate to Configuration History --> click on the ID of a config-revisions and then you see it.
Thats from the demo environment: https://demo.netbox.dev/core/config-revisions/2/
@jnovinger yes that's right, but it only works at system --> config.
Ah, excellent point. Apologies for the confusion. Is this something you'd like to tackle, @jonasnieberle?
@jnovinger Im not very familar with software development and alle processes with github / branching ... etc. I think it's just adding the "|json" statement to the code which I provide in the first message. For someone who know all the processes just 5min work :)
@jnovinger Im not very familar with software development and alle processes with github / branching ... etc. I think it's just adding the "|json" statement to the code which I provide in the first message. For someone who know all the processes just 5min work :)
Understood, appreciate the report!