Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Dash 1.0 - Update version to 1.0.0a1 #97

Merged
merged 8 commits into from
Dec 18, 2018

Conversation

valentijnnieman
Copy link
Contributor

@valentijnnieman valentijnnieman commented Nov 12, 2018

This PR upgrades React to 16.6.1, and bumps the version up to 1.0.0-rc1.

Relies on:
dash-core-components 1.0.0
dash-html-components 1.0.0
dash 1.0.0

===========================
@Marc-Andre-Rivet is hijacking this existing PR from @valentijnnieman 😄

Fixes https://github.com/plotly/dash-core/issues/4

  • Bumps version to 1.0.0a1 (1.0.0-alpha1) instead of rc1 to better respect semver
  • Updating internal references to 16.6.3 (bumping 16.2.0, dropping 15.x)
  • Updating internal copy of react and react-dom min files
  • Updated destination branch to release-v1
  • Not taking care of dev-requirements.txt yet

@nite
Copy link

nite commented Dec 3, 2018

Is there any way to install this rc release via pip? Or, anything blocking merging it to master for full release?

@tcbegley
Copy link

tcbegley commented Dec 5, 2018

Hey @nite, you can install with pip install dash-renderer==1.0.0rc1.

I'm not in a position to comment on the plans for merging, but since this introduces some pretty major changes I think it won't happen imminently. Check this issue for some pretty extensive discussion of the upcoming changes.

@Marc-Andre-Rivet Marc-Andre-Rivet changed the base branch from master to release-v1 December 17, 2018 19:01
@Marc-Andre-Rivet Marc-Andre-Rivet changed the title Upgrade to React 16.6.1 Dash 1.0 - Update version to 1.0.0a1 Dec 17, 2018
Marc-André Rivet added 6 commits December 17, 2018 14:12
# Conflicts:
#	CHANGELOG.md
#	dash_renderer/dash_renderer.dev.js
#	dash_renderer/dash_renderer.min.js
#	dash_renderer/version.py
#	package-lock.json
#	package.json
@Marc-Andre-Rivet Marc-Andre-Rivet removed the dash 2.0 For issues involving changes potentially slated for Dash 2.0 label Dec 17, 2018
@Marc-Andre-Rivet Marc-Andre-Rivet removed the request for review from bpostlethwaite December 17, 2018 22:45
@Marc-Andre-Rivet
Copy link
Contributor

Marc-Andre-Rivet commented Dec 17, 2018

@nite @tcbegley Thanks for your patience. The dash-renderer and dash-core-components have both previously been pre-released under 1.0.0rc1, this release will be deleted and replaced with 1.0.0a1. We are doing this in an attempt to better match semantic versioning expectations -- an rc release should have a fairly stable implementation and contract with the outside and this react version bump is but the first part of this Dash 1.0 transition, meaning that at this point in time there is no guarantee that the implementation is stable project wide or that we will not significantly change the contract.

As 1.0.0a1 < 1.0.0rc1 this may cause some inconvenience and I apologize for that.

@@ -51,7 +51,7 @@ class Reloader extends React.Component {
) {
// Look if it was a css file.
let was_css = false;
for (let a of reloadRequest.content.files) {
for (const a of reloadRequest.content.files) {
Copy link
Contributor

Choose a reason for hiding this comment

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

lint auto fix

@@ -1754,29 +1754,12 @@ def test_update_react_version(self):
dash_renderer._js_dist_dependencies,
[{
'external_url': [
'https://unpkg.com/react@15.4.2/dist/react.min.js',
'https://unpkg.com/react-dom@15.4.2/dist/react-dom.min.js',
'https://unpkg.com/react@16.6.3/umd/react.production.min.js',
Copy link
Contributor

Choose a reason for hiding this comment

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

update our local and remote react versions

_REACT_VERSION_TO_URLS = {
'15.4.2': {
'16.6.3': {
Copy link
Contributor

Choose a reason for hiding this comment

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

Bump to 16.x, remove 15.x

@@ -1,6 +1,6 @@
dash_core_components==0.33.0
dash_html_components==0.11.0rc5
dash==0.32.0
dash_html_components==0.13.4
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a fix in html comps for react 16, needs to be present for all tests to pass

Copy link
Member

@bpostlethwaite bpostlethwaite left a comment

Choose a reason for hiding this comment

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

Great!

Going forward how should reviewers ensure / feel confident that these PRs are going to be tested in our internal applications for real world testing?

Is there going to be another PR for release-v1 -> master where we will have a checkbox list after the last commit containing all the apps we need to have tested in?

dash_html_components==0.11.0rc5
dash==0.32.0
dash_html_components==0.13.4
dash==0.32.2
Copy link
Member

Choose a reason for hiding this comment

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

should we lock on to rc releases (github branch) here so we are testing against the latest of everything?

Copy link
Contributor

Choose a reason for hiding this comment

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

We're already planning on making these point to head of master / release-v1 soon

@Marc-Andre-Rivet
Copy link
Contributor

@bpostlethwaite A follow up to these is having a release-v1 of the dash-docs. Haven't included a task to test in at least of subset of existing apps when getting ready to push back into master. If you have a good subset in mind, would you mind creating an issue with some ideas on this in the dash-core repo and tagging it with Dash 1.0 label?

@Marc-Andre-Rivet Marc-Andre-Rivet merged commit 8d1df22 into release-v1 Dec 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants