Git Product home page Git Product logo

Comments (7)

StephenOTT avatar StephenOTT commented on May 27, 2024

would be nice if there was support for the various search features such as:

screen shot 2015-01-25 at 8 58 58 pm

from gitlab.

asedge avatar asedge commented on May 27, 2024

The projects method can be used for searching and supports all the same options:

2.2.0 :027 > Gitlab.projects(search: 'proj').map { |p| p.name }                                                                                                                                                           
 => ["proj1", "proj2"] 
2.2.0 :028 > Gitlab.projects(search: 'proj', order_by: 'name', sort: 'desc').map { |p| p.name }
 => ["proj2", "proj1"] 
2.2.0 :029 > Gitlab.projects(search: 'proj', order_by: 'name', sort: 'asc', per_page: 1).map { |p| p.name }
 => ["proj1"] 

from gitlab.

asedge avatar asedge commented on May 27, 2024

Reopen if this needs further discussion. Thanks!

from gitlab.

StephenOTT avatar StephenOTT commented on May 27, 2024

Thanks!

On Wednesday, January 28, 2015, Sean Edge [email protected] wrote:

Closed #105 #105.


Reply to this email directly or view it on GitHub
#105 (comment).

from gitlab.

StephenOTT avatar StephenOTT commented on May 27, 2024

@asedge
Can you show an example with Namespace/Project ?
I am getting varying results and just trying to hunt down the issue.

from gitlab.

asedge avatar asedge commented on May 27, 2024

@StephenOTT Looking at the definition of the search method (here: https://github.com/gitlabhq/gitlabhq/blob/master/app/models/project.rb#L213-L220) you probably won't be able to search like 'Namespace/Project'. Just one or the other. Once you get the results back you could always use the reject or select method(s) to filter further.

from gitlab.

StephenOTT avatar StephenOTT commented on May 27, 2024

@asedge is there a restriction on being able to search all of GitLab? I seem to only be able to return projects that I am the owner of. I cannot seem to do a search through all public repos or private repos that i can see... ?

Thanks

from gitlab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.