Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

History bugfixes #3459

Merged
merged 1 commit into from
Aug 26, 2016
Merged

History bugfixes #3459

merged 1 commit into from
Aug 26, 2016

Conversation

bsclifton
Copy link
Member

- Folders are no longer considered history; fixes #3453
- Filters out about pages from history; fixes #3366
if (reduced) {
return Array.isArray(reduced)
? reduced
: [{date: this.getDayString(locale, reduced), entries: [reduced]}]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line has the fix for showing single entries. Before, it would just return the object (which fails when trying to do the map() in the render for the HistoryDay control)

@@ -414,6 +414,50 @@ describe('siteUtil', function () {
})
})

describe('isHistoryEntry', function () {
it('returns true for a typical history entry', function () {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if someone else reading this will understand what makes it "typical". Maybe "returns true for site entries with a lastAccessedTime"?

@bridiver
Copy link
Collaborator

Looks good! I think ideally we'd like to filter the data before it gets to the history page, but we can do a larger refactoring later

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bookmark folders are appearing in browser history Bookmarked about pages appear in the history
4 participants