All Apps and Add-ons

root_endpoint support in the FreshMaker

alexiri
Communicator

Hi @nick,

The iframe in the FreshMaker isn't set up to deal with alternative root_endpoints. Do you think you can fix this?

Cheers,
Alex

0 Karma
1 Solution

sideview
SplunkTrust
SplunkTrust

Done. The change will be up in the next Sideview Utils - either 1.3.4, or 1.4 depending on how some other things go.

Either way the fix to the FreshMaker will be up sometime next week. Thanks for letting me know. I'd originally written the FreshMaker just as a personal tool, so it's yet another lesson about moving prototype code to production. 😃

UPDATE: Given how useful the FreshMaker can be, you might want to edit the view yourself to get the fix right away rather than waiting a week. If you do, it's simple - within "refresh_entities.xml" find every occurrence of "/debug/refresh" and replace it with "../../debug/refresh". Piece of cake.
And although it goes against best practice, I would edit the file in default, precisely so that it will get clobbered by the official version when you do upgrade later. (ie make the edit within etc/apps/sideview_utils/default/data/ui/views/refresh_entities.xml)

View solution in original post

sideview
SplunkTrust
SplunkTrust

Done. The change will be up in the next Sideview Utils - either 1.3.4, or 1.4 depending on how some other things go.

Either way the fix to the FreshMaker will be up sometime next week. Thanks for letting me know. I'd originally written the FreshMaker just as a personal tool, so it's yet another lesson about moving prototype code to production. 😃

UPDATE: Given how useful the FreshMaker can be, you might want to edit the view yourself to get the fix right away rather than waiting a week. If you do, it's simple - within "refresh_entities.xml" find every occurrence of "/debug/refresh" and replace it with "../../debug/refresh". Piece of cake.
And although it goes against best practice, I would edit the file in default, precisely so that it will get clobbered by the official version when you do upgrade later. (ie make the edit within etc/apps/sideview_utils/default/data/ui/views/refresh_entities.xml)

alexiri
Communicator

Great, thanks a lot for your excellent support!

0 Karma

sideview
SplunkTrust
SplunkTrust

I take it back. It was easy. I just got hung up cause if you change root_endpoint and only restart SplunkWeb, evil evil things happen. 😃 It'll be in the next release. Thanks.

0 Karma

sideview
SplunkTrust
SplunkTrust

Looking into it now. I have a fix but it's going to be pretty time consuming to implement across the whole app. The root cause is that Splunk's make_url function, when called from the controller level, or when called from splunk.appserver.mrsparkle.lib.util, ignores root_endpoint completely.... So I have to rework everything to only ever call make_url from the mako templates. So I'm chasing down and testing a lot of little changes. I'll fix it in the next release. Sorry about that.

0 Karma

alexiri
Communicator

Hi @nick, I've noticed that this is actually an issue on several other pages on Sideview Utils. For example, the Sideview Editor doesn't work at all because of the root_endpoint. Can you take a look?

0 Karma

alexiri
Communicator

Great, thanks for the quick fix!

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...