kgabryje commented on code in PR #25961:
URL: https://github.com/apache/superset/pull/25961#discussion_r1410882295


##########
superset-frontend/src/pages/ChartList/index.tsx:
##########
@@ -438,44 +434,30 @@ function ChartList(props: ChartListProps) {
       {
         Cell: ({
           row: {
-            original: { last_saved_by: lastSavedBy },
+            original: { owners = [] },
           },
-        }: any) => <>{changedByName(lastSavedBy)}</>,
-        Header: t('Modified by'),
-        accessor: 'last_saved_by.first_name',
+        }: any) => <FacePile users={owners} />,
+        Header: t('Owners'),
+        accessor: 'owners',
+        disableSortBy: true,
         size: 'xl',
       },
       {
         Cell: ({
           row: {
-            original: { last_saved_at: lastSavedAt },
+            original: { last_saved_at: changedOn, last_saved_by: changedBy },
           },
         }: any) => (
-          <span className="no-wrap">
-            {lastSavedAt ? moment.utc(lastSavedAt).fromNow() : null}
-          </span>
+          <AuditInfo
+            type={AuditInfoType.Modified}
+            date={changedOn}

Review Comment:
   Nevermind, it was noted by Michael already 🙂 



##########
superset-frontend/src/pages/ChartList/index.tsx:
##########
@@ -438,44 +434,30 @@ function ChartList(props: ChartListProps) {
       {
         Cell: ({
           row: {
-            original: { last_saved_by: lastSavedBy },
+            original: { owners = [] },
           },
-        }: any) => <>{changedByName(lastSavedBy)}</>,
-        Header: t('Modified by'),
-        accessor: 'last_saved_by.first_name',
+        }: any) => <FacePile users={owners} />,
+        Header: t('Owners'),
+        accessor: 'owners',
+        disableSortBy: true,
         size: 'xl',
       },
       {
         Cell: ({
           row: {
-            original: { last_saved_at: lastSavedAt },
+            original: { last_saved_at: changedOn, last_saved_by: changedBy },
           },
         }: any) => (
-          <span className="no-wrap">
-            {lastSavedAt ? moment.utc(lastSavedAt).fromNow() : null}
-          </span>
+          <AuditInfo
+            type={AuditInfoType.Modified}
+            date={changedOn}

Review Comment:
   Nevermind, it was noted by Michael already 🙂 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to