d4software / querytree Goto Github PK
View Code? Open in Web Editor NEWData reporting and visualization for your app
Home Page: http://querytreeapp.com
License: GNU Lesser General Public License v3.0
Data reporting and visualization for your app
Home Page: http://querytreeapp.com
License: GNU Lesser General Public License v3.0
Hi ,
I have got success while connecting to the database, but while generating reports , it continuously shows connecting to your database. please help to fix this
i have checked the error logs of container..
at Microsoft.AspNetCore.Antiforgery.Internal.DefaultAntiforgery.GetCookieTokenDoesNotThrow(HttpContext httpContext)
fail: Microsoft.AspNetCore.Antiforgery.Internal.DefaultAntiforgery[7]
An exception was thrown while deserializing the token.
System.InvalidOperationException: The antiforgery token could not be decrypted. ---> System.Security.Cryptography.CryptographicException: The key {d577aca6-67c1-40a5-b8fe-0f1913d79389} was not found in the key ring.
at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, Boolean allowOperationsOnRevokedKeys, UnprotectStatus& status)
at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.DangerousUnprotect(Byte[] protectedData, Boolean ignoreRevocationErrors, Boolean& requiresMigration, Boolean& wasRevoked)
at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Unprotect(Byte[] protectedData)
at Microsoft.AspNetCore.Antiforgery.Internal.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken)
--- End of inner exception stack trace ---
at Microsoft.AspNetCore.Antiforgery.Internal.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken)
at Microsoft.AspNetCore.Antiforgery.Internal.DefaultAntiforgery.GetCookieTokenDoesNotThrow(HttpContext httpContext)
When a connection is done to SQL Server, it would be nice to list not only tables but also Stored Procedures.
Hello.
I already setup SMTP to the docker image but I can't say if it's working.
The main issue here is: whenever I try to invite someone to my team, the screen goes full blank without any error notice (nor on screen, nor on js console).
If one tries to edit an existing report in "simple" query editor, the "summarize" block in the editor isn't loaded. This happens because of a wrong constant in simple.js
.
Hello
I have an instance of GreenPlum DB, it is based on postgres 8.3x,
I tried to connect QueryTree but i have no luck, testing the connection looks good but when I try to create a new report, QueryTree does not show any table in the "Select your Tables" panel
Could you kindly help me with this?
Thanks heap!
Best regards
Mark
I don't know if I am doing something wrong, but I built a container with the docker image and just can't find the Advanced Report Builder. Is it available?
Looking in the Docs folder see a bunch of .md files, but when clicking on them seeing nothing. Do see a change log that says docs moved from wiki to repo. But where are they?
The GitHub wiki can be a bit hard to navigate and we don't have full controll over how things work.
What are your thoughts on publishing the docs as markdown files in the repo under a /docs folder?
See https://github.com/PowerShell/PowerShell as an example. It means docs can also be read offline when people clone the project and makes it easy for potential contributors to quickly add things or document things.
We can later even publish these to a jekyll site like docs.querytreeapp.com or something.
I bring this up because I was about to start writing some docs/instructions on how to run querytree in a docker container and access data from DBs inside a container network but the wiki is a bit eh and I've not really seen many OSS projects utilise it very well.
Sum / aggregate / Avg functions would be nice
Some SMTP servers are configured to not use authentication. My idea is to add a flag to appSettings.json and modify MessageServices.cs
I connected to the database and successfully created a simple report of int x string
units_in_stock | company_name
4 | Tokyo Traders
5 | Lyngbysild
6 | Specialty Biscuits, Ltd.
From the README:
"Finally, you have the option of generating a chart from the data in the results panel."
I can not see this option anywhere on either the View Report or Edit Report screens and there are no errors in the log.
centos.7-x64
.NET Core SDKs installed:
2.1.300 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Postgres 9.4
I have a report generated from MySQL that shows date and time correctly in the web UI. Underlying column is a MySQL DATETIME. When I export the report to Excel (Office 2016 for OS X), the date is mangled. In the web UI, it is "2018-06-29T23:22:59.173", but in excel it shows "1/6/1900 12:00:00 AM". Other dates are similarly mangled.
This happens with the latest published docker image.
I am able to successfully add a database and create simple reports with the docker image.
However, when I try to create an advanced report and choose a data table, I start to get GET http://localhost:8800/api/cache/.../?startRow=0&rowCount=10 404 (Not Found)
repeatedly.
Steps taken:
Operating system:
Ubuntu 17.10
Docker version:
Client:
Version: 18.03.0-ce
API version: 1.37
Go version: go1.9.4
Git commit: 0520e24
Built: Wed Mar 21 23:10:09 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.03.0-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.4
Git commit: 0520e24
Built: Wed Mar 21 23:08:36 2018
OS/Arch: linux/amd64
Experimental: false
docker run -p 8080:80 --name querytree -d d4software/querytree:latest
docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0403aa010a58 d4software/querytree:latest "/bin/sh -c 'dotnet โฆ" 42 seconds ago Up 41 seconds 0.0.0.0:8080->80/tcp querytree
No tables are fetched from this connection, although tables exist and credentials are right (copy pasted them from our staging environment application configure file)
See below:
Any ideas how can I see some verbose logs on what goes wrong?
Am I doing something wrong?
Should probbaly also convert this to png while at it
Based on doc from MS starting from .NET Core 2.0 dotnet publish
command already include restore option. This also can be checked via publish command. So you can skip restore step just by specifing --no-restore
option.
Second point related to omitting targeting framework(netcoreapp2.1) option when publish app due to already specified value inside *.csproj file.
QueryTree/Web/Services/MessageServices.cs
Line 34 in c54fc65
Google apps for example prefers 465 for SSL, port 587 flags up as insecure and doesn't allow you to send mail
Update https://github.com/d4software/QueryTree/blob/master/docs/mail.md with new field to get gmail working
Summary:
I need to create a subselect with MAX(initialDate) GROUP BY id but it was not possible.
Error:
All date fields from my table were excluded from the list of columns in the Summarize tool.
How to Reproduce:
Maximum
.date
field.Might be good to keep everything Csharpy and use dotless as a nuget dependency instead of reaching out to the node world?
Noticed a few people being caught out by that.
It claims to be compatible with .NET Standard 2.0 (.NET Core 2.0, Mono 5.4, .NET Framework 4.6.1+)
Handling Excel as a data source
Hi,
as far as i can see, we can't localize QueryTree at the moment, right? Are there any future plans to enable internationalization options?
Kind regards
Test Database connection is not working. when I entered the mysql details and click on test connection nothing happen.
thanks you
error MSB3073: The command "lessc --source-map=Styles/aqb/app.css.map Styles/aqb/app.less Styles/aqb/app.css" exited with code 127.
when run dotnet run
I am able to connect to my postgres DB and see all the tables listed in the select your table section. When I select a table and click next in that section I see the following response in my devtools when hitting this URL:
http://localhost:8081/api/cache/a88ac14f06eb4512b7287a0501f2423a/0a1c9d5d-d9a7-4d02-8332-75cba76bb08f/?startRow=0&rowCount=10
{"status":"error","errorText":"42703: column \"column_0\" does not exist","columns":[],"columnTypes":[],"rows":[],"rowCount":0,"query":null}
When I click on the filter section I see the drop downs but there are no values in those.
Any suggestions on what could be causing this?
updating entity core, design and identity all fail
Severity Code Description Project File Line Suppression State
Error MSB3073 The command "lessc --source-map=Styles/aqb/app.css.map Styles/aqb/app.less Styles/aqb/app.css" exited with code 9009.
QueryTree C:\QueryTree\Web\QueryTree.csproj 74
Error NU1605 Detected package downgrade: Microsoft.Extensions.Caching.Memory from 2.1.1 to 2.0.0. Reference the package directly from the project to select a different version.
QueryTree -> Microsoft.EntityFrameworkCore.Design 2.1.4 -> Microsoft.EntityFrameworkCore.Relational 2.1.4 -> Microsoft.EntityFrameworkCore 2.1.4 -> Microsoft.Extensions.Caching.Memory (>= 2.1.1)
QueryTree -> Microsoft.Extensions.Caching.Memory (>= 2.0.0) QueryTree C:\QueryTree\Web\QueryTree.csproj 1
Error NU1202 Package Microsoft.AspNetCore.All 2.1.5 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.AspNetCore.All 2.1.5 supports: netcoreapp2.1 (.NETCoreApp,Version=v2.1) QueryTree
C:\QueryTree\Web\QueryTree.csproj 1
Error Package restore failed. Rolling back package changes for 'QueryTree'.
Hi,
thanks for this awesome apps, is there any plan for oracle or odbc datasource support?
I was trying to host QueryTree on my domain example.com/reports
however the assets are statically mapped to /
and I don't find a config inside appsettings.json
to set this desired behavior.
Could we draw together a feature for guiding a Pull Request that could implement this?
Thanks for your time reviewing this. :-)
I am using docker tag 7e0bac0. I am able to query my tables fine with the simple query builder form. But whenever I try to use the advanced query builder and I pick a data table I see the following endpoint returns a http status of 200 but I get the below response:
api/cache/25ea74e94b1f463e89fbed92d695a88b/dd81a7de-ee10-44ca-a7a4-4ea6a2186643/?startRow=0&rowCount=10
{"status":"error","errorText":"42601: syntax error at or near \",\"","columns":[],"columnTypes":[],"rows":[],"rowCount":0,"query":null}
Been playing with QueryTree and found a bit of a problem.
When running queries on tables with a lot of fields we may get an error from the server:
"The request filtering module is configured to deny a request where the query string is too long."
Basically the problem is that all fields, are being passed on the query string and with a few other properties like searchable, regex, etc.
This makes the request too long.
When exporting to Excel there is no problem, because it only makes a http://localhost:54181/api/queries/1/export
instead of this request bellow:
Based on d4software.freshdesk.com/a/tickets/1006
Add better documentation about how the enviroment variables can be used in docker
Hi there
I followed the steps to clone the project and run QueryTree with dotnet run.
After connecting to the db and signing up. When i click "+" to create a report. I am unable to find the advanced query builder link as shown in the example. The image attached is what I see on my screen:
Is there a solution to it?
Thanks
Hi...
i have got an error while Running from Source...
i installed .net core 2.0 and 2.1 and 2.2 separately but below error occurred.
...\Web>dotnet run
error MSB3073: The command "lessc --source-map=Styles/aqb/app.css.map Styles/aqb/app.less Styles/aqb/app.css" exited with code 9009
Our database is a temporal design because we want to maintain history. So we never update a row and always just insert another row. But at times we want to bring back the most recent record of a given item. We have a digest key that is a hash of a logical key for an item. We then can query by this digest key and say DISTINCT ON digest_key ordered by record_created_on DESC. This gives us the most recent record for that given digest_key.
Table with Temporal Example:
item_id | digest_key | state_code | item_name | price | record_created_on |
1 | 123 | IL | foobar | 12.00 | 09-20-2018 13:45 |
2 | 123 | IL | foobar | 14.00 | 08-20-2018 13:45 |
3 | 123 | IL | foobar | 13.00 | 07-20-2018 13:45 |
4 | 456 | FL | foobar | 16.00 | 09-20-2018 13:45 |
5 | 456 | FL | foobar | 14.00 | 08-20-2018 13:45 |
6 | 456 | FL | foobar | 15.00 | 07-20-2018 13:45 |
When I run the query to get the latest records for each item it would return the following results:
item_id | digest_key | state_code | item_name | price | record_created_on |
1 | 123 | IL | foobar | 12.00 | 09-20-2018 13:45 |
4 | 456 | FL | foobar | 16.00 | 09-20-2018 13:45 |
Maybe there is a way to obtain this result with the current advanced query builder but if there is I would appreciate some instructions on how to get this result. ๐ Otherwise I think this would be a nice feature to add to QueryTree to allow users to do DISTINCT ON type logic.
This is a great tool so far! Keep up the great work!
Is there a way to export the generated report as PDF as well just like export of excel operation is present
Hello. Would it be possible to add some kind of customization of the home URL likewise Wordpress?
Reason: I am trying to redirect the querytree docker container to mydomain.com/mydirectory
but all static files point to root (/), which returns 404.
Hi,
Unable to build the project with DotNet Core 2.1 SDK. Keeps returning
"error : A connection attempt failed because the connected party did not properly respond after a long period of time, or established connection failed because connected host has failed to respond [D:\QueryTree-master\Web\QueryTree.csproj].
Please explain the issue and provide a fix.
Thanks.
There is a way to add a filter OR ?
Thanks,
Errror given is:
C:\QueryTree Server\Web\QueryTree.csproj(73,5): error MSB3073: Der Befehl "lessc --source-map=Styles/aqb/app.css.map Styles/aqb/app.less Styles/aqb/app.css" wurde mit dem Code 9009 beendet.
Any suggestions?
Hi,
I was reviewing the documentation but couldn't identify if this tool is able to query across multiple databases on different servers for a single report.
In my case the databases are mysql and I didn't want to go the federated route so if this is possible then this tool would be perfect!
Hola,
So I started this branch ages ago but thought it'd be good to run the idea past.
With the success and popularity of the docker image being so easy for people to try QT out with. I thought why not make it easy to spin up a live version of QT in azure of heroku too.
https://www.microsoft.com/developerblog/2017/01/17/the-deploy-to-azure-button/
The limiting factor for this though would be to add support for a proper DB instead of sqlite so that QT can run in the cloud and not rely on a filesystem.
So if someone wants to take up the challenge of substituting sqlite for psql or mysql.
A half attempt: https://github.com/pandelisz/querytree
Hi there.
Just found one more thing. I wish i knew .Net so I could send you PRs.
I scheduled a report to be mailed daily at 10AM. At 9:33AM I received 8 (eight) emails with the very same report.
Let me know if you need any additional information or tests.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.