summaryrefslogtreecommitdiff
path: root/app/serializers
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Merge branch '57414-show-pipeline-iid-in-pipelines-page' into 'master'"revert-3a50fc5dKamil Trzciński2019-06-141-1/+0
| | | This reverts merge request !26853
* Merge branch 'ce-3861-use-serializers-for-project-group-boards' into 'master'Stan Hu2019-06-132-0/+10
|\ | | | | | | | | Use serialization for project boards See merge request gitlab-org/gitlab-ce!29263
| * Use serialization for project boardscharlieablett2019-06-062-0/+10
| | | | | | | | | | | | - Add serializers and Grape::Entity - Replace to_json - Add specs
* | Add doc links for confidential and locked issuesFatih Acet2019-06-061-0/+8
|/ | | | | With this commit, we add docs link for confidential and locked issues to note compose and edit forms
* Abstract auto merge processesShinya Maeda2019-06-031-3/+7
| | | | | | | | | | | | 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
* Add Pipeline IID to viewsMike Scott2019-05-301-0/+1
| | | | | | | | | | * Add Pipeline IID to MR's * Add Pipeline IID to commit box * Add Pipeline IID to builds page * Add Pipeline IID to job sidebar * Add Pipeline IID to header on view pipeline pages * Add changelog entry * Update tests
* Extract Ci::Build#report_artifacts into methodmc/feature/reports-downloadMatija Čupić2019-05-281-3/+4
| | | | | Extracts combining the job_artifacts relation with the with_reports scope for getting report artifacts into a method.
* Rename with_all_reports to with_reportsMatija Čupić2019-05-282-4/+2
|
* Move JobArtifactEntity to JobArtifactReportEntityMatija Čupić2019-05-282-2/+2
|
* Expose report download path in build detailsMatija Čupić2019-05-282-0/+19
| | | | Exposes report download paths in build details.
* Merge branch 'backstage/gb/improve-jobs-controller-performance' into 'master'57694-documentation-for-graphqlStan Hu2019-05-284-11/+39
|\ | | | | | | | | | | | | Improve performance of jobs controller show Closes #60708 See merge request gitlab-org/gitlab-ce!28093
| * Expose build environment latest deployable name and pathGrzegorz Bizon2019-05-241-1/+20
| |
| * Do not serialize deployment details for build details pageGrzegorz Bizon2019-05-242-6/+10
| |
| * Do not serialize a deployment commit showing a jobGrzegorz Bizon2019-05-241-1/+5
| |
| * Add specs for Gitaly calls in deployment serializationGrzegorz Bizon2019-05-241-1/+0
| |
| * Do not serialize a pipeline again when showing a buildGrzegorz Bizon2019-05-243-9/+7
| | | | | | | | | | | | | | | | | | | | This change makes it possible to avoid additional serialization of entire pipeline when rendering a build details page. Instead we expose more information from the build entity itself what is much cheaper than serializing entire pipeline. Additionally we do not need to serialize `latest?` flag, which involves multiple Gitaly calls.
| * Do not serialize pipeline on each build serialization requestGrzegorz Bizon2019-05-241-1/+5
| |
* | Rephrase specs description for cycle analytics30138-display-cycle-analytics-issueMałgorzata Ksionek2019-05-271-1/+1
| |
* | Add specs for median serializingMałgorzata Ksionek2019-05-231-0/+1
| |
* | Change to_i method to to_f methodMałgorzata Ksionek2019-05-211-2/+2
|/ | | | | | In order to stop showing 'Not enough data' in cycle analytics view Remove puts from the file
* Display classname JUnit attribute in report modalFabio Pitino2019-05-201-0/+1
|
* Expose can_uninstall in cluster_status.jsonThong Kuah2019-04-291-0/+1
| | | | | | | | Only prometheus can be uninstalled atm, the rest will be dealt with later. Presumption is that new application types will have uninstallation implmemented at the same time.
* Fix slow performance with compiling HAML templatesStan Hu2019-04-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Rails 5, including `ActionView::Context` can have a significant and hidden performance penalty because this module also includes `ActionView::CompiledTemplates`. This means that any module that includes ActionView::Context becomes a descendant of `CompiledTemplates`. When a partial is rendered for the first time, it runs `ActionView::CompiledTemplates#module_eval`, which will evaluate a string that defines a new method for that partial. For example, the source of partial might be this string: ``` def _app_views_project_show_html_haml___12345(local_assigns, output) "hello world" end ``` When this string is evaluated, the Ruby interpreter will define the method and clear the global method cache for all descendants of `ActionView::CompiledTemplates`. Previous to this change, we inadvertently made a number of modules fall into this category: * GroupChildEntity * NoteUserEntity * Notify * MergeRequestUserEntity * AnalyticsCommitEntity * CommitEntity * UserEntity * Kaminari::Helpers::Paginator * CurrentUserEntity * ActionView::Base * ActionDispatch::DebugExceptions::DebugView * MarkupHelper * MergeRequestPresenter After this change: * Kaminari::Helpers::Paginator * ActionView::Base * ActionDispatch::DebugExceptions::DebugView Each time a partial is rendered for the first time, all methods for those modules will have to be redefined. This can exact a significant performance penalty. How bad is this penalty? Using the following benchmark script, we can use DTrace to sample the Ruby interpreter: ``` Benchmark.bm do |x| x.report do 1000.times do ActionView::CompiledTemplates.module_eval("def testme\nend") end end end ``` This revealed a 11x jump in the time spent in `core#define_method` alone. Rails 6 fixes this behavior by moving the `include CompiledTemplates` into ActionView::Base so that including `ActionView::Context` doesn't quietly affect other modules in this way. Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/11198
* 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.
* | Add time tracking information to Issue Boards sidebarKushal Pandya2019-04-121-0/+1
| | | | | | | | Add time tracking progress bar to Issue Boards sidebar.
* | Add time tracking to issue board entitiespataar2019-04-101-0/+1
| |
* | Merge branch ↵Robert Speicher2019-04-091-17/+23
|\ \ | | | | | | | | | | | | | | | | | | '6649-extract-ee-specific-files-lines-for-ci-cd-app-serializers' into 'master' Extract preloaded_relations See merge request gitlab-org/gitlab-ce!27168
| * | Extract preloaded_relations into method6649-extract-ee-specific-files-lines-for-ci-cd-app-serializersMatija Čupić2019-04-091-17/+23
| | |
* | | [CE] Support multiple assignees for merge requestsosw-multi-assignees-merge-requestsOswaldo Ferreira2019-04-087-16/+19
|/ / | | | | | | | | Backports https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10161 (code out of ee/ folder).
* | Add Knative metrics to PrometheusChris Baumbauer2019-04-061-0/+7
| |
* | Merge branch '54506-show-error-when-namespace-svc-missing' into 'master'Grzegorz Bizon2019-04-051-0/+2
|\ \ | |/ |/| | | | | | | | | Show error when namespace/svc account missing Closes #54506 See merge request gitlab-org/gitlab-ce!26362
| * Expose build failure reasonTiger2019-04-021-0/+2
| | | | | | | | | | We can use this to show more informative error messages with links to documentation etc.
* | Fixed test specsOswaldo Ferreira2019-04-044-2/+13
| | | | | | | | | | - added suggestions to mock data - fixed props to be not required
* | Merge branch '13784-validate-variables-for-masking' into 'master'Clement Ho2019-04-032-0/+2
|\ \ | | | | | | | | | | | | Simple masking frontend - CE See merge request gitlab-org/gitlab-ce!26751
| * | Add control for variable value maskingmfluharty2019-03-292-0/+2
| |/ | | | | | | | | | | Show masked switch for each variable When toggled on, the variable value will be masked in runner logs Show warning message if the switch is on but the value is not maskable
* | Merge branch 'expose-mr-pipeline-parameters-for-merge-widget-ce' into 'master'Kamil Trzciński2019-04-022-0/+3
|\ \ | | | | | | | | | | | | Backport: Expose merge request pipeline parameters for MR widget See merge request gitlab-org/gitlab-ce!26826
| * | Backport EE changeexpose-mr-pipeline-parameters-for-merge-widget-ceShinya Maeda2019-04-022-0/+3
| |/ | | | | | | This is for merge request pipelines
* | Fixed expand full file button showing on imagesPhil Hughes2019-04-011-1/+1
|/ | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/59695
* Revert "Merge branch '13784-validate-variables-for-masking' into 'master'"Kamil Trzciński2019-03-272-2/+0
| | | This reverts merge request !25476
* Scaffold UI elements for minimal versionMiranda Fluharty2019-03-272-0/+2
| | | | | Add a masked switch to variable rows Copy some behavior from the protected switch
* Remove expand diff to full file feature flagPhil Hughes2019-03-261-1/+1
|
* Extract EE specific files/lines for Release app/serializersShinya Maeda2019-03-221-1/+1
|
* Merge branch '59147-duplicate-match-line' into 'master'Douwe Maan2019-03-211-1/+1
|\ | | | | | | | | | | | | Fix duplicated bottom match line Closes #59147 See merge request gitlab-org/gitlab-ce!26402
| * Fix diff bottom expand button appears twiceMark Chao2019-03-211-1/+1
| | | | | | | | | | | | | | This is a quick fix by only append match line once when calling diff_lines_for_serializer multiple time. Also enable feature by default
* | Update pipeline detail view to accommodate post-merge pipelinesShinya Maeda2019-03-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit changes Add spec Add changelog fix fix Fix Fix spec Finish spec ok nice ok ok ok fix
* | Merge branch 'update-rubocop' into 'master'Stan Hu2019-03-131-9/+7
|\ \ | | | | | | | | | | | | Update rubocop target ruby version See merge request gitlab-org/gitlab-ce!24804
| * | Run rubocop -aNick Thomas2019-03-131-9/+7
| |/
* | Add attached flag to pipeline entityShinya Maeda2019-03-131-1/+2
|/ | | | | | | | | | | | | | | | | | Add spec Fix Fix Add changelog Drop attached Remove attached Update changelog ok
* Add support for ingress hostnamesingress-hostnameswalkafwalka2019-03-071-0/+1
|