hughhhh closed pull request #4809: Filter recently viewed to just have explore and dashboard types URL: https://github.com/apache/incubator-superset/pull/4809
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/superset/assets/javascripts/profile/components/RecentActivity.jsx b/superset/assets/javascripts/profile/components/RecentActivity.jsx index 7099a08649..14cf7a8ddc 100644 --- a/superset/assets/javascripts/profile/components/RecentActivity.jsx +++ b/superset/assets/javascripts/profile/components/RecentActivity.jsx @@ -12,12 +12,14 @@ export default class RecentActivity extends React.PureComponent { render() { const rowLimit = 50; const mutator = function (data) { - return data.map(row => ({ - name: <a href={row.item_url}>{row.item_title}</a>, - type: row.action, - time: moment.utc(row.time).fromNow(), - _time: row.time, - })); + return data + .filter(row => row.action === 'dashboard' || row.action === 'explore') + .map(row => ({ + name: <a href={row.item_url}>{row.item_title}</a>, + type: row.action, + time: moment.utc(row.time).fromNow(), + _time: row.time, + })); }; return ( <div> ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services