summaryrefslogtreecommitdiff
path: root/app/presenters
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* [master] Pipelines section is available to unauthorized usersKamil Trzciński2019-01-312-0/+17
|
* Do not expose trigger token when user should not see itGrzegorz Bizon2019-01-311-0/+19
|
* Merge branch '54167-rename-project-tags-to-project-topics' into 'master'Kushal Pandya2019-01-111-8/+8
|\ | | | | | | | | | | | | Resolve "Rename project tags to project topics" Closes #54167 See merge request gitlab-org/gitlab-ce!24219
| * Rename tags to topicsMartin Wortschack2019-01-101-8/+8
| | | | | | | | | | | | | | | | - Rename CSS class - Fix broken test - Update project settings docs - Update general project settings image - Rename helper methods
* | Disable resolve conflicts for protected branchesPhil Hughes2019-01-071-0/+4
|/ | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/53463
* Allow users to add cluster with ancestorsMayra Cabrera2018-12-241-0/+4
| | | | | | | | | | | 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-0/+42
| | | | | | | | | | | | | | | 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/+8
|
* Further design iteration on project overviewDennis Tang2018-12-071-51/+89
| | | | | | | | | | | | | | | | | | | | Continues the iteration on the project overview UI: - moved star, fork and new clone button (copy SSH/HTTPS URLs) to top right, made them smaller - avatar is now larger (64px) - 'Request access' is now a link instead of a button - overview comes before the description + changed styling and added icons - description font-size is now 16px (large-paragraph) - quick links to files are moved downwards below the commit/pipeline info - margins changed to group content into 4 groups to clean up the interface - visibility info reduced to icon-only and moved to the right of the title
* Resolve "Can add an existing group member into a group project with new ↵James Lopez2018-12-061-0/+8
| | | | permissions but permissions are not overridden"
* Correct link to group clusters docsThong Kuah2018-12-061-1/+1
| | | | Not project clusters
* Suggests issues when typing titlePhil Hughes2018-11-272-0/+18
| | | | | | | | | | | | | | | This suggests possibly related issues when the user types a title. This uses GraphQL to allow the frontend to request the exact data that is requires. We also get free caching through the Vue Apollo plugin. With this we can include the ability to import .graphql files in JS and Vue files. Also we now have the Vue test utils library to make testing Vue components easier. Closes #22071
* Refactor how a few ActiveRecord enums are definedrefactor-enums-for-eeYorick Peterse2018-11-151-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a few models we define ActiveRecord enums that are redefined in EE using the following pattern: enum :some_enum, { ... }.merge(EE_ENUM_VALUES) This particular approach is problematic to deal with, because it requires that we `prepend` and EE module _before_ defining the enum. This typically translates to the `prepend` being the first line in the model in EE, but this can easily lead to merge conflicts when developers add more `include` and/or `prepend` lines. As part of https://gitlab.com/gitlab-org/gitlab-ee/issues/8244 and https://gitlab.com/gitlab-org/gitlab-ee/issues/8241 we are moving `prepend` to the last line in a file, reducing the chances of running into merge conflicts. This poses a bit of a problem with the pattern above, because this pattern does not allow us to move the `prepend` further down a file. To resolve this problem, we simply move the Hash value of the enum to a separate class method. This method is defined in a separate module where necessary, allowing us to use it like so: enum :failure_reasons, ::SomeModelEnums.failure_reasons The method in turn is defined in a very straightforward manner: module SomeModelEnums def self.failure_reasons { ... } end end This makes it easy for EE to add values without requiring the `prepend` to be placed before the `enum` is defined. For more information, see the following issues and merge requests: * https://gitlab.com/gitlab-org/gitlab-ee/issues/8244 * https://gitlab.com/gitlab-org/gitlab-ee/issues/8241 * https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/8424
* Reverse view override as EE has an override tooThong Kuah2018-11-083-0/+14
| | | | Use presenters instead otherwise we will have x2 overides in EE
* Refactor to use presenterThong Kuah2018-11-083-5/+28
| | | | | | | Refacotr project or group specific `if` logic to be contained within each presenter instead. Also add :override to ensure super method exists.
* Consolidate how we allow user defined namespaceThong Kuah2018-11-081-4/+0
| | | | | Use model method as single source of truth instead of splitting between presenter and Kubernetes model
* Rename is_project? to project?Mike Greiling2018-11-083-3/+3
|
* Update empty state for group clusters indexMike Greiling2018-11-083-0/+12
|
* Only project clusters has Project Namespace fieldThong Kuah2018-11-081-0/+4
| | | | | Group clusters should not allow Project Namespace so don't show that field input too