summaryrefslogtreecommitdiff
path: root/app/controllers/projects_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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
* | Fix project indexDmitriy Zaporozhets2016-11-071-3/+3
|/ | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Complete and improve specsRémy Coutable2016-11-041-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add setting to only allow merge requests to be merged when all discussions ↵Rodolfo Santos2016-11-041-2/+3
| | | | | | are resolved Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix relative links in Markdown wiki when displayed in "Project" tabadam-fix-wiki-links-markdownAdam Niedzielski2016-11-011-1/+2
| | | | Refers to #23806.
* Fixed boards store specissue-board-welcome-cookie-monsterPhil Hughes2016-10-281-2/+1
|
* Delete issue board welcome cookie when project is newPhil Hughes2016-10-281-1/+4
|
* Add visibility level to project repositoryissue_19734_2Felipe Artur2016-10-171-11/+24
|
* Small improvements thanks to Robert's feedbackRémy Coutable2016-09-301-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* fix broken repo 500 errors in UI and added relevant specsJames Lopez2016-09-291-1/+6
|
* Project tools visibility levelFelipe Artur2016-09-011-4/+14
|
* Renamed `enable_lfs` to `lfs_enabled` for the Project field, and related fixes.project-specific-lfsPatricio Cano2016-08-301-1/+1
|
* Added project specific enable/disable setting for LFSPatricio Cano2016-08-301-1/+1
|
* Restore get_id in ExtractsPathwinniehell2016-08-241-8/+1
|
* Fix file links on project page Files viewfix-file-links-on-project-pageSean McGivern2016-08-231-1/+8
|
* Fix specs and implement fixes based on failing specsDouwe Maan2016-08-171-3/+3
|
* Refactor slash command definitionDouwe Maan2016-08-121-3/+17
|
* Simplify the slash commands DSL to store action blocks instead of creating ↵Rémy Coutable2016-08-131-5/+3
| | | | | | | | | | | | | methods Other improvements: - Ensure slash commands autocomplete doesn't break when noteable_type is not given - Slash commands: improve autocomplete behavior and /due command - We don't display slash commands for note edit forms. - Add tests for reply by email with slash commands - Be sure to execute slash commands after the note creation in Notes::CreateService Signed-off-by: Rémy Coutable <remy@rymai.me>
* Make slash commands contextualRémy Coutable2016-08-131-1/+1
| | | | | | | | | | | | | - Return only slash commands that make sense for the current noteable - Allow slash commands decription to be dynamic Other improvements: - Add permission checks in slash commands definition - Use IssuesFinder and MergeRequestsFinder - Use next if instead of a unless block, and use splat operator instead of flatten Signed-off-by: Rémy Coutable <remy@rymai.me>
* Support slash commands in noteable description and notesRémy Coutable2016-08-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Some important things to note: - commands are removed from noteable.description / note.note - commands are translated to params so that they are treated as normal params in noteable Creation services - the logic is not in the models but in the Creation services, which is the right place for advanced logic that has nothing to do with what models should be responsible of! - UI/JS needs to be updated to handle notes which consist of commands only - the `/merge` command is not handled yet Other improvements: - Don't process commands in commit notes and display a flash is note is only commands - Add autocomplete for slash commands - Add description and params to slash command DSL methods - Ensure replying by email with a commands-only note works - Use :subscription_event instead of calling noteable.subscribe - Support :todo_event in IssuableBaseService Signed-off-by: Rémy Coutable <remy@rymai.me>
* Rename `markdown_preview` routes to `preview_markdown`Christopher Bartz2016-08-111-1/+1
|
* Clean up project destructionclean-up-project-destroyStan Hu2016-08-101-1/+1
| | | | | | Instead of redirecting from the project service to the service and back to the model, put all destruction code in the service. Also removes a possible source of failure where run_after_commit may not destroy the project.
* Clarify which project is deleted to avoid alarmclarify-deletion-messageStan Hu2016-07-291-1/+1
| | | | Closes #13654
* Allow to disable user request access to groups/projectsFelipe Artur2016-07-201-1/+1
|
* Don't blow up in tree view on empty repoSean McGivern2016-07-181-1/+1
|
* Enable Style/IdenticalConditionalBranches Rubocop copGrzegorz Bizon2016-07-081-2/+2
|
* Avoid instantiation of a Git::Treeavoid-instantiate-tree-for-projects-show-readme-viewPaco Guzman2016-06-291-1/+6
| | | Only needed when the project view is ‘Files view’
* Provide default branch/file path for ProjectsController#show18709-reduce-git-callsPaco Guzman2016-06-201-1/+7
|