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

pass the standalone request arg in the /caravel/slices/<slice_id>/ endpoint redirect #876

Merged

Conversation

williaster
Copy link
Contributor

@williaster williaster commented Aug 2, 2016

Gave some context in slack, but this will be useful for us to auto-generate standalone viz's from a slice's id. This endpoint currently re-directs to a slice's url, but ignores all arguments passed to it.

@mistercrunch

@williaster williaster force-pushed the chris/support-standalone-arg-in-slice-id-endpoint branch from dae508e to 6808aed Compare August 2, 2016 20:27
@coveralls
Copy link

coveralls commented Aug 2, 2016

Coverage Status

Coverage decreased (-0.02%) to 81.469% when pulling 6808aed on chris/support-standalone-arg-in-slice-id-endpoint into aaef338 on master.

@williaster
Copy link
Contributor Author

williaster commented Aug 2, 2016

how can I fix the coveralls blocker? :( .02% doesn't seem problmatic)

(slc.slice_name, 'json_endpoint', slc.viz.json_endpoint),
(slc.slice_name, 'csv_endpoint', slc.viz.csv_endpoint),
(slc.slice_name, 'slice_id',
Copy link
Member

Choose a reason for hiding this comment

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

no need to test these 3 endpoints for all slices, let's pick one and write another unit test that tests using assertRedirects

…te standalone redirect logic for Javascript 'false' instead of Python False
@williaster williaster force-pushed the chris/support-standalone-arg-in-slice-id-endpoint branch from 6808aed to 77f2593 Compare August 10, 2016 00:11
@williaster
Copy link
Contributor Author

@mistercrunch I tried messing with the assertRedirects but wasted a ton of time trying to get the flask_testing.TestCase to work. This is the current best standard for how you're testing redirects so I went with it for now.

Also updated the 'false' vs False logic.

@coveralls
Copy link

coveralls commented Aug 10, 2016

Coverage Status

Coverage increased (+0.2%) to 81.66% when pulling 77f2593 on chris/support-standalone-arg-in-slice-id-endpoint into b48101c on master.

@mistercrunch
Copy link
Member

Nice!

@mistercrunch mistercrunch merged commit 2bfb9cc into master Aug 11, 2016
@mistercrunch mistercrunch deleted the chris/support-standalone-arg-in-slice-id-endpoint branch August 11, 2016 06:11
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants