igniteui-angular
igniteui-angular copied to clipboard
Deprecate rowID and rowData in interfaces
Following the removal of rowID
and rowData
properties from IgxRowDirective
and all public classes implementing the RowType
interface, considering the following:
Deprecate the old rowID
and rowData
from any or all of the following:
- [x] context object of
rowSelectorTemplate
- [ ]
IGridEditDoneEventArgs
- [ ]
IRowToggleEventArgs
- [ ]
IPinRowEventArgs
- [ ]
HierarchicalStateRecord
- [ ]
IPathSegment
and introduce the new key
and rowData
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.
With https://github.com/IgniteUI/igniteui-angular/pull/12394, a primaryKey
property was introduced in the IGridEditDoneEventArgs
and IRowDataEventArgs
:
Current task, however, aimed to replace rowID
with key
, so now we have inconsistencies between IGridEditDoneEventArgs
and IRowDataEventArgs
and other interfaces. see:
Shall we replace rowID
with key
or with primaryKey
in your opinion, @damyanpetev and @wnvko ?
primaryKey
according to Desi would be counter intuitive, since its naming is the same as the grid property.
If we dont change, however, there would be inconsistency, as shown above.
It seems like a trade-off and I am ok to go with the incosistency - it would be key
in most cases, only for the interfaces it would be primaryKey
in favour of codegen service.
I would go with key
everywhere. I know we just added primaryKey
, but let change it to key
.
I would go with
key
everywhere. I know we just addedprimaryKey
, but let change it tokey
.
Just to remind tt went from key
to primaryKey
in https://github.com/IgniteUI/igniteui-angular/pull/12394 by demand.
@wnvko The argument was explicitly renamed from key
to primaryKey
because it was not the same type - as in it'll never switch to the row object to use as identifier when a primaryKey on the Grid is not defined and will be empty instead. So it's indeed primary key only and best not to mix it with the key
concept on row.
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 key
and primaryKey
? Cuz that'd be super awkward lol
Thanks.
- No, we didn't end up with events that have both
key
andprimaryKey
- Yes, the
primaryKey
argument also crept into add and edit events, not onlyrowDeleted
. That's totally my mistake as I did not extend the row deleted arguments, as task was logged, but for me it "made sense" to do the same for edit and add events.
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.