Comments (11)
@imolorhe the Download CSV button comes from this plugin: https://altairgraphql.dev/docs/plugins/popular-plugins#altair-graphql-plugin-json-to-csv
It takes the json, uploads it to a third party service which returns CSV, and then stores that as a file on the file system.
The code is here: https://github.com/desiringgod/altair-graphql-plugin-json-to-csv/blob/master/index.js
from altair.
What does the download CSV button do?
from altair.
Thanks. Looks like that plugin will need an update. I'll reach out.
from altair.
This issue should be fixed. The issue in the plugin should be fixed by this PR desiringgod/altair-graphql-plugin-json-to-csv#10.
Please can you verify?
from altair.
@imolorhe thanks
Altair 7.2.1 fixes the rendering problem. I merged the PR for the plugin... remind me what I need to do beyond that to get the plugin to load. Specifying the version (github:[email protected]::[repo]->[desiringgod/altair-graphql-plugin-json-to-csv]
) does not seem to load the plugin, and if I don't specify the version, I think I get the old broken one. What am I missing?
from altair.
The plugin should be using the latest version by now if you published the new version to npm (you can check the downloaded manifest.json file, etc)
from altair.
@imolorhe okay... we haven't been doing that, and I can try to figure that out.
BUT, what about running it straight off of github? Shouldn't that be working?
from altair.
Yes, but that checks for the github tag release, which the plugin doesn't currently have.
In the network tab, you can see that Altair tries to fetch the files for the version from github but fails with a 404. It leverages jsdeliver CDN API to fetch the artifacts (docs)
from altair.
@imolorhe okay thanks. I've got the plugin loaded and can see the queries in the network tab.
Unfortunately, things are still failing. I am wondering if the new queryResults
has newlines and spaces in it and the old one does not? Put another way, do you think the output of queryResults
would validate with something like https://jsonlint.com/ ?
from altair.
I took a look at it locally. All queryResults
are strings now and not objects (to account for the variety of responses from the server) so you shouldn't JSON.stringify anymore
from altair.
okay, I've got it fixed! Thanks!
from altair.
Related Issues (20)
- Fix intermittent CI docs install error
- [BUG] Docs don't show up at all HOT 2
- Unable to Set Up oauth connections in MacOS Client HOT 5
- Bug: Application error: Request failed with status code 404 HOT 2
- [BUG] <title>Docs no longer available on 7.2.0 HOT 2
- Docs and intellisense stopped working in the Web UI HOT 8
- [BUG] Cannot save query to a new collection HOT 3
- [BUG] Failure Response not showing HOT 3
- [BUG] Cannot save query to an existing collection
- Set variables for query in pre-release script HOT 2
- Unable to Log In - Black Green Screen on Login Attempt HOT 1
- altair-graphql-plugin-graphql-explorer don't displayed in latest update 7.2.4 HOT 4
- switch to changeset
- Error: Cannot find latest-mac.yml in the latest release artifacts HOT 1
- Bug: Application error: Failed to read large IndexedDB value DataError: Failed to read large ...
- Failed to fetch
- Uuse default request handler for subscription hidden forever
- [BUG] Pre-request script in collection not triggered if query from collection is run HOT 1
- [BUG] search / find element is transparent, non clickable and being overlaid by result
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from altair.