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

(GH-588) Add option to search packages in all available repositories #591

Closed
wants to merge 1 commit into from

Conversation

mwallner
Copy link
Member

see #588

@mwallner mwallner added the Feature Issues that introduce new functionality to the project, instead of updating existing functionality label May 17, 2018
@mwallner mwallner self-assigned this May 17, 2018
@mwallner mwallner requested a review from gep13 May 17, 2018 19:39
mwallner added a commit that referenced this pull request May 22, 2018
@mwallner mwallner removed the Feature Issues that introduce new functionality to the project, instead of updating existing functionality label May 22, 2018
@gep13 gep13 changed the title add option to search packages in all available repositories (GH-588) Add option to search packages in all available repositories May 23, 2018
@gep13
Copy link
Member

gep13 commented May 23, 2018

@mwallner am I missing something here? Or where are you actually telling it to search all repositories? Perhaps we can talk about this one when we have a chat?

@mwallner
Copy link
Member Author

hey @gep13 - since I'm pretty busy currently here the explanation:

config.Sources = options.Source;

(the logic is inverse - if "search in all repos" is active - the source to look in is not set - otherwise it will be fixed to the currently active)

@@ -17,5 +17,7 @@ public class AppConfiguration
public bool DefaultToTileViewForRemoteSource { get; set; }

public bool UseDelayedSearch { get; set; }

public bool SearchInAllRepositories { get; set; }
Copy link
Member

Choose a reason for hiding this comment

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

Is this the right terms here? Chocolatey GUI doesn't refer to repositories, but rather Sources. Should this be SearchInAllRepositories?

Copy link
Member

Choose a reason for hiding this comment

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

I'm with @gep13 , so SearchInAllSources could be the name...

@@ -15,7 +15,8 @@ public struct PackageSearchOptions
bool includePrerelease,
bool includeAllVersions,
bool matchWord,
string source)
string source,
bool searchInALlRepos)
Copy link
Member

Choose a reason for hiding this comment

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

In addition to the other comment, this should be searchInAllRepos

@@ -642,4 +642,7 @@ NOTE: Probably only necessary to change in RTL languages.</comment>
<data name="PackageView_Version" xml:space="preserve">
<value>Version</value>
</data>
<data name="SettingsView_SearchInAllRepos" xml:space="preserve">
<value>Search in all Repos</value>
Copy link
Member

Choose a reason for hiding this comment

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

Depending on the outcome of the above, we will likely want to change this text as well.

@gep13
Copy link
Member

gep13 commented Jan 23, 2019

@mwallner I definitely prefer this being an opt-in option, so based on that, I have no objections.

Can you have a look at the comments that I made, and also update to the latest develop branch? There are some changes that you will need to apply in the SettingsView to include a new description for the setting. Let me know if you have a chance to do this.

Apologies in the time taken to get this reviewed.

@DamianMaslanka5
Copy link
Contributor

@gep13 @mwallner Instead of enabling this option globally I would like to see All under This PC.
Right now when i go to private source i see my packages, and if I want to search for a specific package I can't when Search in all Repos is enabled. I need to go to options, disable it and then search again.

Probably there should be a way to hide All?

@gep13
Copy link
Member

gep13 commented Jan 26, 2019

@DamianMaslanka5 let me see if I have this right...

You are suggesting that another "virtual" source be added, which combines the packages available from all the other sources, and then the search box is available to search this new source. Is that right?

If I have understood you correctly, then the feature in settings would be to either enable, or disable, this new virtual source.

I don't dislike this idea. @mwallner what are your thoughts?

@mwallner
Copy link
Member Author

@DamianMaslanka5 - great idea!
@gep13 - I will see if I can pull this up .. :-)

@mwallner
Copy link
Member Author

@gep13 @DamianMaslanka5 - see GH-646
I'd be happy to close this PR if you're ok with the new one

@gep13
Copy link
Member

gep13 commented Feb 18, 2019

Closing in favour of #646

@gep13 gep13 closed this Feb 18, 2019
@mwallner mwallner deleted the searchallrepo branch February 19, 2019 19:59
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.

None yet

4 participants