Skip to content

Improve cleanup-repo-filelist-actions’s reliability - #3517

Merged
fregante merged 3 commits into
refined-github:masterfrom
kidonng:cleanup-repo-filelist-actions
Aug 30, 2020
Merged

fregante merged 3 commits into
refined-github:masterfrom
kidonng:cleanup-repo-filelist-actions

Conversation

@fregante fregante changed the title Use selector-observer in cleanup-repo-filelist-actions Refactor cleanup-repo-filelist-actions to use selector-observer Aug 29, 2020

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👎 This doesn't seem to have benefits, according to #3084 (comment)

Thoughts?

@fregante

Copy link
Copy Markdown
Member

I may be wrong, as you said it fixes #3405 (comment)

@fregante fregante added the bug label Aug 29, 2020
@fregante fregante changed the title Refactor cleanup-repo-filelist-actions to use selector-observer Improve cleanup-repo-filelist-actions’s reliability Aug 30, 2020
@fregante
fregante merged commit b09477f into refined-github:master Aug 30, 2020
fregante added a commit that referenced this pull request Sep 4, 2020
@fregante

fregante commented Sep 4, 2020

Copy link
Copy Markdown
Member

Somehow this caused a serious issue and I don't really know why. Can you replicate it? #3527

searchButton.classList.add('tooltipped', 'tooltipped-ne');
searchButton.setAttribute('aria-label', 'Go to file');
searchButton.firstChild!.replaceWith(<SearchIcon/>);
observe('.btn[data-hotkey="t"]', {

@fregante fregante Sep 4, 2020 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should keep in mind that select and observe are not equivalent.

select will only pick one while observe will work as select.all. This could cause trouble

@kidonng kidonng Sep 4, 2020 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The cause is observe('get-repo details'), this one is fine
Is it because they are custom elements? Changed to another selector but still get stuck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants