Skip to content

Update escape function for convertSvg#2190

Open
ryanrath wants to merge 4 commits into
ubccr:mainfrom
ryanrath:charting_fix
Open

Update escape function for convertSvg#2190
ryanrath wants to merge 4 commits into
ubccr:mainfrom
ryanrath:charting_fix

Conversation

@ryanrath
Copy link
Copy Markdown
Contributor

@ryanrath ryanrath commented Apr 14, 2026

Description

This commit just updates the function used to escape the data that will ultimately passed to exif for exporting SVG versions of XDMoD charts.

Motivation and Context

Using the right escape functions is a plus.

Tests performed

All automated tests run / passed.

Integration tests were added for chart export from both Usage and Metric Explorer.

Checklist:

  • The pull request description is suitable for a Changelog entry
  • The milestone is set correctly on the pull request
  • The appropriate labels have been added to the pull request

@ryanrath ryanrath added this to the 11.5.0 milestone Apr 14, 2026
@ryanrath ryanrath requested a review from jpwhite4 April 14, 2026 16:53
@ryanrath ryanrath added maintenance / code quality Improvements and code cleanup. Not a new feature or enhancement to existing functionality. autodoc:ignore Auto documentation ignore this PR Category:Infrastructure Internal infrastructure updates/changes labels Apr 14, 2026
Comment thread libraries/charting.php Outdated
Comment thread libraries/charting.php Outdated
@ryanrath ryanrath requested a review from aaronweeden April 14, 2026 18:52
This commit just updates the function used to escape the data that will
ultimately passed to exif for exporting SVG versions of XDMoD charts.

Tests were added for Usage and Metric Explorer tabs.
'font_size' => '3',
'featured' => 'false',
'trendLineEnabled' => 'undefined',
'x_axis' => urldecode('%257B%257D'),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why hardcode a urlencoded string in order to urldecode it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This has been updated in the latest commit.

Comment thread libraries/charting.php Outdated
@ryanrath ryanrath requested a review from jpwhite4 April 21, 2026 13:07
@ryanrath
Copy link
Copy Markdown
Contributor Author

ryanrath commented May 5, 2026

@jpwhite4 @aaronweeden

Ok, the PR has all the actual changes now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autodoc:ignore Auto documentation ignore this PR Category:Infrastructure Internal infrastructure updates/changes maintenance / code quality Improvements and code cleanup. Not a new feature or enhancement to existing functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants