-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fixes to address unintended props reshuffling behaviour #545
Merged
Changes from 22 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
d208936
fixes to address default values, support for source maps
af56606
adjust R package dependencies
96c69c1
added file to .gitignore
c8573ad
corrected error in help
34837df
inserted whitespace as suggested by alexcjohnson
e53cca2
fixed deps naming issue for install_github
45a7dcd
added import for _get_metadata
9fe81f4
restored _get_metadata call for JSON imports
04d2b3f
fixed .Rbuildignore strings
f54fee1
fix for lone flake8 error
624c389
replaced second occurrence of json.loads() with _get_metadata
5498307
addressed flake8 errors
aa8c6dc
modifed metadata load path
74a4d5b
replaced missing parenthesis
bcb3d48
flake8 passes
5a4c5fb
attempting alternative approach for JSON>>OrderedDict
3eca5be
corrected inst/lib to inst/deps
be0646b
removed import of _get_metadata
85ada0c
pylint and flake8 passing
d5fdc19
removed spurious ref to metadata
c90d0e5
refactored prop_keys exclusion
4e4a57a
pylint fix for indentation
c20ced1
edits to fully address :hocho: events
b9552ab
updated .gitignore
8aa3f25
:left_right_arrow: added byteify fn to prevent str >> unicode
5e251f0
:two::three: attempt to preserve version compatibility
1aeb507
:bug: revised byteify to use items() vs iteritems in :three:
a334699
:hammer: rewrote code to only use byteify in :two:
01b6d9d
prop_keys as list to handle TypeError for odict_keys in :three:
2251b30
:rewind: do not set sort_keys
4ee280b
Merge branch 'master' into RPK2
rpkyle 9108f1e
:hammer: wildcards only available when props contain -*
a97d523
Merge branch 'RPK2' of github.com:plotly/dash into RPK2
38d693e
updated R component generation to properly provide package help
3499cd8
:shirt: flake8 edits
a622ccb
:hammer: version information now sourced consistently
817bfb0
:shirt: pylint ws removal
c65084f
updated R package description to note two langs
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ dist | |
npm-debug* | ||
/.tox | ||
.idea | ||
package-lock.json | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from __future__ import print_function | ||
from collections import OrderedDict | ||
|
||
import json | ||
import sys | ||
|
@@ -64,7 +65,7 @@ def generate_components(components_source, project_shortname, | |
file=sys.stderr) | ||
sys.exit(1) | ||
|
||
metadata = json.loads(out.decode()) | ||
metadata = json.loads(out.decode(), object_pairs_hook=OrderedDict) | ||
generator_methods = [generate_class_file] | ||
|
||
if rprefix: | ||
|
@@ -82,13 +83,13 @@ def generate_components(components_source, project_shortname, | |
) | ||
|
||
with open(os.path.join(project_shortname, 'metadata.json'), 'w') as f: | ||
json.dump(metadata, f) | ||
json.dump(metadata, f, sort_keys=True) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⏪ Sorting the key reorder the keys, the ordered dict will keep the right order alone. |
||
|
||
generate_imports(project_shortname, components) | ||
|
||
if rprefix: | ||
with open('package.json', 'r') as f: | ||
pkg_data = json.load(f) | ||
pkg_data = json.load(f, object_pairs_hook=OrderedDict) | ||
|
||
generate_exports( | ||
project_shortname, components, metadata, pkg_data, prefix | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't be necessary to ignore this, though there are occasional issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
K, this has been 🔪 ... as has the
package-lock.json
.