summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Fix Piwik not workingsh-fix-piwik-templateStan Hu2019-08-261-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to indentation, the changes in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/31402 broke the templating of Piwik script header. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66627
* | | | | | Merge branch 'sh-guard-against-orphaned-project-feature' into 'master'Michael Kozono2019-08-261-0/+13
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Guard against deleted project feature entry Closes #66482 See merge request gitlab-org/gitlab-ce!32187
| * | | | | | Guard against deleted project feature entryStan Hu2019-08-261-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In https://gitlab.com/gitlab-org/gitlab-ce/issues/66482, we see that a project's `project_feature` association may be lazily loaded and hence return `nil` if the entry is deleted if the `Project` is already loaded in memory. To ensure we don't fail hard when this happens, assume all features are disabled. We can fix this issue by eager loading the `project_feature` in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/32169, but we shouldn't have to depend on that. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66482
* | | | | | | Revert "Merge branch 'user-tracking-settings' into 'master'"Jeremy Jackson2019-08-263-129/+50
| |/ / / / / |/| | | | | | | | | | | | | | | | | This reverts merge request !31826
* | | | | | Using before_save method instead of setterAishwarya Subramanian2019-08-261-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | Removed unused method for name setter method
* | | | | | Changes snowplow to use cookies for sessionsJeremy Jackson2019-08-263-50/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also restructures how and where the configuration for Snowplow lives.
* | | | | | Merge branch 'sh-fix-nplusone-issues' into 'master'Mayra Cabrera2019-08-261-0/+8
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix N+1 Gitaly calls in /api/v4/projects/:id/issues See merge request gitlab-org/gitlab-ce!32171
| * | | | | | Fix N+1 Gitaly calls in /api/v4/projects/:id/issuessh-fix-nplusone-issuesStan Hu2019-08-231-0/+8
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a follow-up from https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/31938. In GitLab 9.0, https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9661 removed the `subscribed` flag from the API when the user requested a list of issues or merge requests since calculating this value triggers extensive Markdown processing. In GitLab 12.0 via a4fbf39e, we accidentally reintroduced this performance regression by changing `IssueBasic` to `Issue` in `entities.rb`. This showed up as a Gitaly N+1 issue since the Markdown processing would attempt to extract a commit if it detected a regex that matched a commit. We restore the prior behavior by once again removing the `subscribed` flag for the bulk list of issues and merge requests and add a test to ensure they aren't reintroduced. Relates to https://gitlab.com/gitlab-org/gitlab-ce/issues/66202
* | | | | | Replace echo function with a resolverBrett Walker2019-08-264-7/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `GraphQL::Function` has been deprecated in favor of resolvers.
* | | | | | Change default visibility level for FogBugz imported projects to PrivateGeorge Koltsov2019-08-261-0/+29
| | | | | |
* | | | | | Add usage pings for merge request creatingIgor2019-08-263-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | Code Review Usage Ping for Create SMAU
* | | | | | Merge branch 'zj-remove-object-pools-feature-flag' into 'master'Nick Thomas2019-08-261-22/+9
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the object pools feature flag See merge request gitlab-org/gitlab-ce!32204
| * | | | | | Remove the object pools feature flagZeger-Jan van de Weg2019-08-261-22/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The flag defaulted to true, so there's no change unless users turned it off. Given there's a lack of issues regarding object pools, this should be OK.
* | | | | | | Utilize RuboCop's Include/Exclude configPeter Leitzen2019-08-263-46/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Stop checking the file location programmatically.
* | | | | | | Merge branch ↵Nick Thomas2019-08-261-0/+18
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '66443-unrecoverable-configuration-loop-in-external-auth-control' into 'master' Resolve "Unrecoverable configuration loop in external auth control" Closes #66443 See merge request gitlab-org/gitlab-ce!32102
| * | | | | | Add more tests to cover all cases66443-unrecoverable-configuration-loop-in-external-auth-controlRobert Schilling2019-08-221-0/+12
| | | | | | |
| * | | | | | Add test, reduce complexityRobert Schilling2019-08-221-0/+6
| | | | | | |
* | | | | | | Add edit_note and spec for editing quick actionsPatrick Derichs2019-08-262-3/+91
| |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Call QuickActionsService on Note update Add support for notes which just contain commands after editing Return http status gone (410) if note was deleted Temporary frontend addition so it is not failing when a note is deleted Move specs to shared examples Fix rubocop style issue Deleting note on frontend when status is 410 Use guard clause for note which got deleted Simplified condition for nil note This method should no longer be called with nil note Refactoring of execute method to reduce complexity Move errors update to delete_note method Note is now deleted visually when it only contains commands after update Add expectation Fix style issues Changing action to fix tests Add tests for removeNote and update deleteNote expectations
* | | | | | Merge branch 'db_load_balancing_service_discovery_srv' into 'master'Kamil Trzciński2019-08-261-0/+11
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | DB Load Balancing: Support SRV lookups See merge request gitlab-org/gitlab-ce!32135
| * | | | | | CE port: allow SRV records in DB service discoverydb_load_balancing_service_discovery_srvTiger2019-08-231-0/+11
| | | | | | |
* | | | | | | Merge branch 'ee-10586-geo-object-storage-replication' into 'master'Ash McKenzie2019-08-261-0/+4
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | Backport expired job artifact trait See merge request gitlab-org/gitlab-ce!32179
| * | | | | | Backport expired job artifact traitee-10586-geo-object-storage-replicationGabriel Mazetto2019-08-241-0/+4
| | |_|_|/ / | |/| | | |
* | | | | | Add helper to exactly undo cleanup_concurrent_column_renameReuben Pereira2019-08-251-0/+106
|/ / / / / | | | | | | | | | | | | | | | - Also add helper to undo rename_column_concurrently.
* | | | | Merge branch ↵Tim Zallmann2019-08-242-7/+8
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '66073-use-time-series-chart-instead-of-area-chart-in-panel_types' into 'master' Enable line charts in dashbaord panels and embedded charts Closes #66073 See merge request gitlab-org/gitlab-ce!31920
| * | | | | Replace the area with time series where usedMiguel Rincon2019-08-212-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Replace in panel_type.vue - Replace in embed.vue - Port changes to support embed in 2 cols in large screens - Update specs
| * | | | | Add karma test for time_series.vueMiguel Rincon2019-08-211-321/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New spec file for time_series.vue written using karma. New spec extends the spec from area.vue
| * | | | | This commit adds a new time series componentMiguel Rincon2019-08-211-0/+321
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a time series component for line and area charts. Displays new charts in the dashboard. - Use dynamic components for line/area swapping - Add new line charts to dashboard in 2 panels
* | | | | | Drop existing trigger before creating new oneReuben Pereira2019-08-241-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - When renaming a column concurrently, drop any existing trigger before attempting to create a new one. When running migration specs multiple times (as it happens during local development), the down method of previous migrations are called. If any of the called methods contains a call to rename_column_concurrently, a trigger will be created and not removed. So, the next time a migration spec is run, if the same down method is executed again, it will cause an error when attempting to create the trigger (since it already exists). Dropping the trigger if it already exists will prevent this problem.
* | | | | | Add a link to docs in project descriptionReuben Pereira2019-08-233-45/+334
| | | | | | | | | | | | | | | | | | | | | | | | Add to the service and migration both.
* | | | | | Adds cop to enforce string limits on migrationsMayra Cabrera2019-08-231-0/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This cop will analyze migrations that add columns with string, and report an offense if the string has no limit enforced Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/64505
* | | | | | Change misleading pipeline status tooltipScott Hampton2019-08-233-3/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some pipeline status icon tooltips were showing "Commit: ..." which customers found to be misleading since it was not the commit that was failing but the pipeline. We are changing all status icon tooltips to say "Pipeline: ..." instead of "Commit: ..." now.
* | | | | | Read pipelines from public projects though APIMarius Bobin2019-08-232-0/+246
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow users to read pipelines for public projects with public builds enabled without providing an access token.
* | | | | | Merge branch '66037-deployment-user' into 'master'Tim Zallmann2019-08-231-0/+26
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Return correct user for manual deployments See merge request gitlab-org/gitlab-ce!32004
| * | | | | | Extract logic who created deployment into Deployment#deployed_by66037-deployment-userKrasimir Angelov2019-08-221-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prefer the deployable user over the deployment user. Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/66037.
* | | | | | | Implement validation logic to ProjectStageAdam Hegyi2019-08-233-0/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Introducting StageEvents to define the available events - Define the event pairing rules, since some events are not compatible - Express default Cycle Analytics stages with the event structure
* | | | | | | Merge branch 'ce-jej/fix-sso-enforced-docker-registry-auth' into 'master'Kamil Trzciński2019-08-231-0/+8
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | [CE backport] Enforced SSO shouldn't break container registry authentication See merge request gitlab-org/gitlab-ce!32110
| * | | | | | JwtController avoids activating session checksce-jej/fix-sso-enforced-docker-registry-authJames Edwards-Jones2019-08-221-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This used without a session and issues a sessionless token, so we should avoid causing access checks based on the session.
* | | | | | | Add label_id parameter to label API for PUT and DELETEPatrick Derichs2019-08-232-122/+247
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add specs for new parameter and updated documentation as well.
* | | | | | | Merge branch 'jc-fix-auto-rugged-detection' into 'master'Lin Jen-Shin2019-08-231-0/+10
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle when server info doesn't have the storage in question See merge request gitlab-org/gitlab-ce!32023
| * | | | | | | Handle when server info doesn't have the storage in questionJohn Cai2019-08-231-0/+10
| | | | | | | |
* | | | | | | | Merge branch 'sh-eliminate-gitaly-nplus-one-notes' into 'master'Kamil Trzciński2019-08-233-51/+64
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | Eliminate Gitaly N+1 queries with notes API See merge request gitlab-org/gitlab-ce!32089
| * | | | | | | Eliminate Gitaly N+1 queries with notes APIsh-eliminate-gitaly-nplus-one-notesStan Hu2019-08-223-51/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/31834, we see that in https://gitlab.com/gitlab-org/gitlab-ce/issues/65957 there can be hundreds, even thousands, of Gitaly requests in the `/api/:version/projects/:id/merge_requests/:noteable_id/notes` endpoint. Previously, the API to retrieve notes generated hundreds of Gitaly calls to determine whether a system note should be shown to the user. It did this by: 1. Rendering the Markdown 2. Extracting cross-references from the Markdown 3. Issuing a Gitaly `FindCommit` RPC for every reference to validate that the commit exists. The last step is unnecessary because we don't need to display a commit if the user doesn't have access to the project in the first place. `RendersNotes#prepare_notes_for_rendering` is already used in `MergeRequestsController`, which is why we don't see N+1 Gitaly calls there. We use it here to optimize the note redaction process.
* | | | | | | | Merge branch '57402-upate-issues-list-sort-options-ce' into 'master'Jan Provaznik2019-08-231-0/+16
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CE: Update sort options for issues list See merge request gitlab-org/gitlab-ce!31849
| * | | | | | | | Update sort options for issues list57402-upate-issues-list-sort-options-ceAlexandru Croitor2019-08-231-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Increase sort options for issues list from updated_at and create_at, to include more options close to what is required in actual issue list UI. This helps us to use REST API for issues list with sorting capabilities https://gitlab.com/gitlab-org/gitlab-ce/issues/57402
* | | | | | | | | Hide duplicate board list while draggingWinnie Hellmann2019-08-232-4/+29
| | | | | | | | |
* | | | | | | | | Merge branch 'frozen_string_lib_2' into 'master'Nick Thomas2019-08-23199-1/+398
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add frozen_string_literal to lib part 2 See merge request gitlab-org/gitlab-ce!32094
| * | | | | | | | | Fix frozen string errorsThong Kuah2019-08-231-1/+1
| | | | | | | | | |
| * | | | | | | | | Add frozen_string_literal to lib part 2Thong Kuah2019-08-23199-0/+397
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
* | | | | | | | | | fix charts scroll handle iconLaura Montemayor2019-08-231-0/+8
| | | | | | | | | |
* | | | | | | | | | Merge branch 'optimise-build-queue-service' into 'master'Grzegorz Bizon2019-08-232-43/+74
|\ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Optimise UpdateBuildQueueService Closes #66438 See merge request gitlab-org/gitlab-ce!32095