summaryrefslogtreecommitdiff
path: root/spec/factories
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/master' into ↵Kamil Trzcinski2017-09-071-0/+4
|\ | | | | | | zj/gitlab-ce-zj-auto-devops-table
| * Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ↵Simon Knox2017-09-068-13/+66
| |\ | | | | | | | | | ee_issue_928_backport
| * | Backport specsFelipe Artur2017-08-311-0/+4
| | |
* | | Add tests to cover all introduced changesKamil Trzcinski2017-09-061-0/+1
| | |
* | | Merge branch 'master' into zj-auto-devops-tableZeger-Jan van de Weg2017-09-066-11/+17
|\ \ \ | | |/ | |/|
| * | use new #verification_statusAlexis Reigel2017-09-051-1/+1
| | |
| * | Remove ci_trigger_request_with_variablesShinya Maeda2017-09-043-9/+1
| | |
| * | Fix specShinya Maeda2017-09-042-6/+5
| | |
| * | Revert autheticate! in Trigger APIShinya Maeda2017-09-042-10/+9
| | |
| * | Remove CreateTriggerRequestService and forbit to save variables on ↵Shinya Maeda2017-09-041-8/+9
| | | | | | | | | | | | Ci::TriggerRequest
| * | Merge branch ↵Kamil Trzciński2017-09-043-0/+15
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'feature/sm/33281-protected-runner-executes-jobs-on-protected-branch' into 'master' Protected runner executes jobs on protected branch [Solution 1] Closes #33281 See merge request !13194
| | * | Fix specShinya Maeda2017-09-033-12/+1
| | | |
| | * | Add validation for protected attributesShinya Maeda2017-09-032-2/+12
| | | |
| | * | Improve spec. Add validation for accel_level on runner.Shinya Maeda2017-09-031-2/+2
| | | |
| | * | Refactor access_level to not_protected and ref_protectedShinya Maeda2017-09-031-4/+4
| | | |
| | * | Impprove spec by godfat suggestionsShinya Maeda2017-09-031-2/+2
| | | |
| | * | Add the rest of specsShinya Maeda2017-09-031-0/+8
| | | |
| | * | Add spec. Fix runner setting page. It worked.Shinya Maeda2017-09-031-0/+8
| | | |
* | | | Merge branch 'master' into zj-auto-devops-tableZeger-Jan van de Weg2017-09-042-2/+49
|\ \ \ \ | |/ / /
| * | | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceJose Ivan Vargas2017-09-031-0/+49
| |\ \ \ | | |/ /
| | * | Add settings for minimum key strength and allowed key typeNick Thomas2017-08-301-0/+49
| | |/ | | | | | | | | | | | | | | | | | | | | | This is an amalgamation of: * Cory Hinshaw: Initial implementation !5552 * Rémy Coutable: Updates !9350 * Nick Thomas: Resolve conflicts and add ED25519 support !13712
| * | Merge branch '36743-existing-repo-master' into 'master'Douwe Maan2017-08-311-2/+0
| |\ \ | | |/ | |/| | | | | | | [master] Prevent project creation (blank, import or fork) when repository already exists on disk See merge request gitlab/gitlabhq!2169
| | * Prevent new / renamed project from using a repository path that already ↵Gabriel Mazetto2017-08-251-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exists on disk There are some redundancies in the validation steps, and that is to preserve current error messages behavior Also few specs have to be changed in order to fix madness in validation logic.
* | | Implement the implied CI/CD config for AutoDevOpsZeger-Jan van de Weg2017-08-311-0/+6
|/ / | | | | | | | | | | | | | | | | | | | | | | Behind an application setting, which defaults to false, this commit implements the implied CI/CD config. Which means that in the case we can't find the `.gitlab-ci.yml` on the commit we want to start a pipeline for, we fall back to an implied configuration. For now the Bash template has been copied to `Auto-Devops.gitlab-ci.yml` so the tests actually work. Fixes #34777
* | Make default trigger factory generate an ownerLin Jen-Shin2017-08-251-0/+2
|/ | | | And specify owners more clearly
* Make sure repository's removal work for legacy and hashed storages28283-uuid-storageGabriel Mazetto2017-08-221-1/+1
|
* New storage is now "Hashed" instead of "UUID"Gabriel Mazetto2017-08-221-0/+4
|
* Use usual method to retrieve CI/CD stage statusesGrzegorz Bizon2017-08-161-1/+1
|
* Merge branch 'master' into backstage/gb/migrate-stages-statusesGrzegorz Bizon2017-08-1633-131/+173
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (1000 commits) Fix username autocomplete group name with no avatar alignment Fix 'Projected tags' typo in protected_tags_spec.rb Many Repo Fixes Repo Editor Fixes Docs: New index for permissions link article from CI index link tech articles from the landing page new articles come first fix relative link fix date format Fixed changed files dropdown not being shown Update publication date Remove deprecated field from workhorse API responses Fix API responses when dealing with txt files Make sure MySQL would not use CURRENT_TIMESTAMP Add two more project templates Allow usage of any_projects? with an Array Copyedit Artifactory and GitLab article Rename Artifactory and GitLab article file Display GPG status loading spinner only when Ajax request is made ...
| * Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-08-141-0/+16
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 36089-handle-ref-failure-better * upstream/master: (47 commits) Update CHANGELOG.md for 9.4.5 Update charlock_holmes add a changelog entry switch to multi-line before block restructure the #new_key notification spec don't send devise notifications to the ghost user reset_delivered_emails before testing #new_key skip the :read_project check for new_project_member move the member spec to be with the other ones add a spec for new_group_member add a spec for never emailing the ghost user rubocop fix a membership with no user is always notifiable check notifiability for more emails add Member#notifiable?(type, opts) make NotificationRecipient a little more customizable Add notes about database performance for MySQL fix confidential border issue as well as confidential styles leaking on new MR Migrate force push check to Gitaly Add option to disable project export on instance ...
| | * Merge branch 'split-events-into-push-events' into 'master'Sean McGivern2017-08-111-0/+16
| | |\ | | | | | | | | | | | | | | | | Use a separate table for storing push events See merge request !12463
| | | * Migrate events into a new formatYorick Peterse2017-08-101-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit migrates events data in such a way that push events are stored much more efficiently. This is done by creating a shadow table called "events_for_migration", and a table called "push_event_payloads" which is used for storing push data of push events. The background migration in this commit will copy events from the "events" table into the "events_for_migration" table, push events in will also have a row created in "push_event_payloads". This approach allows us to reclaim space in the next release by simply swapping the "events" and "events_for_migration" tables, then dropping the old events (now "events_for_migration") table. The new table structure is also optimised for storage space, and does not include the unused "title" column nor the "data" column (since this data is moved to "push_event_payloads"). == Newly Created Events Newly created events are inserted into both "events" and "events_for_migration", both using the exact same primary key value. The table "push_event_payloads" in turn has a foreign key to the _shadow_ table. This removes the need for recreating and validating the foreign key after swapping the tables. Since the shadow table also has a foreign key to "projects.id" we also don't have to worry about orphaned rows. This approach however does require some additional storage as we're duplicating a portion of the events data for at least 1 release. The exact amount is hard to estimate, but for GitLab.com this is expected to be between 10 and 20 GB at most. The background migration in this commit deliberately does _not_ update the "events" table as doing so would put a lot of pressure on PostgreSQL's auto vacuuming system. == Supporting Both Old And New Events Application code has also been adjusted to support push events using both the old and new data formats. This is done by creating a PushEvent class which extends the regular Event class. Using Rails' Single Table Inheritance system we can ensure the right class is used for the right data, which in this case is based on the value of `events.action`. To support displaying old and new data at the same time the PushEvent class re-defines a few methods of the Event class, falling back to their original implementations for push events in the old format. Once all existing events have been migrated the various push event related methods can be removed from the Event model, and the calls to `super` can be removed from the methods in the PushEvent model. The UI and event atom feed have also been slightly changed to better handle this new setup, fortunately only a few changes were necessary to make this work. == API Changes The API only displays push data of events in the new format. Supporting both formats in the API is a bit more difficult compared to the UI. Since the old push data was not really well documented (apart from one example that used an incorrect "action" nmae) I decided that supporting both was not worth the effort, especially since events will be migrated in a few days _and_ new events are created in the correct format.
| * | | Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-08-112-53/+52
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 36089-handle-ref-failure-better * upstream/master: (62 commits) Update gitlab.po: Missing 'r' in "Fouché" that comes from "Fourcher" verb. Docs: update user docs index Fix minor typos in views Fix Layout/SpaceBeforeBlockBraces violation in bin/changelog_spec Merge branch 'rs-alphanumeric-ssh-params' into 'security-9-4' Merge branch 'import-symlinks-9-3' into 'security-9-3' Fix wrong method call on prometheus histogram Document new all-in-one Helm chart - docs Fix 404 on link path Fix line numbers not matching up to code in code viewer. Hide overflow-x on collapsed sidebar removed global use of breakpoint checker Increase performance of the breakpoint size checker Filter sensitive query string parameters from NGINX access logs Added a template for database changes Render new issue link in failed job as a regular link instead of a UJS one Include RE2 in the upgrade docs Remove affix plugin from issuable sidebar with new navigation Fix linter error alternative route for download archive ...
| | * | Merge branch 'rc/improve-projects-factory' into 'master'Robert Speicher2017-08-102-53/+48
| | |\ \ | | | | | | | | | | | | | | | | | | | | Improve the Project factory to make `creator` defaults to `namespace.owner` See merge request !13412
| | | * | Improve the Project factory to make `creator` defaults to namespace.ownerRémy Coutable2017-08-102-53/+48
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also improves the `create_templates` transient attribute and use `project.project_feature.update_columns` instead of `project.project_feature.update_attributes!` since it's faster. Signed-off-by: Rémy Coutable <remy@rymai.me>
| | * | Manually assign `notification_email` in the User factory when stubbedrs-fix-stubbed-user-factoryRobert Speicher2017-08-081-0/+4
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | Because we assign this value in the model via a callback conditionally on `email_changed?`, this never gets set when using `build_stubbed`, resulting in a "can't be blank" validation error on this field. In this case, we can just assign it manually to the same value as `email`, which is generated via a sequence.
| * | Introduce MergeRequest#write_ref and Repository#write_refLin Jen-Shin2017-08-101-2/+2
| | | | | | | | | | | | so that we don't have to fetch it for non-forks
| * | Fix some tests and report the error messageLin Jen-Shin2017-08-092-1/+6
| | |
| * | Fake out Repository#fetch_ref for merge request ifLin Jen-Shin2017-08-091-0/+10
| |/ | | | | | | | | the project didn't have a repository setup. We don't try to stub it if the repository was already there.
| * Merge branch '35761-convdev-perc' into 'master'Sean McGivern2017-08-071-0/+10
| |\ | | | | | | | | | | | | | | | | | | Store & use ConvDev percentages returned by Version app Closes #35761 See merge request !13217
| | * Store & use ConvDev percentages returned by Version app35761-convdev-percJarka Kadlecova2017-08-071-0/+10
| | |
| * | Add a Circuitbreaker for storage pathsBob Van Landuyt2017-08-041-0/+6
| |/
| * Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-0229-41/+37
| |
| * Remove `:empty_project` factory, implement `:repository` traitRobert Speicher2017-08-021-48/+43
| |
| * Extending API for protected branchesEric2017-08-021-0/+6
| |
| * Ensure all project factories use `:repository` trait or `:empty_project`rs-empty_project-cleanupRobert Speicher2017-08-011-1/+1
| |
| * Merge branch '33620-remove-events-from-notification_settings' into 'master'Douwe Maan2017-08-011-1/+0
| |\ | | | | | | | | | | | | | | | | | | Resolve "Remove `events` from `notification_settings`" Closes #33620 See merge request !13152
| | * Remove events column from notification settings33620-remove-events-from-notification_settingsSean McGivern2017-07-311-1/+0
| | | | | | | | | | | | | | | This was migrated to separate columns in 9.4, and now just needs to be removed for real.
| * | Rename path_with_namespace -> disk_path when dealing with the filesystemGabriel Mazetto2017-08-011-2/+2
| | |
| * | Fix group milestone path on issuable sidebarfix-group-milestone-link-in-issuable-sidebarSean McGivern2017-07-311-1/+1
| |/