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

[Bug] Line Graph does not appear to use data from DB #506

Open
jmberd02 opened this issue Aug 26, 2024 · 3 comments
Open

[Bug] Line Graph does not appear to use data from DB #506

jmberd02 opened this issue Aug 26, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@jmberd02
Copy link

jmberd02 commented Aug 26, 2024

Contact Details

Please reply here

What happened?

Hi,
I believe this is user error, however it appears that the following dashboard does not output any data, even though the api endpoint gives back data.

{
  "id": "default",
  "schema_version": "1.0",
  "title": "TEST",
  "description": "An example dashboard to show-off the power of Fasten widgets",
  "widgets": [
    {
      "title_text": "Weight",
      "description_text": "",
      "x": 0,
      "y": 0,
      "width": 10,
      "height": 10,
      "item_type": "complex-line-widget",
      "queries": [
        {
          "q": {
            "select": [
              "issued as label", "valueQuantity.value as data"
            ],
            "from": "Observation",
            "where": {
              "code": "5802-4"              
            }
          },
          "dataset_options": {}
        }
      ],
      "parsing": {
        "xAxisKey": "label",
        "yAxisKey": "data"
      }
    }
  ]
}```

Instead I get back the default diabetes tracking rather than any data. I am sure this is user error but the only way I can see to contact you guys is via bug.
![image](https://github.com/user-attachments/assets/b99d6627-cb7f-4651-a089-403e24e5f104)

### Flavor

Docker

### Version

main#7d07157

### Relevant log output

_No response_
@jmberd02 jmberd02 added the bug Something isn't working label Aug 26, 2024
@jmberd02
Copy link
Author

Thank you so much for taking the time to looking into this, I am sure this is user error. I cant wait to be able to design a dashboard I can use Fasten with!

@AnalogJ
Copy link
Member

AnalogJ commented Aug 28, 2024

Hey @jmberd02 how did you provide Fasten with the new dashboard configuration?
Also, thanks for playing with the custom dashboards! Not many people have used it yet, and I personally think its one of the most powerful (but underdeveloped) features!

@jmberd02
Copy link
Author

jmberd02 commented Aug 28, 2024

Hi @AnalogJ, I just added it via GitHub gist. The docker im using doesn't seem to have sh in it :/

Im excited for the dashboard so that it can help give me history of my vitals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants