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

Download option for visualisations and dashboards (connect #952) #1586

Merged

Conversation

finnfiddle
Copy link
Contributor

  • Update release notes if necessary

@finnfiddle finnfiddle self-assigned this Aug 1, 2018
finnfiddle and others added 4 commits August 1, 2018 15:32
…shboards-#952

* develop:
  Add more details about how retrieving values
  Refactor: Fix indentation
  Use `concat` instead of `||` in sql update. Relates to #1517
  Add documentation on how to create new tenant #1514
  Add documentation on how to create new tenant #1514
  [#1408] Fix bug in raster import failure case
  [#1408] Clean up unsuccessful raster imports better
  [#1408] Client par of delete pending rasters WIP
  [#1408] Delete pending datasets WIP

# Conflicts:
#	client/package-lock.json
Copy link
Contributor

@kardan kardan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we miss translation strings, seeing:
[React Intl] Missing message: "save_your_visualisation_before_exporting" for locale: "en"

@@ -107,6 +107,7 @@
:sentry-backend-dsn sentry-backend-dsn
:flow-api-url flow-api-url
:windshaft-url "http://localhost:4000"
:exporter-api-url "http://localhost:3001"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use bound symbol from config.clj

@@ -24,6 +24,7 @@
'email-password (:lumen-email-password env)
'email-user (:lumen-email-user env)
'encryption-key (:lumen-encryption-key env)
'exporter-api-url "http://localhost:3001"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use env var or fallback to default as in (:exporter-api-url env "http://localhost:3001")

finnfiddle and others added 4 commits August 1, 2018 16:28
… and 'Download-option-for-visualisations-and-dashboards-#952' of github.com:akvo/akvo-lumen into Download-option-for-visualisations-and-dashboards-#952

* 'Download-option-for-visualisations-and-dashboards-#952' of github.com:akvo/akvo-lumen:
  Fix backend env vars

* 'Download-option-for-visualisations-and-dashboards-#952' of github.com:akvo/akvo-lumen:
  Fix backend env vars
@@ -0,0 +1,14 @@
FROM zenato/puppeteer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a more specific version instead of latest?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure there are any other tags, see https://hub.docker.com/r/zenato/puppeteer/tags/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see there are plenty of puppeteer images. See https://hub.docker.com/search/?isAutomated=0&isOfficial=0&page=1&pullCount=0&q=puppeteer&starCount=0.
The most popular one has tags.

Copy link
Contributor Author

@finnfiddle finnfiddle Aug 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I first went with the most popular one alekzonder/puppeteer but it uses an outdated version of puppeteer. Hence my choice. But the 2nd one could work because it uses the latest puppeteer - https://hub.docker.com/r/buildkite/puppeteer/. Will try now

finnfiddle and others added 12 commits August 2, 2018 12:56
… of github.com:akvo/akvo-lumen into Download-option-for-visualisations-and-dashboards-#952

* 'Download-option-for-visualisations-and-dashboards-#952' of github.com:akvo/akvo-lumen:
  Add `dev` env var
… of github.com:akvo/akvo-lumen into Download-option-for-visualisations-and-dashboards-#952

* 'Download-option-for-visualisations-and-dashboards-#952' of github.com:akvo/akvo-lumen:
  [#952] Silent cypress npm install
  [#952] Upgrade Cypress and quiet install output
  [#952] Enabled first Cypress tests
  [#952] Temporary disable cypress test
… and 'Download-option-for-visualisations-and-dashboards-#952' of github.com:akvo/akvo-lumen into Download-option-for-visualisations-and-dashboards-#952
@kardan
Copy link
Contributor

kardan commented Aug 16, 2018

Since this feature uses a new exporter service we need to make sure to deploy that in the k8s environment.

@kardan
Copy link
Contributor

kardan commented Aug 16, 2018

Todo:

  • Allow only authenticated requests
  • Update build and deploy scripts to handle the new service

kardan and others added 12 commits August 22, 2018 11:27
First cut on not initialising a Keycloak session using token & refresh
token but using the given token.
…shboards-#952

* develop: (55 commits)
  Disable *again* update for datasets coming from Data files [#1562]
  Fix query [#1638]
  Drop dataset source column [#1638]
  Select data_source.spec instead of dataset.source [#1638]
  [#1642] Upgrade to latest Windshaft image
  Revert isUpdatable logic
  Maps show small on shared link #1632
  #1576 fixed rich text styling issues
  rich text editor fixes #1576
  Use proper visualizable metadata in legend [client] [#1579]
  More translations [i18n]
  Set state.error=null on 200 http status
  Improve UI styling and translations
  Improvements [#1626] && Manage 404 backend http response
  Add "unit" to caddisfly "name" response
  Add aws url to caddisfly images [#1571]
  Tidy up multiple-column details response [#1571]
  inc z-index over maximum found in lumen css [#1561]
  Avoid add-to-collection opt in case of failing dataset [#1546]
  Disable update for datasets coming from Data files [#1562]
  ...

# Conflicts:
#	backend/resources/akvo/lumen/system.edn
#	client/e2e-test/Dockerfile
#	client/package-lock.json
#	client/src/components/dashboard/DashboardEditor.jsx
#	client/src/translations/en.json
#	client/src/translations/es.json
@kardan
Copy link
Contributor

kardan commented Sep 17, 2018

Adding a viz to a Dashboard generates the following browser console warning:

warning.js?6327:33 Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
    in DashboardCanvasItem (created by DashboardEditor)
    in div (created by DashboardEditor)
    in Resizable (created by GridItem)
    in DraggableCore (created by GridItem)
    in GridItem (created by ReactGridLayout)
    in div (created by ReactGridLayout)
    in ReactGridLayout (created by DashboardEditor)
    in div (created by DashboardEditor)
    in div (created by DashboardEditor)
    in div (created by DashboardEditor)
    in DashboardEditor (created by Dashboard)
    in div (created by Dashboard)
    in NavigationPrompt (created by withRouter(NavigationPrompt))
    in withRouter(NavigationPrompt) (created by Dashboard)

Copy link
Contributor

@kardan kardan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now

@@ -10,6 +10,7 @@
(assert (:lumen-keycloak-client-secret env)
(error-msg "LUMEN_KEYCLOAK_CLIENT_SECRET"))
(assert (:lumen-keycloak-url env) (error-msg "LUMEN_KEYCLOAK_URL"))
#_(assert (:exporter-api-url env) (error-msg "EXPORTER_API_URL"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can remove definitely this line

kardan and others added 3 commits September 18, 2018 08:18
…shboards-#952

* develop: (37 commits)
  Hovering over charts shows different colour in shared visuals and dashboards #1667
  #1673 fixed pivot table data caching bug when switch vis type
  Fix harcoded url in dev environment (#1688)
  Bar chart Show label toggle turned on for existing bars #1685 Bar chart value labels do not fit in the bar #1682
  #1673 fixed linting
  Change visualisation type #1673
  Add Show labels toggle for bar charts #1655
  Changing dataset on existing chart crashes app #1679
  bar labels toggle fixes 4 #1655
  bar labels toggle fixes 3 #1655
  Improve derive/parse-row-object-references impl and test coverage
  Align translations
  Support to row names with hyphens in update dataset
  #1655 bar labels toggle fixes
  Pie chart label not shown #1558
  Add Show labels toggle for bar charts #1655
  Add transactional support to update dataset
  Dataset initial view has a right blank empty rectangle #1658
  #1573 added missing translations
  #1573 removed unused dep
  ...

# Conflicts:
#	client/src/components/charts/PivotTable.jsx
#	client/src/components/charts/SimpleBarChart.jsx
#	client/src/components/visualisation/VisualisationPreview.jsx
#	client/src/containers/Visualisation.jsx
#	client/src/translations/en.json
#	client/src/translations/fr.json
@kardan kardan changed the title Download option for visualisations and dashboards #952 Download option for visualisations and dashboards (connect #952) Oct 9, 2018
@ghost ghost added the in progress label Oct 9, 2018
@kardan kardan merged commit e4cc859 into develop Oct 9, 2018
@ghost ghost removed the in progress label Oct 9, 2018
@tangrammer tangrammer deleted the Download-option-for-visualisations-and-dashboards-#952 branch December 20, 2018 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants