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

Clicking on pinned sites in Brave Payments removes them from the pinned list. #12274

Closed
jenn-rhim opened this issue Dec 13, 2017 · 11 comments
Closed

Comments

@jenn-rhim
Copy link

jenn-rhim commented Dec 13, 2017

Description

[before clicking Stereokroma YT]
screen shot 2017-12-13 at 1 11 36 pm

[after clicking]
screen shot 2017-12-13 at 1 11 50 pm

Steps to Reproduce

Actual result:

Expected result:

Reproduces how often:

Brave Version

about:brave info:

0.19.116

Reproducible on current live release:

Additional Information

Mac 10.13.2

@NejcZdovc
Copy link
Contributor

@jenn-rhim I tried to reproduce this, but without success. Can you please provide some more info?
OS, how to reproduce, which version, is this reproducible every time, etc?

@NejcZdovc NejcZdovc added the needs-info Another team member needs information from the PR/issue opener. label Dec 15, 2017
@jenn-rhim
Copy link
Author

jenn-rhim commented Dec 15, 2017

I've added Brave vs and OS info above.

It is happening right now, consistently for me.

Go to the Preferences > Payments > click on a pinned site > return to Payments: the site you clicked gets removed from pinned list. It appears that the same phenomenon doesn't happen to the sites that are not pinned. -- I've tried this 5 sites each, pinned sites and unpinned sites.

@NejcZdovc
Copy link
Contributor

hmm, that's really strange. Will ping you on slack and maybe we can do screen share and figure it out what's going on 😃

@NejcZdovc NejcZdovc self-assigned this Dec 15, 2017
@NejcZdovc
Copy link
Contributor

@jenn-rhim can you please try this with the latest beta version

@NejcZdovc NejcZdovc removed their assignment Jan 15, 2018
@NejcZdovc NejcZdovc added the needs-STR This bug needs steps to reproduce. label Jan 15, 2018
@jenn-rhim
Copy link
Author

@NejcZdovc yes, it is still happening on my browser. i just updated to 0.19.134. i had @alexwykoff sitting next to me to observe it. :)

@bsclifton
Copy link
Member

Oh wow- this is really bad. It's happening to me... seems easy to reproduce. I've lost most of my ledger screen now because of this 😦

I think this might be the root cause for #12262 which @jenn-rhim also reported

@bsclifton
Copy link
Member

@NejcZdovc this seems to be related to how there are two synopsis...

For the about page, we set the synopsis here:

const migration = appState.get('migrations')

However, in ledgerState, it's setting a different location:

saveSynopsis: (state, publishers, options) => {
state = validateState(state)
if (options != null) {
state = state.setIn(['ledger', 'synopsis', 'options'], makeImmutable(options))
}
if (publishers != null) {
state = state.setIn(['ledger', 'synopsis', 'publishers'], makeImmutable(publishers))
}
return state
},

I found a comment where you reference the duplicate entries:

const synopsisPaths = [
// TODO (nejc) - remove duplicate entries in synopsis and about/synopsis
['ledger', 'synopsis', 'publishers'],
['ledger', 'about', 'synopsis']
]

I suspect that clicking the entry is removing the entry from the 'ledger', 'about' synopsis by calling prune. I still have the value in my session store, but it's in the other location 'ledger', 'synopsis'

@bsclifton bsclifton added this to the 0.21.x (Developer Channel) milestone Jan 24, 2018
@NejcZdovc NejcZdovc assigned NejcZdovc and unassigned jenn-rhim Feb 12, 2018
@NejcZdovc NejcZdovc removed needs-STR This bug needs steps to reproduce. needs-info Another team member needs information from the PR/issue opener. labels Feb 12, 2018
@NejcZdovc
Copy link
Contributor

I don't have STR, but I have a profile on which I can reproduce it constantly.

@NejcZdovc
Copy link
Contributor

Problem is in pageDataChanged as far as I can tell

@NejcZdovc NejcZdovc modified the milestones: 0.21.x (Beta Channel), 0.20.x Hotfix 2 (Referral Promotion) Feb 12, 2018
@kjozwiak
Copy link
Member

@bsclifton @NejcZdovc do we have any STR that we could use as a test plan?

@bsclifton
Copy link
Member

bsclifton commented Feb 14, 2018

Removing milestone; the issue (as described) was fixed with 0.20.x. With 0.20.30, the entries do not disappear when clicked. The underlying issue reported in 0.19.x (cache corruption after clicking entry) was fixed with #13103

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

No branches or pull requests

5 participants