GithubHelp home page GithubHelp logo

Comments (7)

qthatswho avatar qthatswho commented on June 9, 2024 1

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.

qthatswho avatar qthatswho commented on June 9, 2024 1

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.

kinow avatar kinow commented on June 9, 2024

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.

qthatswho avatar qthatswho commented on June 9, 2024

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.

kinow avatar kinow commented on June 9, 2024

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.

qthatswho avatar qthatswho commented on June 9, 2024

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.

kinow avatar kinow commented on June 9, 2024

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 the sample.rb job
    • SCHEDULER.every '10s' do instead of 2s
    • current_valuation = current_valuation + 1 so that every 10 seconds the valuation is increased by 1
  • 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.

GIFrecord_2021-01-08_152023

from smashing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.