summaryrefslogtreecommitdiff
path: root/app/presenters
Commit message (Collapse)AuthorAgeFilesLines
* Refactor: model errors for multi cluster validationDylan Griffith2019-07-111-1/+13
| | | | | | | | | | | The current approach requires catching exceptions to handle these errors and callers are already handling model validations so it seems more appropriate. Also it seemed to convoluted to add this logic directly to the model since the model needs to check too many possible associations to determine whether or not there are more than one cluster since the model doesn't know what it's being created on. Additionally we only wanted to validate during create to avoid the risk of existing models becoming invalid by many different edge cases.
* Merge branch 'graphql-tree-last-commit' into 'master'Lin Jen-Shin2019-06-281-1/+7
|\ | | | | | | | | Added commit type to tree GraphQL type See merge request gitlab-org/gitlab-ce!29412
| * Added commit type to tree GraphQL typePhil Hughes2019-06-281-1/+7
| |
* | GraphQL mutations for add, remove and toggle emoji62826-graphql-emoji-mutationsLuke Duncalfe2019-06-281-0/+27
|/ | | | | | | | | | | | 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
* Merge branch 'expose-project-git-depth-via-api' into 'master'Kamil Trzciński2019-06-121-1/+1
|\ | | | | | | | | | | | | Expose default_git_depth via project API Closes #62908 See merge request gitlab-org/gitlab-ce!29353
| * 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
* | Merge branch 'add-lfs-blob-ids-to-tree-type' into 'master'Filipa Lacerda2019-06-111-1/+1
|\ \ | |/ |/| | | | | Add LFS blob IDs to GraphQL tree type See merge request gitlab-org/gitlab-ce!28666
| * Add LFS blob ID to GraphQL blob typePhil Hughes2019-06-101-1/+1
| |
* | Move project default git depth behind feature flagsFabio Pitino2019-06-101-1/+1
|/
* Add project level git depth settingKrasimir Angelov2019-06-061-6/+12
| | | | | | | | | | | | | | | | | | | | 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/+13
|\ | | | | | | | | 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/+13
| |
* | Merge branch 'revert-git-depth-for-merge-request' into 'master'Kamil Trzciński2019-06-051-3/+2
|\ \ | |/ |/| | | | | 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-3/+2
| |
* | Merge branch 'sh-resolve-member-presenter-conflicts' into 'master'Robert Speicher2019-06-031-0/+5
|\ \ | | | | | | | | | | | | Reconcile CE and EE differences in members/_member.html.haml See merge request gitlab-org/gitlab-ce!29021
| * | Reconcile CE and EE differences in members/_member.html.hamlsh-resolve-member-presenter-conflictsStan Hu2019-06-011-0/+5
| |/ | | | | | | This file conflicts quite frequently with any changes in the file.
* | Merge branch 'abstract-auto-merge' into 'master'Kamil Trzciński2019-06-031-3/+3
|\ \ | | | | | | | | | | | | Refactor and abstract Auto Merge Processes See merge request gitlab-org/gitlab-ce!28595
| * | Abstract auto merge processesShinya Maeda2019-06-031-3/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | 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-1/+11
|/ | | | | and allow passing of child_complexity to the 'resolver_complexity' metho
* Fixes ref being displayed as raw HTML609120-ref-linkFilipa Lacerda2019-05-301-1/+1
| | | | | The ref to the branch was being displayed as raw HTML in the Pipelines page
* Fix display of promote to group labelJan Provaznik2019-05-281-0/+8
| | | | | | | | | | | | | 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-4/+0
| | | | Added a changelog entry for the feature
* Remove duplicate clusterable presenter methodinstance_level_clustersJames Fargher2019-05-073-14/+0
|
* Instance level kubernetes clusters adminJames Fargher2019-05-072-0/+73
| | | | | Instance level clusters were already mostly supported, this change adds admin area controllers for cluster CRUD
* Show health graphs on group-levelPeter Leitzen2019-05-063-0/+14
| | | | Tweak cluster helper and refactor its specs.
* Fix ref_text of merge request pipelinesfix-ref-text-of-mr-pipelinesShinya Maeda2019-04-302-10/+18
| | | | | 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/+43
| | | | | | | 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-2/+2
|
* Merge branch 'nfriend-update-merge-request-widget-for-post-merge-pipelines' ↵Filipa Lacerda2019-04-161-0/+4
|\ | | | | | | | | | | | | into 'master' Update merge request widget to accommodate post-merge pipelines See merge request gitlab-org/gitlab-ce!25983
| * Add two warning messages to the MR widgetnfriend-update-merge-request-widget-for-post-merge-pipelinesNathan Friend2019-04-151-0/+4
| | | | | | | | | | This commit adds two new warning messages to the MR widget that handle cases involving merge request pipelines.
* | Merge branch 'gt-fix-styling-for-pages-status' into 'master'Filipa Lacerda2019-04-161-1/+1
|\ \ | | | | | | | | | | | | | | | | | | Fix styling for `app/assets/stylesheets/pages/status.scss` Closes #59929 See merge request gitlab-org/gitlab-ce!26875
| * | Rename CI related selectorsGeorge Tsiolis2019-04-161-1/+1
| |/
* | Externalize several strings inMartin Wortschack2019-04-161-4/+7
|/ | | | | | - app/services - app/controllers - app/presenters
* Add pipeline bridge presenterbackstage/gb/add-pipeline-bridge-presenterGrzegorz Bizon2019-04-031-0/+9
|
* Renames Cluster#managed? to provided_by_user?Mayra Cabrera2019-03-291-0/+4
| | | | | | 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-1/+8
| | | | | | | | | | | | | | | | | | By using `refs/merge-requests/:iid/head` ok ok Improve naming nicely Add nice tests add nice tests fix some more revert
* Merge branch '57115-just-in-time-k8s-resource-creation' into 'master'Clement Ho2019-03-201-1/+2
|\ | | | | | | | | Create project-specific Kubernetes resources just-in-time See merge request gitlab-org/gitlab-ce!25586
| * Create framework for build prerequisitesTiger2019-03-201-1/+2
| | | | | | | | | | | | | | | | | | Introduces the concept of Prerequisites for a CI build. If a build has unmet prerequisites it will go through the :preparing state before being made available to a runner. There are no actual prerequisites yet, so current behaviour is unchanged.
* | Update pipeline detail view to accommodate post-merge pipelinesShinya Maeda2019-03-192-0/+59
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit changes Add spec Add changelog fix fix Fix Fix spec Finish spec ok nice ok ok ok fix
* Clean up empty repository state UIMartin Wortschack2019-03-121-8/+2
| | | | | - Remove irrelevante information - Remove horizontal scrolling on smaller viewports - Hide auto devops flash message for empty projects
* Merge branch '56937-edit-knative-domain' into 'master'Grzegorz Bizon2019-03-073-0/+14
|\ | | | | | | | | | | | | 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-053-0/+14
| | | | | | | | | | - 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/+75
|\ \ | | | | | | | | | | | | | | | | | | 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/+31
| | | | | | | | | | | | Update spec
| * | Add full option for blob diff actionMark Chao2019-03-061-0/+44
| |/ | | | | | | 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/+6
|/ | | | | | | | | | | | | | | | | | | | | | | Add preload Fix ok Write tests test only postgresql ok add more test ; Improve wording Add changelog Fix
* Add suffix for merge request eventShinya Maeda2019-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fix ok Add spec Fix ok Fix Add changelog Fix Add memoization a fix
* Fix bug where project topics truncateBrandon Labuschagne2019-02-281-0/+4
|
* Expose refspec and depth to runnerShinya Maeda2019-02-251-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix the border style of CONTRIBUTING button when it existsTakuya Noguchi2019-02-121-1/+2
| | | | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>