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

Add 24 hours refresh for dashboard #5068

Merged
merged 2 commits into from
May 25, 2018

Conversation

aok1425
Copy link
Contributor

@aok1425 aok1425 commented May 24, 2018

For dashboards, add additional autorefresh time interval options of 30m, 1h, 6h, 12h, and 24h.

Fixes #5058.
@mistercrunch @michellethomas @niksem

@aok1425 aok1425 force-pushed the add_24h_refresh_for_dashboard branch from a26657b to 416c8cd Compare May 24, 2018 04:18
@mistercrunch
Copy link
Member

Mind adding incremental values while at it? Maybe 15 minutes, 30 minutes, 1 hour, 6 hours, ...

@aok1425
Copy link
Contributor Author

aok1425 commented May 24, 2018

Oh good idea! done

@codecov-io
Copy link

Codecov Report

Merging #5068 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #5068   +/-   ##
=======================================
  Coverage   77.53%   77.53%           
=======================================
  Files          44       44           
  Lines        8712     8712           
=======================================
  Hits         6755     6755           
  Misses       1957     1957

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d322e48...bfae21e. Read the comment docs.

@mistercrunch mistercrunch merged commit e30215c into apache:master May 25, 2018
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 30, 2018
* adding 24 hours refresh

* adding additional hours

(cherry picked from commit e30215c)
timifasubaa pushed a commit to timifasubaa/incubator-superset that referenced this pull request May 31, 2018
* adding 24 hours refresh

* adding additional hours
@yamyamyuo
Copy link
Contributor

yamyamyuo commented Jul 4, 2018

@aok1425 just curious, why not just let the user to set the interval instead of providing the options? Like some data may be required to refresh weekly or monthly.

@aok1425
Copy link
Contributor Author

aok1425 commented Jul 9, 2018

@yamyamyuo I wanted my Superset dash to update every 24h, and I don't know enough JS to let the user set the interval :)

Maybe you want to build the feature to let the user set the interval? I'm imagining something like a horizontal slider might be a good design.

@salonijain024
Copy link

I tried to add new refresh option but it is not reflected on dashboard.
Can you help in reflecting the changes

@aok1425
Copy link
Contributor Author

aok1425 commented Aug 30, 2018

@salonijain024 I don't understand what you're saying. Can you link to your PR?

@salonijain024
Copy link

salonijain024 commented Aug 30, 2018 via email

@mistercrunch
Copy link
Member

@salonijain024 if you change the JS code you need to rebuild it. Check out our CONTRIBUTING.md file.

@salonijain024
Copy link

salonijain024 commented Aug 30, 2018 via email

@salonijain024
Copy link

salonijain024 commented Aug 31, 2018 via email

@mistercrunch
Copy link
Member

0.24 is old, why not upgrading to a newer version?

@salonijain024
Copy link

salonijain024 commented Sep 2, 2018 via email

@yamyamyuo
Copy link
Contributor

yamyamyuo commented Sep 5, 2018

I have copy some of the code from Dockerfile, ignore the number in the front of each line
Hope this could do some help, this works in my production release.

Steps of code

  • install nodejs, yarn, npm
  • modify your frontend code
  • cd superset/assets && yarn && npm run build

`# Install nodejs for custom build
48 # https://nodejs.org/en/download/package-manager/
49 RUN curl -sL https://deb.nodesource.com/setup_9.x | bash -
50 RUN apt-get update && apt-get install -y nodejs
51 RUN npm install -g yarn

53 RUN ls ${SUPERSET_ASSETS_DIR}
54 COPY ./lls_superset_build/package.json ${SUPERSET_ASSETS_DIR}/package.json # i have modify something here

RUN cd ${SUPERSET_ASSETS_DIR} && yarn
61 RUN cd ${SUPERSET_ASSETS_DIR} && yarn list webpack

compile the frontend

49 # https://github.com/apache/incubator-superset/blob/master/docs/installation.rst#making-your-own-build
50 RUN cd ${SUPERSET_ASSETS_DIR} && yarn
51 # RUN cd ${SUPERSET_ASSETS_DIR} && yarn list webpack

56 RUN cd ${SUPERSET_ASSETS_DIR} && yarn list
58 RUN cd ${SUPERSET_ASSETS_DIR} && npm run build
`

@salonijain024
Copy link

salonijain024 commented Sep 5, 2018 via email

@salonijain024
Copy link

salonijain024 commented Sep 17, 2018 via email

@mistercrunch
Copy link
Member

@salonijain024 this PR is not the right outlet to discuss this, please open an issue with the specifics

wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
* adding 24 hours refresh

* adding additional hours
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.26.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.26.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option for 24h dashboard refresh frequency
6 participants