Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow users to pass parameters through the url #8

Closed
jwildfire opened this issue Apr 7, 2017 · 1 comment · Fixed by #75
Closed

allow users to pass parameters through the url #8

jwildfire opened this issue Apr 7, 2017 · 1 comment · Fixed by #75
Assignees
Milestone

Comments

@jwildfire
Copy link
Contributor

No description provided.

@samussiah samussiah added this to the v0.10.0 milestone May 13, 2019
@jwildfire jwildfire self-assigned this Aug 16, 2019
@jwildfire jwildfire modified the milestones: v0.10.0, v0.9.6 Aug 16, 2019
@jwildfire
Copy link
Contributor Author

jwildfire commented Aug 16, 2019

Added URL query string support for 'renderer' (or 'r') and 'version' (or 'v'). 'renderer'/'r' can be a string or a number. If a number is provided, the index value of cat.config.renderers is used to select the renderer. A few sample URLs below:

https://rhoinc.github.io/CAT/?r=aetimeline //draws aetimeline with master branch
https://rhoinc.github.io/CAT/?renderer=aetimeline // same as above
https://rhoinc.github.io/CAT/?r=aetimeline&renderer=hep-explorer //'renderer' takes priority. hep-explorer is drawn
https://rhoinc.github.io/CAT/?r=safety-outlier-explorer
https://rhoinc.github.io/CAT/?r=safety-outlier-explorer&version=noverlap // shows feature branch
https://rhoinc.github.io/CAT/?r=0 //draws the 1st renderer
https://rhoinc.github.io/CAT/?r=4 //draws the 5th renderer

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 a pull request may close this issue.

2 participants