summaryrefslogtreecommitdiff
path: root/app/controllers/projects_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* change collapse to resolve and comments to discussionsAshley Dumaine2017-09-061-1/+1
|
* Add functionality to collapse outdated diff comments regardless of ↵Ashley Dumaine2017-09-061-0/+1
| | | | discussion resolution
* Add check for access to NamespaceRubén Dávila2017-08-301-1/+4
|
* Address some suggestions from first code reviewRubén Dávila2017-08-291-10/+1
|
* Build Project in context of Namespace if availableRubén Dávila2017-08-261-1/+10
|
* Add option to disable project export on instanceRobin Bobbitt2017-08-111-0/+5
|
* Use a specialized class for querying eventsYorick Peterse2017-08-101-4/+5
| | | | | | | | | | | | | | | This changes various controllers to use the new EventCollection class for retrieving events. This class uses a JOIN LATERAL query on PostgreSQL to retrieve queries in a more efficient way, while falling back to a simpler / less efficient query for MySQL. The EventCollection class also includes a limit on the number of events to display to prevent malicious users from cycling through all events, as doing so could put a lot of pressure on the database. JOIN LATERAL is only supported on PostgreSQL starting with version 9.3.0 and as such this optimisation is only used when using PostgreSQL 9.3 or newer.
* Merge branch 'master' into ideMike Greiling2017-08-071-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (86 commits) Show all labels 33874 confidential issue redesign Exclude merge_jid on Import/Export attribute configuration Resolve "User dropdown in filtered search does not load avatar on `master`" Re-add column locked_at on migration rollback Group-level new issue & MR using previously selected project [EE Backport] Update log audit event in omniauth_callbacks_controller.rb more eagerly bail when the state is prevented Move locked_at removal to post-deployment migration Add class to other sidebars Improve mobile sidebar reduce iterations by keeping a count of remaining enablers Store & use ConvDev percentages returned by Version app Store MergeWorker JID on merge request, and clean up stuck merges Backport changes in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2551 to CE DRY up caching in AbstractReferenceFilter Update CHANGELOG Add CHANGELOG entry Fix html structure Removes test for removed behavior Port form back to use form_tag ...
| * Fix last feature test for project templatesZ.J. van de Weg2017-08-071-1/+0
| |
| * After merge cleanupZ.J. van de Weg2017-08-071-10/+2
| |
| * Merge branch 'master' into zj-project-templatesFilipa Lacerda2017-08-071-2/+2
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (623 commits) Fix issues with pdf-js dependencies fix missing changelog entries for security release on 2017-01-23 Update top bar issues icon Fix pipeline icon in contextual nav for projects Since mysql is not a priority anymore, test it less Fix order of CI lint ace editor loading Add container registry and spam logs icons Fix different Markdown styles Backport to CE for: Make new dropdown dividers full width Fix spec Fix spec Fix spec Bump GITLAB_SHELL_VERSION and GITALY_VERSION to support unhiding refs Add changelog Install yarn via apt in update guides Use long curl options fix Add a spec for concurrent process Remove monkey-patched Array.prototype.first() and last() methods ...
| * | Rename GitLabProjectImporterService and misc fixesZ.J. van de Weg2017-08-011-2/+2
| | | | | | | | | | | | | | | | | | First round of review, main changes: - templates.title is human readable, #name will be passed around - GitLabProjectImporterService has been renamed
| * | Allow projects to be started from a templateZ.J. van de Weg2017-07-281-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Started implementation for the first iteration of gitlab-org/gitlab-ce#32420. This will allow users to select a template to start with, instead of an empty repository in the project just created. Internally this is basically a small extension of the ImportExport GitLab projects we already support. We just import a certain import tar archive. This commits includes the first one: Ruby on Rails. In the future more will be added.
* | | More backend cleanupDouwe Maan2017-08-031-11/+9
| | |
* | | Fix UselessAssignment offense in projects_controllerLuke "Jared" Bennett2017-08-011-1/+0
| | |
* | | Fix rubocopLuke "Jared" Bennett2017-08-011-2/+2
| | |
* | | Merge branch 'ide' of gitlab.com:gitlab-org/gitlab-ce into ideJacob Schatz2017-07-281-2/+2
|\ \ \ | | |/ | |/|
| * | Backport changes from ↵Nick Thomas2017-07-211-2/+2
| |/ | | | | | | https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2328
* | Adds new ruby help for dropdowns for branchesJacob Schatz2017-07-281-6/+22
|/
* Recover from renaming project that has container imagesGrzegorz Bizon2017-07-131-0/+3
|
* Create and use project path helpers that only need a project, no namespaceDouwe Maan2017-07-051-1/+1
|
* Removes pending delete from filter scopesTiago Botelho2017-06-281-1/+1
|
* Refactor atom builder by using xml.atom layoutTieu-Philippe KHIM2017-06-121-1/+1
|
* Translate project & repository pagesBob Van Landuyt2017-06-071-13/+13
|
* Add a rubocop rule to check if a method 'redirect_to' is used without ↵31840-add-a-rubocop-that-forbids-redirect_to-inside-a-controller-destroy-action-without-an-explicit-statusblackst0ne2017-06-071-2/+2
| | | | explicitly set 'status' in 'destroy' actions of controllers
* Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ↵Valery Sizov2017-05-231-1/+8
|\ | | | | | | 17489-hide-code-from-guests
| * Refactor to more robust implementationfix-issue-32506Michael Kozono2017-05-191-0/+7
| | | | | | | | | | | | In order to avoid string manipulation or modify route params (to make them unambiguous for `url_for`), we are accepting a behavior change: When being redirected to the canonical path for a group, if you requested a group show path starting with `/groups/…` then you’ll now be redirected to the group at root `/…`.
| * 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>
* | Hide clone panel and file list when user is only a guestJames Clark2017-05-071-1/+1
|/ | | | | | | | | | | | Fixes gitlab-org/gitlab-ce#17489 Fix test finding two of the same element Capybara will raise an exception because it finds two elements that match .nav-links. This means this test would fail, even if the page meets the conditions for passing the test. Add more tests for guest access
* Display slash commands outcome when previewing Markdownadam-separate-slash-commandsRares Sfirlogea2017-05-041-2/+9
| | | | | | | | | | Remove slash commands from Markdown preview and display their outcome next to the text field. Introduce new "explanation" block to our slash commands DSL. Introduce optional "parse_params" block to slash commands DSL that allows to process a parameter before it is passed to "explanation" or "command" blocks. Pass path for previewing Markdown as "data" attribute instead of setting a variable on "window".
* Support preview_markdown action for personal_snippetsJarka Kadlecova2017-04-261-14/+5
|
* Change project view default for existing users and anonymous visitors to ↵dz-fix-project-viewDmitriy Zaporozhets2017-04-101-1/+9
| | | | | | files+readme Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add ability to disable Merge Request URL on pushAlex Sanford2017-03-171-0/+1
|
* Merge branch 'fix-project-without-repo-and-wiki' into 'master' Rémy Coutable2017-03-161-2/+3
|\ | | | | | | | | | | | | Fix projects without repo and wiki Closes #29542 See merge request !9956
| * Fix projects without repo and wikiLin Jen-Shin2017-03-151-2/+3
| | | | | | | | | | | | | | | | When repo and wiki are disabled for a project, we're showing issues so we'll need to set @issuable_meta_data otherwise it would be giving nil errors. See: https://sentry.gitlap.com/gitlab/staginggitlabcom/issues/23106/
* | Display full project name with namespace upon deletionMark Fletcher2017-03-151-1/+1
|/ | | | * Removes ambiguity when two projects exist with the same name
* Update occurrences of MWBS to MWPSfix/mwbs-to-mwpsJames Lopez2017-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename column in the database Rename fields related to import/export feature Rename API endpoints Rename documentation links Rename the rest of occurrences in the code Replace the images that contain the words "build succeeds" and docs referencing to them Make sure pipeline is green and nothing is missing. updated doc images renamed only_allow_merge_if_build_succeeds in projects and fixed references more updates fix some spec failures fix rubocop offences fix v3 api spec fix MR specs fixed issues with partials fix MR spec fix alignment add missing v3 to v4 doc wip - refactor v3 endpoints fix specs fix a few typos fix project specs copy entities fully to V3 fix entity error more fixes fix failing specs fixed missing entities in V3 API remove comment updated code based on feedback typo fix spec
* Merge branch 'ref-switcher-perf' into 'master' Jacob Schatz2017-02-031-2/+6
|\ | | | | | | | | | | | | Improved ref switcher dropdown performance Closes #18202 See merge request !7239
| * Changed how the data is returned - we only care about the branch/tag namePhil Hughes2016-11-211-2/+3
| |
| * Uses take rather than KaminariPhil Hughes2016-11-211-2/+2
| |
| * Improved ref switcher dropdown performancePhil Hughes2016-11-211-2/+5
| | | | | | | | Closes #18202
* | Add a spec and actually display the flash noticeRémy Coutable2017-01-161-7/+4
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Fix to display notice when project settings updated.sandish chen2017-01-151-2/+2
| | | | | | | | | | | | | | | | | | | | Change validity checking for UpdateService. Add return value for project update service. Return 302(redirect_to) when successfully updated. Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Changed autocomplete_sources into an action that returns a single 'at' type ↵18435-autocomplete-is-not-performantLuke Bennett2016-12-151-33/+0
|/ | | | | | | | | | | | | | | | | | | | | | | | of sources at a time Finished up autocomplete_sources action and added frontend to fetch data only when its needed Added wait_for_ajax to specs Fixed builds and improved the setup/destroy lifecycle Changed global namespace and DRYed up loading logic Added safety for accidentally loading data twice Removed destroy as its not necessary and is messing with click events from a blur race condition Created AutocompleteSourcesController and updated routes Fixed @undefined from tabbing before load ends Disable tabSelectsMatch until we have loaded data Review changes
* Revert "Merge branch '22680-unlabel-limit-autocomplete-to-selected-items' ↵revert-0a3cafb2Douwe Maan2016-11-171-3/+1
| | | | | into 'master'" This reverts merge request !6796
* Limit autocomplete to currently selected itemsAkram FARES2016-11-151-1/+3
|
* Merge branch 'rs-project_params' into 'master' Rémy Coutable2016-11-081-17/+35
|\ | | | | | | | | Apply `*_params_ce` pattern to ProjectsController See merge request !7338
| * Apply `*_params_ce` pattern to ProjectsControllerrs-project_paramsRobert Speicher2016-11-071-17/+35
| |
* | Merge branch 'use-separate-token-for-incoming-email' into 'master' Douwe Maan2016-11-081-0/+7
|\ \ | | | | | | | | | | | | Use separate email-friendly token for incoming email See merge request !5914
| * | implements reset incoming email token on issues modal and account page,use-separate-token-for-incoming-emailtiagonbotelho2016-11-071-0/+7
| |/ | | | | | | reactivates all tests and writes more tests for it