summaryrefslogtreecommitdiff
path: root/spec/models/project_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Refactor GroupProjectsFinder#init_collectionYorick Peterse2017-06-191-0/+32
| | | | | | This optimises how GroupProjectsFinder builds it collection, producing simpler and faster queries in the process. It also cleans up the code a bit to make it easier to understand.
* Correct RSpec/SingleLineHook cop offensesRobert Speicher2017-06-141-7/+21
|
* Bring in security changes from the 9.2.5 releaseDJ Mountney2017-06-071-1/+1
| | | | | | | | | | | | | Ran: - git format-patch v9.2.2..v9.2.5 --stdout > patchfile.patch - git checkout -b 9-2-5-security-patch origin/v9.2.2 - git apply patchfile.patch - git commit - [Got the sha ref for the commit] - git checkout -b upstream-9-2-security master - git cherry-pick <SHA of the patchfile commit> - [Resolved conflicts] - git cherry-pick --continue
* Merge branch 'pull-mirror-overhaul-ce-backport' into 'master'Douwe Maan2017-06-051-10/+6
|\ | | | | | | | | backports changed import logic from pull mirroring feature into CE See merge request !11850
| * backports changed import logic from pull mirroring feature into CETiago Botelho2017-06-051-10/+6
| |
* | Add test for Project#protected_for?Lin Jen-Shin2017-06-011-0/+37
| |
* | Merge remote-tracking branch 'upstream/master' into 24196-protected-variablesLin Jen-Shin2017-06-011-0/+14
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (141 commits) Add Documentation for GIT_CHECKOUT variable Ui improvements for count badges and permission badges Rename the other jobs Update jobs_spec for changes from builds_spec Update docs related to protected actions Add changelog for protected branches abilities fix Ask for an example project for bug reports Center loading spinner in issuable filters Fix chat commands specs related to protected actions Fix builds controller specs related to protected actions Fix pipeline retry specs related to protected actions Fix environment model specs related to protected actions Fix build factory specs related to protected actions Fix job play service specs related to protected actions Fix play status specs related to protected actions Fix deploy chat command specs for protected actions Fix environment specs related to protected actions Use another scope to add the - prefix, feedback: Fix pipeline processing specs related to protected actions Fix build entity specs related to protected actions ...
| * Add starred_by scope to ProjectToon Claes2017-05-301-0/+14
| | | | | | | | Add a scope to search for the projects that are starred by a certain user.
* | Now secret_variables_for would return the variablesLin Jen-Shin2017-06-011-3/+2
| |
* | Update docs and use protected secret variable as the nameLin Jen-Shin2017-05-311-2/+2
| |
* | Merge remote-tracking branch 'upstream/master' into 24196-protected-variablesLin Jen-Shin2017-05-311-13/+28
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (89 commits) Revert "Merge branch 'grpc-1.3.4' into 'master'" Return nil when looking up config for unknown LDAP provider Avoid crash when trying to parse string with invalid UTF-8 sequence Enable Gitaly by default in GitLab 9.3 Don’t create comment on JIRA if link already exists Disable sub_group_issuables_spec.rb for mysql Fix math rendering on blob pages Add changelog Don't allow to pass a user to ProjectWiki#http_url_to_repo Revert "Merge branch '1937-https-clone-url-username' into 'master' " Fix bottom padding for build page Fix /unsubscribe slash command creating extra todos Fix omniauth-google-oauth2 dependencies in Gemfile.lock Update looks job log 'New issue'/'New merge request' dropdowns should show only projects with issues/merge requests feature enabled Fix spec for Members::AuthorizedDestroyService 31616-add-uptime-of-gitlab-instance-in-admin-area Set head pipeline when creating merge requests Create a separate helper to check if we show particular tab on a search page Add performance deltas between app deployments on Merge Request widget ...
| * Revert "Merge branch '1937-https-clone-url-username' into 'master' "Rémy Coutable2017-05-301-13/+3
| | | | | | | | | | | | | | This reverts commit c425f366bfa84efab92b5d5e1d0721f16a2890bc, reversing changes made to 82f6c0f5ac4ed29390ed90592d2c431f3494d93f. Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Update spec to match latest EE changesStan Hu2017-05-261-2/+7
| |
| * Add missing project import job example from gitlab-eeAlejandro Rodríguez2017-05-261-0/+20
| |
* | Merge secret and protected vars to variables_for(ref)Lin Jen-Shin2017-05-271-12/+30
| | | | | | | | | | Also introduce Ci::Variable#to_runner_variable to build up the hash for runner.
* | Frontend implementation, tests, and changelogLin Jen-Shin2017-05-251-2/+2
| |
* | Add tests and also pass protected vars to protected tagsLin Jen-Shin2017-05-251-0/+30
|/
* Enable the Style/TrailingCommaInLiteral copRémy Coutable2017-05-101-1/+1
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Use relative paths for group/project/user avatarsblackst0ne2017-05-101-1/+9
|
* Add Pipeline Schedules that supersedes experimental Trigger ScheduleZeger-Jan van de Weg2017-05-071-0/+1
|
* Merge branch 'backport-ee-4b464eaaee' into 'master' Robert Speicher2017-05-051-8/+3
|\ | | | | | | | | Backport avatar-related spec changes from gitlab-org/gitlab-ee@4b464eaaee See merge request !11072
| * Backport avatar-related spec changes from gitlab-org/gitlab-ee@4b464eaaeebackport-ee-4b464eaaeeRémy Coutable2017-05-041-8/+3
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Set last_repository_updated_at to created_at upon project creationDouglas Barbosa Alexandre2017-05-041-0/+8
|/
* Include missing project attributes to Import/ExportJames Lopez2017-05-031-0/+19
|
* Merge branch '30272-bvl-reject-more-namespaces' into 'master' Douwe Maan2017-05-021-0/+28
|\ | | | | | | | | | | | | Reject more reserved paths Closes #30272 See merge request !10413
| * Reject group-routes as names of child namespacesBob Van Landuyt2017-05-011-0/+7
| |
| * The dynamic path validator can block out partial pathsBob Van Landuyt2017-05-011-0/+7
| | | | | | | | So we can block `objects` only when it is contained in `info/lfs` or `gitlab-lfs`
| * Streamline the path validation in groups & projectsBob Van Landuyt2017-05-011-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | `Project` uses `ProjectPathValidator` which is now a `NamespaceValidator` that skips the format validation. That way we're sure we are using the same collection of reserved paths. I updated the path constraints to reflect the changes: We now allow some values that are only used on a top level namespace as a name for a nested group/project.
* | Update Carrierwave and fog-coreZeger-Jan van de Weg2017-05-011-9/+6
|/
* Merge branch 'bvl-fix-project-ci-status-cache' into 'master' Kamil Trzciński2017-04-071-1/+1
|\ | | | | | | | | Fix invalidating Project build status cache to often See merge request !10313
| * Rename `ProjectBuildStatus` -> `ProjectPipelineStatus`Bob Van Landuyt2017-04-071-1/+1
| |
| * Rename Ci::PipelineStatus -> Ci::ProjectBuildStatusBob Van Landuyt2017-04-071-1/+1
| |
* | Merge branch '18471-restrict-tag-pushes-protected-tags' into 'master' Douwe Maan2017-04-071-75/+0
|\ \ | |/ |/| | | | | | | | | Protected Tags Closes #18471 See merge request !10356
| * Merge branch 'master' into '18471-restrict-tag-pushes-protected-tags'Kushal Pandya2017-04-061-42/+56
| |\ | | | | | | | | | # Conflicts: # spec/lib/gitlab/import_export/all_models.yml
| * \ Merge branch 'master' into '18471-restrict-tag-pushes-protected-tags'Kushal Pandya2017-04-061-7/+8
| |\ \ | | | | | | | | | | | | | | | | # Conflicts: # app/assets/javascripts/dispatcher.js # app/assets/stylesheets/pages/projects.scss
| * | | Moved Project#protected_branch? to ProtectedBranch, similar for tagsJames Edwards-Jones2017-04-031-56/+0
| | | |
| * | | Extracted ProtectableDropdown to clean up Project#open_branchesJames Edwards-Jones2017-04-031-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes it clear this is only used in dropdowns, instead of cluttering up Project class. Since we only care about branch names, it is also possible to refactor out a lot of the set/reject logic. A benchmark on Array/Set subtraction favoured using Arrays. This was with 5000 ‘branches’ and 2000 ‘protections’ to ensure a similar comparison to the commit which introduced using Set for intersection. Comparison: array subtraction: 485.8 i/s set subtraction: 128.7 i/s - 3.78x slower
* | | | Merge branch 'optimise-pipelines' into 'master' Douwe Maan2017-04-061-0/+1
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | Optimise pipelines.json See merge request !10462
| * | | Merge remote-tracking branch 'origin/master' into optimise-pipelinesoptimise-pipelinesKamil Trzcinski2017-04-061-42/+55
| |\ \ \
| * | | | Fix tests and reviewKamil Trzcinski2017-04-061-0/+1
| | |_|/ | |/| |
* | | | Merge branch 'microsoft-teams-integration' into 'master' Douwe Maan2017-04-061-0/+1
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | adds initial microsoft teams integration See merge request !10412
| * | | adds relevant testsTiago Botelho2017-04-061-0/+1
| |/ /
* | | Fix project specs related to container registryGrzegorz Bizon2017-04-041-1/+2
| | |
* | | Refine method for checking project registry tagsGrzegorz Bizon2017-04-031-0/+60
| | |
* | | Refactor container registry repository tag stubsGrzegorz Bizon2017-04-031-1/+1
| | |
* | | Merge branch 'master' into feature/multi-level-container-registry-imagesGrzegorz Bizon2017-03-271-2/+5
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (192 commits) Implement new service for creating user Update sentry-raven 2.0.2 -> 2.4.0 Update webmock 1.21.0 -> 1.24.6 Update spring 1.7.2 -> 2.0.1 Update simplecov 0.12.0 -> 0.14.1 Update pry-rails 0.3.4 -> 0.3.5 Update pry-byebug 3.4.1 -> 3.4.2 Update flay 2.6.1 -> 2.8.1 Remove Tags filter from Projects Explore dropdown Update capybara-screenshot 1.0.11 -> 1.0.14 Update bullet 5.2.0 -> 5.5.1 Update brakeman 3.4.1 -> 3.6.1 Remove web-console gem Update better_errors 1.0.1 -> 2.1.1 Display flash message to unauthenticated user when creating new issue Fix up emoji tests that should have failed :/ Fix RSpec/DescribeSymbol cop violations Add event limit warning all tabs Cycle Analytics Adding non_archived scope for counting projects Resolve "Gitlab administrator cannot create projects in every group" ... Conflicts: db/schema.rb
| * | Remove not necessary specsJarka Kadlecova2017-03-221-4/+0
| | |
| * | Escape route path for LIKE queriesJarka Kadlecova2017-03-211-2/+9
| | |
* | | Remove container_registry method from project classGrzegorz Bizon2017-03-241-26/+3
| | |
* | | Rename container image to repository in specsGrzegorz Bizon2017-03-231-2/+2
| | |