Comments (7)
would be nice if there was support for the various search features such as:
from gitlab.
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.
Reopen if this needs further discussion. Thanks!
from gitlab.
Thanks!
On Wednesday, January 28, 2015, Sean Edge [email protected] wrote:
—
Reply to this email directly or view it on GitHub
#105 (comment).
from gitlab.
@asedge
Can you show an example with Namespace/Project ?
I am getting varying results and just trying to hunt down the issue.
from gitlab.
@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.
@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)
- Automate gem releases HOT 2
- tracking group and project iterations HOT 1
- Add support for user status HOT 1
- Ban User Wrapper HOT 1
- Allow methods in resource_label_events to accept request params
- container expiration policy does not work HOT 1
- Latest pipeline API method
- New GitLab personal and project tokens are not working. HOT 1
- Would we like to include GraphQL API capabilities? HOT 6
- Feature Request: gitlab CI lint is being deprecated and new APIs are replacing them HOT 1
- Create a link to share a group with another group HOT 1
- Gitlab 16 deprecating changing MR Approvals using the `/approvals` endpoint HOT 2
- Support using CI_JOB_TOKEN for authentication HOT 7
- Thanks HOT 1
- share/unshare group with group HOT 1
- New release? HOT 1
- Release a new version HOT 2
- EOFError: end of file reached on groups API HOT 2
- Not all specs are running depending on seed
- Can HTTParty version be bumped to 0.21.0? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitlab.