Comments (7)
Been playing with this more. It may be some strange interaction with the layout in concert with another widget (text) on the same row. I ended up duplicating the board and laying it out with the affected widgets (same widget type) all on their own row, and that board refreshes fine. Will update if I can figure out what the difference is where I am reproducing)
from smashing.
Ok, I figured out the difference, I think. On the board where I am able to reproduce, I am updating the Number-esque widgets "subtitle" data-binding (which I had to add in the cloned version of the widget I am using), and when I comment out the send_event for that, strangely, everything refreshes fine and the data persists. The board where this was all working never had the subtitle being updated, so that jives with this theory.
from smashing.
Hi @qthatswho good issue description thanks. I think in Dashing it really persisted the data for a while. I will have to try to reproduce it, and then debug. But I remember the history data is kept in a local file in the server, so I expected the latest data to be displayed when refreshing the browser.
from smashing.
Yes, I recall there was some sort of local cache/history file used by Dashing. Is there not a similar mechanism in Smashing? This should be pretty easy to repro.
from smashing.
I think the file is still created. Probably some coffeescript or ruby code changed, and caused the issue. Will try to reproduce it today 👍
from smashing.
I will add, the widgets where I'm seeing this most reliably are widgets I copied directly from Dashing (pretty basic clones of the Number widget with simple alterations). Not sure if there were any changes in Smashing that might require updates to widgets to properly cache history data.
from smashing.
Trying to reproduce. Installed the gem from master
.
smashing new testing
,cd testing
smashing start
- visited
http://localhost:3030
- used the jobs & dashboards that come with the default template, replacing the
valuation
in thesample.rb
jobSCHEDULER.every '10s' do
instead of2s
current_valuation = current_valuation + 1
so that every 10 seconds the valuation is increased by1
- chose a random number (
$3
), about one second after it appeared, and then pressed the refresh button - the dashboard refreshed, and the valuation (which uses
Number
widget) displayed$3
, then$4
My environment:
OS: Ubuntu LTS 20.04
Browser Firefox 84.0.1
Version `master`, which is really similar to `1.3.0`, the latest version
Ruby: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
@qthatswho did I miss anything? Here's a GIF showing what I'm seeing.
from smashing.
Related Issues (20)
- How do I feed List widget using json? HOT 1
- Responsive dashboard HOT 1
- limitation in free edition HOT 1
- Sample page dashboard not load on Windows 10/Chrome 83.0.4103.116 HOT 3
- implicit declaration of function 'thin_http_parser_init' is invalid in C99 HOT 8
- smashing fails to install on macOS with built-in ruby (2.6) HOT 2
- Smashing not displaying data HOT 17
- Dashboards with a large number of widgets no longer return all data HOT 4
- Smashing 1.3.2 still not showing data HOT 2
- Add SECURITY.md
- Getting data from a simple script
- Slow to generate application.js HOT 7
- Configuration file HOT 1
- Raspberry PI 4 SMASHING AUTO STARTUP HOT 1
- Smashing won't load: bundler: failed to load command: thin (/usr/local/bin/thin) HOT 6
- Using sqlite to save history HOT 2
- Example dashboard don't show widgets HOT 5
- Github (Actions) Deployments Dashboard HOT 1
- Is Google Charts setOnLoadCallback supported? HOT 3
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 smashing.