summaryrefslogtreecommitdiff
path: root/features/steps/shared/project.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove /featuresblackst0ne2018-05-141-102/+0
|
* Replace the `project/commits/diff_comments.feature` spinach test with an ↵blackst0ne2018-05-141-7/+0
| | | | rspec analog
* Replace `features/project/merge_requests/references.featue`blackst0ne-replace-spinach-project-merge-requests-references.featureblackst0ne2018-05-101-23/+0
|
* Replace project builds permissions spinach with RSpecSemyon Pupkov2018-04-171-29/+0
| | | | https://gitlab.com/gitlab-org/gitlab-ce/issues/23036
* Migrate features/project/project.feature to RSpec and reorganize several ↵Rémy Coutable2018-04-091-84/+0
| | | | | | Project feature specs Signed-off-by: Rémy Coutable <remy@rymai.me>
* Replace the `project/issues/issues.feature` spinach test with an rspec analogblackst0ne2018-04-031-4/+0
|
* Use Project#full_name instead of name_with_namespaceDmitriy Zaporozhets2018-03-071-3/+3
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Replace '.team << [user, role]' with 'add_role(user)' in specs36782-replace-team-user-role-with-add_role-user-in-specsblackst0ne2017-12-221-11/+10
|
* Replace the 'features/explore/projects.feature' spinach test with an rspec ↵replace_explore_projects.featureVitaliy @blackst0ne Klachkov2017-10-111-18/+0
| | | | analog
* Resolve "Make project and features visibility settings less confusing"Mike Greiling2017-09-071-1/+1
|
* Migrate events into a new formatYorick Peterse2017-08-101-22/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 branch '34060-simplified-general-project-settings' into 'master'Mike Greiling2017-08-041-1/+1
|\ | | | | | | | | | | | | 34060 Simply general project settings to use expanded panels Closes #34060 See merge request !12620
| * fixed up specsPhil Hughes2017-07-281-1/+1
| |
* | Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-021-3/+3
| |
* | Use `:empty_project` where possible in features/stepsRobert Speicher2017-08-021-1/+1
|/
* Replaces dashboard/dashboard.feature spinach with rspecAlexander Randa2017-07-171-5/+0
|
* Create and use project path helpers that only need a project, no namespaceDouwe Maan2017-07-051-3/+3
|
* Use same last commit widget on project homepage and tree viewdm-consistent-commit-widgetDouwe Maan2017-05-171-2/+2
|
* Put back usernames in activity and profile feedAnnabel Dunstone Gray2017-04-071-1/+1
|
* Update project build status cache when transitioningBob Van Landuyt2017-04-071-1/+2
|
* Merge branch '29128-profile-page-icons' into 'master' Filipa Lacerda2017-04-061-1/+1
|\ | | | | | | | | | | | | Resolve "Add system note icons to profile page" Closes #29128 See merge request !10387
| * Update commit icon; fix specs29128-profile-page-iconsAnnabel Dunstone Gray2017-04-031-1/+1
| |
* | MR empty stateLuke "Jared" Bennett2017-04-051-0/+4
|/
* Improve explore projects spinach testDmitriy Zaporozhets2017-03-041-2/+6
| | | | | | | | Project name "Internal" is too generic and can lead to false positive/negative when there is a visibility filter on the page. So we ensure we check for project inside list holder css class. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix adding pages domain to projects in groupsKamil Trzcinski2017-01-311-0/+6
|
* Merge branch ↵Fatih Acet2017-01-191-1/+1
|\ | | | | | | | | | | | | | | | | | | '24032-changed-visibility-level-to-public-but-project-is-not-public' into 'master' Update project visibility level ui to use dropdowns Closes #24296, #24123, and #24032 See merge request !7645
| * Fixed tests24032-changed-visibility-level-to-public-but-project-is-not-publicLuke "Jared" Bennett2016-12-101-1/+1
| | | | | | | | | | | | | | | | Grab permissions description from backend Review changes Added unit tests
* | Add the `:repository` trait to `:project` factories in Cucumber stepsRobert Speicher2017-01-171-8/+8
|/
* Update effected testszj-guest-reads-public-buildsZ.J. van de Weg2016-12-041-1/+1
|
* Fix trending projects Spinach failurefix-trending-projects-spinach-failureStan Hu2016-10-141-0/+4
| | | | | | | The trending projects list is now pre-calculated. To make this work with the Spinach test, we have to manually refresh the list. Partial fix to #23378
* Project tools visibility levelFelipe Artur2016-09-011-2/+4
|
* Updated testsPhil Hughes2016-07-051-0/+5
|
* Rename all `[ci_]commit` to `[ci_]pipeline` in specs and featuresKamil Trzcinski2016-06-031-1/+1
|
* Fixed project settings testsproject-settingsPhil Hughes2016-05-201-1/+1
|
* Fix rubocopKamil Trzcinski2016-04-121-1/+1
|
* Fix rest of rspec and spinach testsKamil Trzcinski2016-04-121-1/+1
|
* Fix specsKamil Trzcinski2016-04-111-1/+1
|
* Add behaviour tests for build permissionsKamil Trzcinski2016-02-041-0/+4
|
* Rename allow_guest_to_access_builds to public_buildsKamil Trzcinski2016-02-041-0/+8
|
* Add feature tests for permissions for build artifacts read abilityfeature/allow-artifacts-for-reportersGrzegorz Bizon2016-01-151-1/+17
|
* Fix specs and rubocop warningsfix/private-referencesRémy Coutable2016-01-141-1/+1
|
* Improve & adds specs for Issue/MR referencesRémy Coutable2016-01-131-19/+29
| | | | | - Improve specs for private Issue/MR referenced in public Issue - Add specs for private Issue/MR referenced in public MR
* Show referenced MRs & Issues only when the current viewer can access themRémy Coutable2016-01-131-0/+7
|
* Migrate CI::Project to ProjectKamil Trzcinski2015-12-111-1/+1
|
* Add tests for last commit info on project home pageDmitriy Zaporozhets2015-10-161-0/+7
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Prevent creating 2 Ci::Project entities when enable CIDmitriy Zaporozhets2015-10-021-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix testsKamil Trzcinski2015-09-291-1/+1
|
* Show CI status on Your projects page and Starred projects pageci-status-projects-pageDmitriy Zaporozhets2015-09-241-0/+10
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Create a "destroyed Milestone" event and keep Milestone events around in the DBStan Hu2015-09-151-0/+5
| | | | | | | | | | | for posterity. Also fix issue where destroying a Milestone would cause odd, transient messages like "created milestone" or "imported milestone". Add "in" preposition when creating and destroying milestones Closes #2382
* Spinach testsArtem Sidorenko2015-08-191-0/+23
|