Skip to content

Conversation

@vaszig
Copy link
Collaborator

@vaszig vaszig commented Jul 28, 2023

Fixes #13

Added Prettify button in the admin change view, to get a better view of the output only if it is 'XMLorJSON`.

image

es: XML
image

es: JSON
image

@vaszig vaszig marked this pull request as draft July 28, 2023 15:17
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 95.94%. Comparing base (1d1b877) to head (d868a15).
Report is 16 commits behind head on main.

Files with missing lines Patch % Lines
log_outgoing_requests/admin.py 75.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
- Coverage   97.75%   95.94%   -1.81%     
==========================================
  Files          21       22       +1     
  Lines         445      469      +24     
  Branches       57       30      -27     
==========================================
+ Hits          435      450      +15     
- Misses          6       14       +8     
- Partials        4        5       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@danielmursa-dev danielmursa-dev force-pushed the feature/13-add-body-prettyfier-for-json-and-xml branch 2 times, most recently from 39b3d56 to aca1430 Compare December 12, 2024 14:55
@danielmursa-dev
Copy link
Contributor

I changed @vaszig initial idea a bit, to create a views and also the urls to prettify body_response in another view, because I thought it would be better to stay on the same view and only with JS to show or hide prettify_body_response

@danielmursa-dev danielmursa-dev marked this pull request as ready for review December 12, 2024 15:11
@alextreme
Copy link
Member

Nice, thanks Daniel! Will let Steven review

@alextreme alextreme removed their request for review December 12, 2024 15:38
vaszig and others added 5 commits October 24, 2025 11:38
[#13] Fix admin.js

[#13] Fixed admin button

[#13] Remove unnecessary views and urls

[#13] Remove message in quickstart.rst

[#13] Black
because for browsers other than Chrome and Opera, XSLTProcessor does not respect indent=yes
@stevenbal stevenbal force-pushed the feature/13-add-body-prettyfier-for-json-and-xml branch from c92212c to 06f743e Compare October 24, 2025 09:40
Copy link
Contributor

@stevenbal stevenbal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danielmursa-dev realized I let this one linger for months, I made some changes to the XML formatting, if you have time, maybe you can have a look and could make a new release for this library?

@danielmursa-dev danielmursa-dev merged commit 36c088f into main Oct 27, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add prettyfier based on content-type

6 participants