-
Notifications
You must be signed in to change notification settings - Fork 11
feat: table add/remove columns #333
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #333 +/- ##
==========================================
- Coverage 86.24% 86.23% -0.01%
==========================================
Files 723 725 +2
Lines 14733 14807 +74
Branches 1881 1760 -121
==========================================
+ Hits 12706 12769 +63
- Misses 1995 2007 +12
+ Partials 32 31 -1
Continue to review full report at Codecov.
|
...ts/distributed-tracing/src/shared/dashboard/widgets/table/table-widget-renderer.component.ts
Show resolved
Hide resolved
projects/distributed-tracing/src/shared/dashboard/widgets/table/table-widget-column.model.ts
Outdated
Show resolved
Hide resolved
projects/components/src/table/header/table-header-cell-renderer.component.ts
Outdated
Show resolved
Hide resolved
@@ -165,15 +183,102 @@ export class TableWidgetModel { | |||
}) | |||
public pageable?: boolean = true; | |||
|
|||
@ModelProperty({ | |||
key: 'fetchEditableColumns', | |||
displayName: 'Query for additional columns not provided', |
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.
In what cases do we not want this? I'd assume to be implicit in whether we provide a scope or not - it's easier to add an explicit property later than to remove one.
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.
Edit columns comes with two modes. The first mode only uses the columns specified in the json. The second mode also fetches attributes and turns those into columns.
This property is to enable the second mode. The scope is hard coded in the data model and always present so we can't use that as a way to enable this mode.
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 the assumption I built into my statement may not hold - I assumed, if a data source was used that supported attributes (as determined by the presence of a scope), we'd always want this. If we want to selectively enable, then makes sense.
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.
Correct. In fact testing the attribute fetching mode, I'm finding issues with some attributes that can't be fetched. Going to have to work on those case by case, but it looks like using the json defined mode will be the typical case in the near term while we iron out the wrinkles with the troublesome attributes.
No description provided.