-
Notifications
You must be signed in to change notification settings - Fork 161
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
Deprecate rowID and rowData in interfaces #10617
Comments
There has been no recent activity and this issue has been marked inactive. |
There has been no recent activity and this issue has been marked inactive. |
There has been no recent activity and this issue has been marked inactive. |
There has been no recent activity and this issue has been marked inactive. |
There has been no recent activity and this issue has been marked inactive. |
There has been no recent activity and this issue has been marked inactive. |
I would go with |
Just to remind tt went from |
@wnvko The argument was explicitly renamed from IIRC, the argument was actually only on the delete event btw (since that's where it was needed), yet it might've crept up to some other events? Did we end up with events that have both |
Thanks.
Will try to fix this in current PR. |
There has been no recent activity and this issue has been marked inactive. |
There has been no recent activity and this issue has been marked inactive. |
Plan for version 17. |
There has been no recent activity and this issue has been marked inactive. |
* refactor(Grid): deprecate rowID and rowData props from the grid eventArgs #10617 * chore(*): address review comment for editDoneArgs * chore(*): update the tests according new API changes * chore(*): fix tests accordinly newly addressed API changes * chore(*): fix rowEditDone event args * fix(*): do not clear summaries when row edit is not complete #10617 * chore(*): fix linting errors * chore(grid): separate grid and cell event interfaces, events reorganization * chore(*): add proper description for interfaces * chore(*): fix the description of the deprecated properties * feat(*): expose new event arguments for grid rowAdd and rowDelete #10617 * chore(*): add key and deprecate primaryKey event args * chore(*): address the issues in the test due to changes in the event arguments * chore(*): fix some linting errors * chore(*): fix failing test * chore(*): fix failing tests * chore(*): change the version for the deprecation of rowId and rowData props * chore(*): describe in the changelog the deprecated props rowID and rowData * chore(*): remove some leftover comment * chore(*): apply some of the review comments * Update CHANGELOG.md Co-authored-by: Konstantin Dinev <[email protected]> * chore(*): address some more comments * feat(*): reintroduce primaryKey prop and introduce rowKey instead key #10617 * test(Grid): fix the test with reintroduced props primaryKey and rowKey #10617 * feat(*): remove the deprecation of rowData prop and remove data prop #10617 * chore(*): drop the new interfaces entirely * test(Grid): address the latest changes in the gridEdit events #10617 * chore(*): remove cellID and and column from IRowDataCancelableEventArgs * chore(*): deprecate data and introduce rowData in IBaseRowDataEventArgs * chore(*): deprecate key, introduce rowKey * chore(*): remove unnecessary added key prop in IRowDataEventArgs * chore(*): unify rowKey prop for the rest of the interfaces * chore(*): update the changelog * chore(*): remove unused interface * chore(*): update changelog for pivot * chore(*): update changelog for pivot * Apply suggestions minor formatting and redundant comments * chore(*): add wrongfully removed comments * chore(*): should not use deprecated props internally * chore(*): fix indentation * feat(*): IRowDataCancelableEventArgs to extend IGridEditEventArgs #10617 * chore(*): update the deprecation version and the changelog description * chore(*): changelog enhcaements * chore(*): fix typo in interace name * Update projects/igniteui-angular/src/lib/grids/summaries/grid-summary.service.ts * Update projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid.component.ts * Update projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid-crud.spec.ts * Update projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid-crud.spec.ts * Update projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-editing-actions.component.spec.ts * chore(*): fix incorrect work usage * chore(grid): cleanup redundant comments * chore(grid): row data cancelable spelling; consistent w/ base interface * docs(grid): update events changelog * docs(changelog): grid event arg deprecations separate section --------- Co-authored-by: Hristo Anastasov <[email protected]> Co-authored-by: Stamen Stoychev <[email protected]> Co-authored-by: Konstantin Dinev <[email protected]> Co-authored-by: Damyan Petev <[email protected]>
Following the removal of
rowID
androwData
properties fromIgxRowDirective
and all public classes implementing theRowType
interface, considering the following:Deprecate the old
rowID
androwData
from any or all of the following:rowSelectorTemplate
IGridEditDoneEventArgs
IRowToggleEventArgs
IPinRowEventArgs
HierarchicalStateRecord
#13425IPathSegment
and introduce the new
key
orprimaryKey
(already done with #12394) anddata
More stuff to be addressed in this PR:
IGridEditDoneEventArgs
toICellEditDoneEventArgs
and
IRowEditDoneEventArgs
as follows:IGridEditDoneEventArgs
to:IGridEditEventArgs
toGrid,interface.ts shoud look like:
DONE b92d8ff?show-viewed-files=true&file-filters%5B%5D=
For
rowAdd
androwDelete
emit new interface, which is cancellable - maybeIRowDataEventArgs
is the proper candidate.2.1 - see comment on line 555 in grid,interface about this change - in the end we can reconsider if this will be introduced with 16.1 or other more major version
2.2 - add rowDelete to GridType, build correct object to be emitted
Change
rowAdd
androwDelete
types for treeGrid and Pivot to be compatible with GridTypeThe
primaryKey
argument also crept into add and edit events, not onlyrowDeleted
:The rest of the events, which emitted
rowID
until now - see if needed to migraterowID
torowKey
orkey
. For row events, it makes sense to bekey
, while for cell events it makes sense to berowKey
. Still, if cell event to emitrowKey
in difference to row events, which will be emittingkey
, is a big effort, keep cell events to also emitkey
and make sure it is properly documented, so that a user knows what is reading througheventArgs.key
Make a list of the breaking changes and think of way to avoid them. Damyan can help here too.
The text was updated successfully, but these errors were encountered: