summaryrefslogtreecommitdiff
path: root/spec/presenters
Commit message (Collapse)AuthorAgeFilesLines
* Use ActiveModel's type instead of virtusPeter Leitzen2019-08-201-6/+19
| | | | | | The virtus project has been discontinued: https://github.com/solnic/virtus/commit/a6f896984
* Replace ... with new expansion optionsSamantha Ming2019-08-101-2/+66
| | | | | | | | - expand upwards - expand downwards - expand all in both inline and parallel views
* Revert "Merge branch '65152-selective-highlight' into 'master'"revert-d61dab91Patrick Bajao2019-08-091-49/+3
| | | This reverts merge request !31361
* Merge branch '65152-selective-highlight' into 'master'Bob Van Landuyt2019-08-061-3/+49
|\ | | | | | | | | Support selective highlighting of lines See merge request gitlab-org/gitlab-ce!31361
| * Support selective highlighting of lines65152-selective-highlightPatrick Bajao2019-08-061-3/+49
| | | | | | | | | | | | | | | | | | | | | | | | Instead of highlighting all lines when not all of them are needed, only highlight specific lines. The `BlobPresenter#highlight` method has been updated to support `since` and `to` params. These params will be used to limit the content to be highlighted. Modify `Gitlab::Highlight` to support `since` param which will then be used to determine the starting line number.
* | Speed up loading and filtering deploy keys and their projectsNick Thomas2019-08-051-8/+0
|/ | | | | | | | | | This commit changes how we eager-load projects, routes, and namespaces required by the deploy keys endpoint, getting a 10x improvement in my local testing. The endpoint still doesn't scale in-general, but going from ~13 seconds to dump a 63K result to generating the same thing in ~1.6 seconds seems like a good improvement to me.
* Remove code related to object hierarchy in MySQLremove-nested-groups-checksHeinrich Lee Yu2019-07-251-1/+1
| | | | | These are not required because MySQL is not supported anymore
* Fix suggestion on lines that are not part of an MR57953-fix-unfolded-diff-suggestionsPatrick Bajao2019-07-221-2/+4
| | | | | | | | | | Return the `text` as plain string in the response instead of including HTML tags but keep `rich_text` as is. The fix is to modify `Blob::UnfoldPresenter#diff_files` to map each raw diff line (limited by the range specified) to a corresponding line in an array of highlighted lines to use as `rich_text`.
* GraphQL mutations for add, remove and toggle emoji62826-graphql-emoji-mutationsLuke Duncalfe2019-06-281-0/+36
| | | | | | | | | | | | Adding new `AddAwardEmoji`, `RemoveAwardEmoji` and `ToggleAwardEmoji` GraphQL mutations. Adding new `#authorized_find_with_pre_checks!` and (unused, but for completeness `#authorized_find_with_post_checks!`) authorization methods. These allow us to perform an authorized find, and run our own additional checks before or after the authorization runs. https://gitlab.com/gitlab-org/gitlab-ce/issues/62826
* Expose ci_default_git_depth via project APIexpose-project-git-depth-via-apiFabio Pitino2019-06-121-1/+1
| | | | | | | | | | Enable Get and Update of ci_default_git_depth for Project API. Renaming Project#default_git_depth to :ci_default_git_depth to give more context through the API usage. Add API documentation
* Move project default git depth behind feature flagsFabio Pitino2019-06-101-0/+10
|
* Add project level git depth settingKrasimir Angelov2019-06-061-22/+32
| | | | | | | | | | | | | | | | | | | | Introduce default_git_depth in project's CI/CD settings and set it to 50. Use it if there is no GIT_DEPTH variable specified. Apply this default only to newly created projects and keep it nil for old ones in order to not break pipelines that rely on non-shallow clones. default_git_depth can be updated from CI/CD Settings in the UI, must be either nil or integer between 0 and 1000 (incl). Inherit default_git_depth from the origin project when forking projects. MR pipelines are run on a MR ref (refs/merge-requests/:iid/merge) and it contains unique commit (i.e. merge commit) which doesn't exist in the other branch/tags refs. We need to add it cause otherwise it may break pipelines for old projects that have already enabled Pipelines for merge results and have git depth 0. Document new default_git_depth project CI/CD setting
* Merge branch 'graphql-file-entry-url' into 'master'Nick Thomas2019-06-052-0/+26
|\ | | | | | | | | Add web_url to tree entry in GraphQL API See merge request gitlab-org/gitlab-ce!28646
| * Add web_url to tree entry in GraphQL APIPhil Hughes2019-06-052-0/+26
| |
* | Merge branch 'revert-git-depth-for-merge-request' into 'master'Kamil Trzciński2019-06-051-19/+3
|\ \ | |/ |/| | | | | Revert a default GIT_DEPTH for MR pipeline See merge request gitlab-org/gitlab-ce!28926
| * Revert a default GIT_DEPTH for MR pipelinerevert-git-depth-for-merge-requestFabio Pitino2019-05-311-19/+3
| |
* | Merge branch 'abstract-auto-merge' into 'master'Kamil Trzciński2019-06-031-5/+5
|\ \ | | | | | | | | | | | | Refactor and abstract Auto Merge Processes See merge request gitlab-org/gitlab-ce!28595
| * | Abstract auto merge processesShinya Maeda2019-06-031-5/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | We have one auto merge strategy today - Merge When Pipeline Succeeds. In order to add more strategies for Merge Train feature, we abstract the architecture to be more extensible. Removed arguments Fix spec
* | Added common fields to the IssueType10795-add-epic-tree-BE-epic-graphql-supportBrett Walker2019-05-311-0/+29
|/ | | | | and allow passing of child_complexity to the 'resolver_complexity' metho
* Fix display of promote to group labelJan Provaznik2019-05-281-0/+28
| | | | | | | | | | | | | Since label presenter is used in label index view, label class check doesn't work as expected because the class is now LabelPresenter. Also `label.subject` doesn't work as expected now because Label's model `subject` method is shadowed by Gitlab's presenter's method which uses `subject` for referencing the original object. Instead we use a presenter's method for both checks now. `label_deletion_confirm_text` is not used anywhere so it's removed
* Add changelog entryJacques Erasmus2019-05-271-40/+0
| | | | Added a changelog entry for the feature
* Fix specs to match route changesDmitriy Zaporozhets2019-05-201-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove duplicate clusterable presenter methodinstance_level_clustersJames Fargher2019-05-072-12/+0
|
* Instance level kubernetes clusters adminJames Fargher2019-05-071-0/+12
| | | | | Instance level clusters were already mostly supported, this change adds admin area controllers for cluster CRUD
* Show health graphs on group-levelPeter Leitzen2019-05-062-0/+12
| | | | Tweak cluster helper and refactor its specs.
* Fix ref_text of merge request pipelinesfix-ref-text-of-mr-pipelinesShinya Maeda2019-04-301-0/+46
| | | | | Source branch can be removed after the merge and we have to make sure to avoid rendering links if it's the case.
* Move scoped_label into label presenterJan Provaznik2019-04-231-0/+65
| | | | | | | When rendering a label we want to check 'scoped_label' feature availability on a project/group where label is being used. For this reason a label presenter is used in UI and information about context project/group is passed to this presenter.
* Improvements to Project overview UIIllya Klymov2019-04-191-0/+19
|
* Rename CI related selectorsGeorge Tsiolis2019-04-161-2/+2
|
* Autocorrect with RSpec/ExampleWording copThong Kuah2019-04-051-6/+6
| | | | | | | - rewords examples starting with 'should' - rewords examples starting with 'it' Note: I had to manually fixup "onlies" to "only"
* Add pipeline bridge presenterbackstage/gb/add-pipeline-bridge-presenterGrzegorz Bizon2019-04-031-0/+15
|
* Renames Cluster#managed? to provided_by_user?Mayra Cabrera2019-03-291-0/+16
| | | | | | This will allow to user the term managed? on https://gitlab.com/gitlab-org/gitlab-ce/issues/56557. Managed? will be used to distinct clusters that are automatically managed by GitLab
* Create detached merge request pipelinespersist-fulll-ref-path-for-mr-pipelinesShinya Maeda2019-03-291-0/+38
| | | | | | | | | | | | | | | | | | By using `refs/merge-requests/:iid/head` ok ok Improve naming nicely Add nice tests add nice tests fix some more revert
* Resolve CE/EE differences in MergeRequestPresenter specSean McGivern2019-03-251-2/+44
|
* Update pipeline detail view to accommodate post-merge pipelinesShinya Maeda2019-03-192-0/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit changes Add spec Add changelog fix fix Fix Fix spec Finish spec ok nice ok ok ok fix
* Merge branch '56937-edit-knative-domain' into 'master'Grzegorz Bizon2019-03-072-0/+16
|\ | | | | | | | | | | | | Edit Knative domain after it has been deployed Closes #56937 See merge request gitlab-org/gitlab-ce!25386
| * Sends update route to the clientJoão Cunha2019-03-052-0/+16
| | | | | | | | | | - extends presenters to include update endpoint path - sends path to the client on clusters clusters show view.
* | Merge branch 'expand-diff-to-full-file' into 'master'Douwe Maan2019-03-071-0/+159
|\ \ | | | | | | | | | | | | | | | | | | Expand diff to entire file Closes #19054 See merge request gitlab-org/gitlab-ce!24406
| * | Move diff_line preparation into presenterMark Chao2019-03-071-0/+75
| | | | | | | | | | | | Update spec
| * | Add full option for blob diff actionMark Chao2019-03-061-0/+84
| |/ | | | | | | Returns all diff lines for frontend if full is true. Turn UnfoldForm into presenter, and move controller logic to presenter.
* | Expose merge request entity for pipelinesShinya Maeda2019-03-061-0/+23
|/ | | | | | | | | | | | | | | | | | | | | | | Add preload Fix ok Write tests test only postgresql ok add more test ; Improve wording Add changelog Fix
* Expose refspec and depth to runnerShinya Maeda2019-02-251-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix fix and fix Allow full ref specification for pipeline creation Add spec Support backward compatibility Use ref path Runner feature flag Simplify the things Support fork workflow (Public only) Expose ref spec Use refspec Glooming Decouple unrelated changes Add changelog Revert unrelated file Decouple unnecessary Add spec Use refspecs Fix changelog Simplify Fix coding offence Fix a ok ok ok ok ok a a Fix Add workaround for ignore_column Fix git depth Fix coding offence Fix spec Simplify more Do not set ignored column Fix tests Fix pipeline Fix spec fix fixture yes Revert nonsense fix Revert more ok Decouple mr pipelines fix spev Remove unrelated changes
* Send project name with Gitaly repository requestsStan Hu2019-02-051-1/+1
| | | | | | | When hashed storage is in use, it's helpful to have the project name associated with the request. Closes https://gitlab.com/gitlab-org/gitaly/issues/1394
* [master] Pipelines section is available to unauthorized usersKamil Trzciński2019-01-311-0/+54
|
* Fix subject in trigger presenter testsGrzegorz Bizon2019-01-311-1/+1
|
* Add some specs for trigger presenterGrzegorz Bizon2019-01-311-0/+51
|
* Enable the Layout/ExtraSpacing cop56392-enable-the-layout-extraspacing-copRémy Coutable2019-01-241-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Allow users to add cluster with ancestorsMayra Cabrera2018-12-241-0/+64
| | | | | | | | | | | Include a new policy in Clusterables (projects and groups), which checks if another cluster can be added clusterable_has_cluster? and multiple_clusters_available private methods will be overriden in EE Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/34758
* Move code to presenterThong Kuah2018-12-171-1/+125
| | | | | | | | | | | | | | | Part of the code such as #show_path is already present on the presenter. Also avoid having code in two places (helper and presenter) Sanitize and assert html_safe. Additional layer of defense - on top of GitLab already requiring group names to be composed of small set of chars A-Z, - and spaces. Only link to cluster if user can read cluster Make clear that arg is a GroupClusterablePresenter Add more specs for completeness
* Move description of cluster type to presenterThong Kuah2018-12-131-0/+14
|