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

Dash R 0.9.1 release #272

Merged
merged 68 commits into from Oct 13, 2021
Merged
Show file tree
Hide file tree
Changes from 57 commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
e5b0cfe
contribute test script
rpkyle Aug 3, 2020
a242d49
remove version updating in DESCRIPTION
rpkyle Aug 3, 2020
f1b81d6
fix EOL
rpkyle Aug 4, 2020
4d234cb
Merge pull request #222 from plotly/212-untangle-dashr-build
rpkyle Aug 4, 2020
4e4ccb1
Add support for user-defined server routes (#225)
rpkyle Aug 28, 2020
5bd1bbb
Provide support for script and stylesheet attributes (#226)
rpkyle Sep 4, 2020
3f862f9
Authenticate on pulls from Docker Hub (#231)
rpkyle Oct 6, 2020
3a3ee2f
Add support for callback graph improvements and timing (#224)
rpkyle Oct 9, 2020
766e3a8
Update CHANGELOG.md
rpkyle Oct 12, 2020
3b54773
189 - Add Pattern Matching Callbacks for Dash R (#228)
HammadTheOne Oct 21, 2020
03ed383
Fixing Null error with glue::glue interpolation (#233)
HammadTheOne Oct 21, 2020
5b31534
Update CHANGELOG.md
rpkyle Oct 26, 2020
2fdd157
Update dash-renderer to v1.8.2 (#234)
rpkyle Oct 26, 2020
bb9fc6a
bump package version to v0.8.0
rpkyle Oct 26, 2020
314ced8
Update R/dash.R
rpkyle Oct 27, 2020
3f9f9f1
Update tests/testthat/test-wildcards.R
rpkyle Oct 27, 2020
e093463
Update DESCRIPTION
rpkyle Oct 27, 2020
6ee2702
Merge branch 'master' into dev
rpkyle Oct 27, 2020
b477fe0
add PMC example
rpkyle Oct 27, 2020
6fffb44
update documentation
rpkyle Oct 27, 2020
b4ca5f9
update CHANGELOG release date
rpkyle Oct 27, 2020
24b491a
Merge branch 'dev' of github.com:plotly/dashR into dev
rpkyle Oct 27, 2020
c120ab2
:hammer: PMC docs refactor
rpkyle Oct 27, 2020
56d1dc0
Update tests/integration/callbacks/test_pattern_matching.py
rpkyle Oct 27, 2020
226f949
Update tests/integration/callbacks/test_pattern_matching.py
rpkyle Oct 27, 2020
fd5f3da
Update tests/integration/callbacks/test_pattern_matching.py
rpkyle Oct 28, 2020
c3a34b6
add import of glue
rpkyle Oct 28, 2020
877f463
add glue to imports.R
rpkyle Oct 28, 2020
b238a57
fix line length issue
rpkyle Oct 28, 2020
ff858ac
Fix setCallbackContext for wildcard and ordinary inputs (#237)
HammadTheOne Oct 30, 2020
7a23405
Merge branch 'master' into dev
rpkyle Oct 31, 2020
aac1db5
bump dependency versions
rpkyle Oct 31, 2020
b7b1cfa
update CHANGELOG
rpkyle Oct 31, 2020
4326e08
update dash-renderer to v1.8.3
rpkyle Oct 31, 2020
ed022c8
update CHANGELOG
rpkyle Oct 31, 2020
8c2dc66
Favicon fix (#240)
HammadTheOne Nov 17, 2020
d5a472e
Remove context reference from CircleCI (#241)
rpkyle Jan 19, 2021
0aec5f8
Dash R Core Package Unification (#243)
HammadTheOne May 18, 2021
54c9695
Added deprecation warning if dcc, html, or table packages are attache…
HammadTheOne May 20, 2021
a055015
Update `highlight.js` dependency for dash-table (#262)
HammadTheOne Aug 11, 2021
043c9ee
Add Dash 2 layout syntax wrappers and html tags (#265)
HammadTheOne Aug 25, 2021
456f09d
Fix suppress_callback_exceptions config (#268)
HammadTheOne Sep 22, 2021
948f0f7
Simplified callback syntax and addtional utility functions (#270)
HammadTheOne Sep 29, 2021
ed1acb3
Update monorepo and rebuild package (#271)
HammadTheOne Oct 3, 2021
4419ce3
Merge branch 'master' into dev
HammadTheOne Oct 4, 2021
0b3544b
Updating DESCRIPTION and .Rbuildignore forchecks
HammadTheOne Oct 4, 2021
89f74ef
Updating function descriptions and NAMESPACE imports
HammadTheOne Oct 4, 2021
5dda6f5
Fixed examples and updated docs
HammadTheOne Oct 5, 2021
7c76953
Updating version
HammadTheOne Oct 6, 2021
d419517
Remove references to dash namespace within package
HammadTheOne Oct 7, 2021
aff9b99
Update testthat and remove deprecated context calls
HammadTheOne Oct 7, 2021
0ad3b24
Removed fixup_metadata.R
HammadTheOne Oct 7, 2021
3aa7abd
Removing more dash namespace references
HammadTheOne Oct 8, 2021
e934ca0
Concatenating component function files
HammadTheOne Oct 8, 2021
68427b3
Updating checks
HammadTheOne Oct 8, 2021
cb93cdb
Merging components into package R files
HammadTheOne Oct 8, 2021
3b440da
Fixing check
HammadTheOne Oct 9, 2021
318d7cf
More package cleanup
HammadTheOne Oct 9, 2021
6a1886a
testthat 3.0.0
HammadTheOne Oct 9, 2021
950b90d
Rebuilding package
HammadTheOne Oct 9, 2021
dade919
Fixed conditional for multiple outputs
HammadTheOne Oct 9, 2021
bce3387
Fix no_update test
HammadTheOne Oct 9, 2021
68343eb
Fixing callback_instrumentation test
HammadTheOne Oct 9, 2021
27b98b3
Fixing unit test
HammadTheOne Oct 9, 2021
bde703b
Added DBC to Dash R package (#273)
HammadTheOne Oct 12, 2021
3c5e5e0
Reverting sorted prop order
HammadTheOne Oct 13, 2021
582fd92
Checks updates
HammadTheOne Oct 13, 2021
f71ec43
Re-running test
HammadTheOne Oct 13, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .Rbuildignore
Expand Up @@ -5,5 +5,11 @@ Makefile
announcement\.Rmd
todo\.txt
.github
.eslintrc
.prettierrc
build/.dockerignore
tests/integration
tests/circleci
.circleci
gulp-assets
node_modules
12 changes: 4 additions & 8 deletions .circleci/config.yml
@@ -1,15 +1,13 @@
version: 2

jobs:


"test": &test-template
working_directory: ~/dashr
docker:
- image: plotly/dashr:ci
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
password: $DASH_PAT_DOCKERHUB
environment:
PERCY_PARALLEL_TOTAL: '-1'
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'True'
Expand All @@ -33,18 +31,18 @@ jobs:
- run:
name: 🚧 install R dependencies
command: |
sudo Rscript -e 'commit_hash <- readChar("commit.txt", file.info("commit.txt")$size); message("Preparing to install plotly/dashR ", commit_hash, " ..."); install.packages("remotes"); remotes::install_github("plotly/dashR", upgrade=TRUE, ref=commit_hash, force=TRUE)'
sudo Rscript -e 'commit_hash <- readChar("commit.txt", file.info("commit.txt")$size); message("Preparing to install plotly/dashR ", commit_hash, " ..."); install.packages("remotes"); remotes::install_github("plotly/dashR", upgrade=TRUE, ref=commit_hash, dependencies=TRUE, force=TRUE)'

- run:
name: ⚙️ Integration tests
command: |
python -m venv venv
. venv/bin/activate
pip install --upgrade pip
git clone --depth 1 https://github.com/plotly/dash.git dash-main
cd dash-main && pip install -e .[dev,testing] --progress-bar off && cd ..
cd dash-main/\@plotly/dash-generator-test-component-nested && npm ci && npm run build && sudo R CMD INSTALL . && cd ../../..
cd dash-main/\@plotly/dash-generator-test-component-standard && npm ci && npm run build && sudo R CMD INSTALL . && cd ../../..
export PATH=$PATH:/home/circleci/.local/bin/
pytest --nopercyfinalize --junitxml=test-reports/dashr.xml tests/integration/
- store_artifacts:
path: test-reports
Expand All @@ -67,6 +65,4 @@ workflows:
version: 2
build:
jobs:
- "test":
context:
- dash-docker-hub
- "test"
126 changes: 126 additions & 0 deletions .eslintrc
@@ -0,0 +1,126 @@
{
"extends": ["eslint:recommended", "prettier"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"templateStrings": true,
"jsx": true
}
},
"env": {
"browser": true,
"es6": true,
"jasmine": true,
"jest": true,
"node": true
},
"globals": {
"jest": true
},
"plugins": [
"react",
"import"
],
"rules": {
"accessor-pairs": ["error"],
"block-scoped-var": ["error"],
"consistent-return": ["error"],
"curly": ["error", "all"],
"default-case": ["error"],
"dot-location": ["off"],
"dot-notation": ["error"],
"eqeqeq": ["error"],
"guard-for-in": ["off"],
"import/export": "error",
"import/named": ["off"],
"import/namespace": ["off"],
"import/no-duplicates": ["error"],
"import/no-named-as-default": ["error"],
"import/no-unresolved": ["off"],
"new-cap": ["error", {
"capIsNewExceptionPattern": "Immutable\\.*"
}],
"no-alert": ["off"],
"no-caller": ["error"],
"no-case-declarations": ["error"],
"no-console": ["error"],
"no-div-regex": ["error"],
"no-dupe-keys": ["error"],
"no-else-return": ["error"],
"no-empty-pattern": ["error"],
"no-eq-null": ["error"],
"no-eval": ["error"],
"no-extend-native": ["error"],
"no-extra-bind": ["error"],
"no-extra-boolean-cast": ["error"],
"no-inline-comments": ["off"],
"no-implicit-coercion": ["error"],
"no-implied-eval": ["error"],
"no-inner-declarations": ["off"],
"no-invalid-this": ["error"],
"no-iterator": ["error"],
"no-labels": ["error"],
"no-lone-blocks": ["error"],
"no-loop-func": ["error"],
"no-multi-str": ["error"],
"no-native-reassign": ["error"],
"no-new": ["error"],
"no-new-func": ["error"],
"no-new-wrappers": ["error"],
"no-param-reassign": ["off"],
"no-process-env": ["warn"],
"no-proto": ["error"],
"no-redeclare": ["error"],
"no-return-assign": ["error"],
"no-script-url": ["error"],
"no-self-compare": ["error"],
"no-sequences": ["error"],
"no-shadow": ["off"],
"no-throw-literal": ["error"],
"no-unused-expressions": ["error"],
"no-use-before-define": ["error", "nofunc"],
"no-useless-call": ["error"],
"no-useless-concat": ["error"],
"no-with": ["error"],
"prefer-const": ["error"],
"radix": ["error"],
"react/jsx-no-duplicate-props": ["error"],
"react/jsx-no-undef": ["error"],
"react/jsx-uses-react": ["error"],
"react/jsx-uses-vars": ["error"],
"react/no-did-update-set-state": ["error"],
"react/no-direct-mutation-state": ["error"],
"react/no-is-mounted": ["error"],
"react/no-unknown-property": ["error"],
"react/prefer-es6-class": ["error", "always"],
"react/prop-types": "error",
"valid-jsdoc": ["off"],
"yoda": ["error"],
"spaced-comment": ["error", "always", {
"block": {
"exceptions": ["*"]
}
}],
"no-unused-vars": ["error", {
"args": "after-used",
"argsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^e$"
}],
"no-magic-numbers": ["error", {
"ignoreArrayIndexes": true,
"ignore": [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 100, 10, 16, 0.5, 25]
}],
"no-underscore-dangle": ["off"],
"no-useless-escape": ["off"]
}
}
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -3,6 +3,9 @@
.RData
.DS_Store

dash-core-components/
dash-html-components/
dash-table/
node_modules/
python/
todo.txt
Expand Down
6 changes: 6 additions & 0 deletions .prettierrc
@@ -0,0 +1,6 @@
{
"tabWidth": 4,
"singleQuote": true,
"bracketSpacing": false,
"trailingComma": "es5"
}
19 changes: 18 additions & 1 deletion CHANGELOG.md
Expand Up @@ -2,8 +2,25 @@
All notable changes to `dash` will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [0.9.0] - 2020-10-31
## [1.0.0] - 2021-10-04
### Added
- Dash layout wrapper functions are included, which simplify the layout syntax for writing Dash apps. This includes the ability to pipe in the `app` object to layout and meta functions, as well as tags which simplify `html` component arguments and children. [#265](https://github.com/plotly/dashR/pull/265)

- Added simplified and flexible callbacks with the `add_callback` helper function. Included in this change are multiple additional helper functions to simplify Dash app configuration and tag usage. [#270](https://github.com/plotly/dashR/pull/270)

### Changed
- Unified the core Dash packages (dash, dashCoreComponents, dashHtmlComponents, dashTable) for streamlined maintenance and accessibility. The namespaces of these packages will be combined under the `dash` namespace, and all artifacts from the ancillary dash packages will be included with Dash for R. [#243](https://github.com/plotly/dashr/pull/243)

### Fixed
- Minor fix for favicon issue continued from [#240](https://github.com/plotly/dashr/pull/240) (for more details, see [#243](https://github.com/plotly/dashR/pull/243#issuecomment-842813526)).
- Minor fix to enable `suppress_callback_exceptions` configuration option when creating a Dash app. [#268](https://github.com/plotly/dashr/pull/268)


## [0.9.1] - 2020-11-16
### Fixed
- A regression which prevented favicons from displaying properly has been resolved, and a default Dash favicon is now supplied when none is provided in the `assets` directory. [#240](https://github.com/plotly/dashr/pull/240)

## [0.9.0] - 2020-10-31
### Fixed
- Fixes a minor bug in `setCallbackContext` (described in [#236](https://github.com/plotly/dashR/issues/236)) which prevented pattern-matching callbacks from working properly if one or more `input` statements did not include a selector. [#237](https://github.com/plotly/dashR/pull/237)

Expand Down
27 changes: 9 additions & 18 deletions DESCRIPTION
@@ -1,14 +1,11 @@
Package: dash
Title: An Interface to the Dash Ecosystem for Authoring Reactive Web Applications
Version: 0.9.0
Authors@R: c(person("Chris", "Parmer", role = c("aut"), email = "chris@plotly.com"), person("Ryan Patrick", "Kyle", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-5829-9867"), email = "ryan@plotly.com"), person("Carson", "Sievert", role = c("aut"), comment = c(ORCID = "0000-0002-4958-2844")), person("Hammad", "Khan", role = c("aut"), comment = c(ORCID = "0000-0003-2479-9841"), email = "hammadkhan@plotly.com"), person(family = "Plotly Technologies", role = "cph"))
Version: 0.6.0
Authors@R: c(person("Chris", "Parmer", role = c("aut"), email = "chris@plotly.com"), person("Ryan Patrick", "Kyle", role = c("aut"), comment = c(ORCID = "0000-0001-5829-9867"), email = "ryan@plotly.com"), person("Carson", "Sievert", role = c("aut"), comment = c(ORCID = "0000-0002-4958-2844")), person("Hammad", "Khan", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-2479-9841"), email = "hammadkhan@plotly.com"), person(family = "Plotly Technologies", role = "cph"))
Description: A framework for building analytical web applications, Dash offers a pleasant and productive development experience. No JavaScript required.
Depends:
R (>= 3.0.2)
Imports:
dashHtmlComponents (== 1.1.1),
dashCoreComponents (== 1.13.0),
dashTable (== 4.11.0),
R6,
fiery (> 1.0.0),
routr (> 0.2.0),
Expand All @@ -22,20 +19,14 @@ Imports:
mime,
crayon,
brotli,
glue
glue,
magrittr,
methods,
rlang,
utils
Suggests:
testthat
Collate:
'utils.R'
'dependencies.R'
'dash-package.R'
'dash.R'
'imports.R'
'print.R'
'internal.R'
Remotes: plotly/dash-html-components@7209e0a,
plotly/dash-core-components@91a424e,
plotly/dash-table@aa519b7
testthat (>= 3.1.0),
Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't even know there was a 3.1.0! Looks like it only got released a couple days ago. I think 3.0.0 would be just fine too

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
testthat (>= 3.1.0),
testthat (>= 3.0.0),

rstudioapi
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Expand Down