-
Notifications
You must be signed in to change notification settings - Fork 28
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
Propagate muti-cell paste event to Dash #261
Merged
Merged
Changes from 16 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
dac9b37
Change the 'onCellValueChanged' collection mechanism from collecting …
emilhe 5e06c5a
Add more strict type checking
emilhe b706454
Run prettier src --write
emilhe 5f9c2bd
Update unit test to handle array structure
emilhe b2a9c70
Add multi-event test
emilhe 9c4b043
Test CELL_VALUE_CHANGED_DEBOUNCE_MS = 10
emilhe 4c0a37c
Try simpler unit test (attempt to fix react-18 compatibility issue)
emilhe de279d1
Test (extremely) high CELL_VALUE_CHANGED_DEBOUNCE_MS (attempt to fix …
emilhe 01d670b
updating utils to work with editing inputs from full row editing
BSd3v 064819a
A few corrections, refactor is_undefined_or_null into function
emilhe 1426b5d
Linting fixes
emilhe 9a30b81
Reduce CELL_VALUE_CHANGED_DEBOUNCE_MS to a minimum (1 seems to be eno…
emilhe 83d2be2
Add changelog entry
emilhe 8ecda63
mimicing changes in the bump to v31 branch
BSd3v 549e704
fix for linting
BSd3v 0d786e7
Merge remote-tracking branch 'origin/cellValueChanged' into cellValue…
emilhe fc50267
Update changelog entry
emilhe 2b9a276
Simplify pendingCellValueChanges flow
emilhe 09e8b2b
Update CHANGELOG.md
emilhe 1f5da06
bumping post build check to `es2017` rather than `es2015`
BSd3v 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
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
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
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
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.
Rather than
### Fixed
this should be a### Changed
with a very prominent note that it's a breaking change. So it's good that we're about to release a new major version for AG Grid v31 or this kind of change would not be allowed 😅 But it makes sense, I don't see any non-breaking way to support these events.@BSd3v this makes me wonder, are there any other props that might have similar problems? If so now is the time to convert them into arrays too!
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.
If backwards compatibility is a main concern, we could
cellValueChanged
to union of single/list of eventsCELL_VALUE_CHANGED_DEBOUNCE_MS
, which defaults to -1, in which case we fallback to the old behavior, thus returning a single element. Setting the value it to 0 (or higher) will enable the new behavior, thus returning a listMy initial implementation was actually along these lines, but @BSd3v suggested to target a simpler implementation (the one in this PR) in favor of backwards compatibility since a major release is in the making.
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.
Yep, I agree the simpler API is more important than backward compatibility, given the upcoming major release and the fact it would be annoying to use the prop if sometimes it’s a list and sometimes not. Just make sure the changelog makes the breaking change clear.
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.
So far, I haven't found anything that operates this way.
The team has also been working on the v31 updates for the docs, and those types of things haven't popped up that I am aware of.
The one thing I don't know about is the grid's state (new feature of the grid).
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.
I have updated the comment, indicating that this is a change. Should I note explicitly that the change is breaking (I am not sure how breaking changes are documented in this project - I didn't see any mentioned of breaking changes previously in the changelog)?
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.
This would be the first since switching to version 2 from 1.