-
Notifications
You must be signed in to change notification settings - Fork 973
More Sync sites refactor fixes and remove siteUtil.js #10222
More Sync sites refactor fixes and remove siteUtil.js #10222
Conversation
app/common/lib/historyUtil.js
Outdated
} | ||
const order = site.get('order') | ||
const location = site.get('location') | ||
const tags = site.get('tags') |
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.
Is this check added, because we still have tags
property on other devices? tags
were removed from browser-laptop
repo
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.
as an alternative we can add type
property to the history object like we have it for bookmarks and bookmarks folders and use siteTags.HISTORY
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.
for syncing history sites, we actually don't need tags nor type. I thought it might be useful to have a reusable isHistorySite()
but I think I'll just re-remove it from this PR.
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.
sounds good to me, let's remove it
it('returns false for a default site', function () { | ||
const siteDetail = Immutable.fromJS({ | ||
location: testUrl1, | ||
tags: [siteTags.DEFAULT], |
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.
siteTags.DEFAULT
was deprecated
it('returns false for a brave default site', function () { | ||
const siteDetail = Immutable.fromJS({ | ||
location: testUrl1, | ||
tags: [siteTags.DEFAULT], |
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.
ditto
f587994
to
c7d84ec
Compare
3e1899b
to
90f81e9
Compare
@NejcZdovc I've made updates. There are now only 2 failing tests:
Trying those test plans manually seems to work, so I think it's an error in the tests. |
4790fc0
to
ddd0205
Compare
test 1 is passing now |
ddd0205
to
7990ccb
Compare
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests