Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Migrate Find in files plugin to new API #12382

Merged
merged 1 commit into from
Jul 14, 2020

Conversation

goanpeca
Copy link
Member

@goanpeca goanpeca commented Apr 18, 2020

Description of Changes

  • Wrote at least one-line docstrings (for any new functions)
  • Added unit test(s) covering the changes (if testable)
  • Included a screenshot or animation (if affecting the UI, see Licecap)

image

Screen Shot 2020-04-18 at 8 46 29

Issue(s) Resolved

Fixes #12189

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: @goanpeca

@pep8speaks
Copy link

pep8speaks commented Apr 18, 2020

Hello @goanpeca! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-07-14 17:00:21 UTC

@goanpeca goanpeca added this to the Sprint April milestone Apr 18, 2020
@goanpeca goanpeca self-assigned this Apr 18, 2020
@goanpeca goanpeca force-pushed the enh/api-find branch 5 times, most recently from 7eb7c37 to 47d3a9f Compare April 23, 2020 01:13
@ccordoba12 ccordoba12 modified the milestones: Sprint April, Sprint May May 2, 2020
@goanpeca goanpeca force-pushed the enh/api-find branch 2 times, most recently from b6dea2b to 0f35664 Compare May 26, 2020 22:40
@goanpeca goanpeca requested a review from ccordoba12 May 26, 2020 22:40
@goanpeca
Copy link
Member Author

Rebased and ready for review @ccordoba12

@ccordoba12 ccordoba12 modified the milestones: Sprint May, Sprint June Jun 1, 2020
@goanpeca goanpeca force-pushed the enh/api-find branch 4 times, most recently from 8aa2ec2 to d21b943 Compare June 10, 2020 23:12
@goanpeca goanpeca requested a review from dalthviz June 10, 2020 23:23
@goanpeca
Copy link
Member Author

Hi @dalthviz, this one is ready for QA testing when you have some time. Thanks!

Copy link
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

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

After an initial test seems like all the actions work as expected. LGTM 👍

@goanpeca
Copy link
Member Author

This one is ready for review @ccordoba12

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

@goanpeca, some small comments for you and (unfortunately) tests are failing.

spyder/plugins/findinfiles/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/findinfiles/widgets.py Outdated Show resolved Hide resolved
spyder/plugins/findinfiles/widgets.py Show resolved Hide resolved
spyder/plugins/findinfiles/widgets.py Show resolved Hide resolved
spyder/plugins/findinfiles/widgets.py Show resolved Hide resolved
spyder/plugins/findinfiles/widgets.py Outdated Show resolved Hide resolved
spyder/plugins/findinfiles/widgets.py Outdated Show resolved Hide resolved
@goanpeca goanpeca force-pushed the enh/api-find branch 2 times, most recently from 1215fef to 696500a Compare June 18, 2020 15:55
Copy link
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

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

An error raises when running now (maybe a missing sig_ when connecting a signal from the Working Directory @goanpeca ?):

image

@goanpeca
Copy link
Member Author

goanpeca commented Jun 19, 2020

@dalthviz that has been fixed already https://github.com/spyder-ide/spyder/pull/12382/files#diff-449a26d3a4d2cdde344b13b43e1fb864R71, I think you needed to pull/refresh your local branch.

@dalthviz
Copy link
Member

Yep @goanpeca I was missing reseting my local with the latest changes 👍 Checking them I found this:

  • The exclude combobox is empty:
    find

  • When undocking some actions are disabled:
    find2

  • After undocking and clicking the X the undock action gets disabled (not sure of a way to consistently reproduce this though):
    find3

@goanpeca
Copy link
Member Author

The exclude combobox is empty:

Will look into it

When undocking some actions are disabled:

Will fix!

fter undocking and clicking the X the undock action gets disabled (not sure of a way to consistently reproduce this though):

May be related to the things reported on the Plots plugin? I fixed those issues on that PR.

@dalthviz
Copy link
Member

Maybe related to the things reported on the Plots plugin? I fixed those issues on that PR.
Um maybe, although the initial issue was that closing the pane with X caused the pane to disappear completely from Spyder.

Maybe could be better to merge first the plots PR to get the fix implemented and then update this PR to check if the issue remains or is fixed?

@ccordoba12
Copy link
Member

ccordoba12 commented Jun 19, 2020

Maybe could be better to merge first the plots PR to get the fix implemented and then update this PR to check if the issue remains or is fixed?

Ok, will look into that PR later today so we can merge that one first then this one.

Thank you both for your help.

@ccordoba12 ccordoba12 modified the milestones: Sprint June, Sprint July Jul 2, 2020
@goanpeca
Copy link
Member Author

This is ready for review @ccordoba12

@dalthviz
Copy link
Member

Just in case, seems like a merge/rebase needs to be done here @goanpeca (maybe only worthy after #12196 is merged)

@goanpeca
Copy link
Member Author

Will fix!

@goanpeca
Copy link
Member Author

goanpeca commented Jul 13, 2020

Fixed @dalthviz

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

@goanpeca, some small comments and then this should be ready.

spyder/plugins/findinfiles/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/findinfiles/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/findinfiles/plugin.py Show resolved Hide resolved
spyder/plugins/findinfiles/tests/test_widgets.py Outdated Show resolved Hide resolved
spyder/plugins/findinfiles/tests/test_widgets.py Outdated Show resolved Hide resolved
spyder/plugins/findinfiles/tests/test_widgets.py Outdated Show resolved Hide resolved
spyder/plugins/findinfiles/widgets.py Outdated Show resolved Hide resolved
spyder/plugins/findinfiles/widgets.py Outdated Show resolved Hide resolved
@goanpeca
Copy link
Member Author

Updated @ccordoba12.

@goanpeca goanpeca requested a review from ccordoba12 July 14, 2020 14:02
@goanpeca goanpeca force-pushed the enh/api-find branch 2 times, most recently from 3d3e10d to 1f0f58a Compare July 14, 2020 14:07
@ccordoba12
Copy link
Member

ccordoba12 commented Jul 14, 2020

@goanpeca, this is ready. Please squash and rebase so I can merge it.

@goanpeca
Copy link
Member Author

The pip failures are unrelated. Merging.

@goanpeca goanpeca merged commit 883ee98 into spyder-ide:master Jul 14, 2020
@goanpeca goanpeca deleted the enh/api-find branch July 14, 2020 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move Find in files plugin to use new API
4 participants