Skip to content

Added Usage tab link loading for statistics link#1888

Merged
aestoltm merged 47 commits intoubccr:mainfrom
t-scholtz:usage_linking
May 23, 2025
Merged

Added Usage tab link loading for statistics link#1888
aestoltm merged 47 commits intoubccr:mainfrom
t-scholtz:usage_linking

Conversation

@t-scholtz
Copy link
Copy Markdown
Contributor

Added capability so that when you load a chart link from the usage tab ie https://xdmod.access-ci.org/index.php#tg_usage?node=statistic_Jobs_nodecount_utilization the usage tab will load that chart, instead of loading the default chart configuration

Note - this does not handle the case for group charts ie https://xdmod.access-ci.org/index.php#tg_usage?node=group_by_Jobs_nodecount which are handled like the old case and just load the default chart instead.

Motivation and Context

This allows users to share usage tab charts, as well as adds the production effort in creating an XDMod Chatbot

@aestoltm aestoltm mentioned this pull request Jul 31, 2024
3 tasks
Copy link
Copy Markdown
Contributor

@aestoltm aestoltm left a comment

Choose a reason for hiding this comment

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

Left a suggestions for a minor refactor when we know what dimension the url is referring to. There are also a few changes to some of the variable names so they are more consistent with the XDMoD language. I also included a small change so that this can work with the 'Summary Overview' charts. Even though we most likely will not support those charts with the chat bot I think it would be nice to support in the portal.

Please let me know if you have any questions on the suggested changes.

Co-authored-by: Andrew Stoltman <60742416+aestoltm@users.noreply.github.com>
@aestoltm
Copy link
Copy Markdown
Contributor

The regex is throwing a sonar warning. Need to confirm if it needs to be adjusted.

@jpwhite4
Copy link
Copy Markdown
Member

The regex is throwing a sonar warning. Need to confirm if it needs to be adjusted.

We shouldn't be using a regex in this code. We already have a library function that will parse the location string and get what we need out of it - since thats what the code already does!

@aestoltm
Copy link
Copy Markdown
Contributor

aestoltm commented Apr 1, 2025

Tests will fail until I update some of the expected files for integration tests

@aestoltm aestoltm modified the milestones: 11.5.0, 11.0.2 May 2, 2025
@aestoltm aestoltm mentioned this pull request May 2, 2025
3 tasks
@aestoltm aestoltm merged commit 40d7f98 into ubccr:main May 23, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category:Metric Explorer Metric Explorer / Usage enhancement Enhancement of the functionality of an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants