Commit Graph

31 Commits

Author SHA1 Message Date
Stan Hu 9bbb063f5a Remove Webhooks from import/export help
We dropped Webhooks from import/export in
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24121,
but the online help still shows it's there.
2019-01-10 17:06:55 -08:00
Stan Hu 2341692c49 Drop Webhooks from project import/export config
Webhook URLs were recently encrypted in the database via
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21645, and as a
result they are no longer exported. When an exported project with
Webhooks is imported, the project import service will fail with
`URI::InvalidURIError: bad URI(is not URI?)` due to a blank URL.
We avoid this by disabling the export/import of Webhooks in
the first place.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/53513
2019-01-03 06:22:14 -08:00
Alexander Tanayno 03ca338987 add information about how merge requests related to forks are processed
the added note describes code from https://gitlab.com/gitlab-org/gitlab-ee/blob/master/lib/gitlab/import_export/merge_request_parser.rb#L15
2018-12-12 10:46:54 +00:00
Grzegorz Bizon 90a99ff3aa Add pipeline stages position clean-up migration 2018-06-29 13:57:52 +00:00
Mark Chao 1c7ab76bfc doc 2018-06-06 21:01:46 +09:00
Marcia Ramos 🚫 (OOO - back on May 21) 1983e15970 Docs: fix duplicate titles 2018-05-09 16:11:28 +00:00
Jan Provaznik 5bb421ecbb Cleanup after adding MR diff's commit_count (try 2)
* processes any pending records which are not migrated yet
* bumps import_export version because of new commits_count attribute
* removes commits_count fallback method
2018-04-25 10:53:37 +02:00
Bob Van Landuyt 84ee2ddbcd Export LFS Objects when exporting a project
The LFS files will be included in the `lfs-objects` directory in the archive.
2018-04-05 10:21:51 +02:00
Jan Provaznik 7db225e480 Revert "Cleanup after adding MR diff's commit_count"
This reverts commit 0b7d108514.
2018-03-08 12:43:14 +01:00
Jan Provaznik 0b7d108514 Cleanup after adding MR diff's commit_count
* processes any pending records which are not migrated yet
* bumps import_export version because of new commits_count attribute
* removes commits_count fallback method
2018-03-05 15:37:01 +01:00
James Lopez 0831949084
update missing doc links 2018-02-13 15:35:08 +01:00
Grzegorz Bizon bf8c5643a9 Bump import/export version to 2.2.0
We need to bump import/export version because we introduced a new
object's hierarchy that is not backwards compatible.
2018-01-05 15:18:17 +01:00
Sean McGivern 4ebbfe5d3e Remove serialised diff and commit columns
The st_commits and st_diffs columns on merge_request_diffs historically held the
YAML-serialised data for a merge request diff, in a variety of formats.

Since 9.5, these have been migrated in the background to two new tables:
merge_request_diff_commits and merge_request_diff_files. That has the advantage
that we can actually query the data (for instance, to find out how many commits
we've stored), and that it can't be in a variety of formats, but must match the
new schema.

This is the final step of that journey, where we drop those columns and remove
all references to them. This is a breaking change to the importer, because we
can no longer import diffs created in the old format, and we cannot guarantee
the export will be in the new format unless it was generated after this commit.
2017-11-28 16:13:40 +00:00
Yorick Peterse 235b105c91
Finish migration to the new events setup
This finishes the procedure for migrating events from the old format
into the new format. Code no longer uses the old setup and the database
tables used during the migration process are swapped, with the old table
being dropped.

While the database migration can be reversed this will 1) take a lot of
time as data has to be coped around 2) won't restore data in the
"events.data" column as we have no way of restoring this.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37241
2017-09-06 16:40:31 +02:00
Robin Bobbitt 649d042dbc Add option to disable project export on instance 2017-08-11 12:22:37 -04:00
Sean McGivern 9a73b634ab Add table for files in merge request diffs
This adds an ID-less table containing one row per file, per merge request
diff. It has a column for each attribute on Gitlab::Git::Diff that is serialised
currently, with the advantage that we can easily query the attributes of this
new table.

It does not migrate existing data, so we have fallback code when the legacy
st_diffs column is present instead. For a merge request diff to be valid, it
should have at most one of:

* Rows in this new table, with the correct merge_request_diff_id.
* A non-NULL st_diffs column.

It may have neither, if the diff is empty.
2017-06-16 18:30:01 +01:00
Zeger-Jan van de Weg 8df3997a92 Add Pipeline Schedules that supersedes experimental Trigger Schedule 2017-05-07 22:35:56 +00:00
Kamil Trzciński 12dd5ac221 All CI offline migrations 2017-03-17 23:06:11 +00:00
James Lopez 8409340b3b Add missing group members to export for I/E 2017-02-07 11:06:05 +01:00
James Lopez e589c7e848 Ignore encrypted attributes in Import/Export
* Regenerates tokens for all models that have them
* Remove variables, since they are basically just storing encrypted data
* Bumped version up to 0.1.6
* Updated related docs
2017-01-30 12:34:32 +01:00
James Lopez 77b7bfd463 Fix import/export labels to cope with project and group labels. Added relevant specs. 2016-10-19 14:58:25 -02:00
James Lopez a09e1d3dda Enable import/export back for non-admins 2016-10-03 10:53:18 +02:00
James Lopez 3c7feaf3b1 Fixed label color issue and added Import/Export versioning table 2016-09-19 09:18:37 +02:00
James Lopez 30f9596c61 Fix permissions check in controller, added relevant spec and updated docs 2016-08-11 16:59:37 +02:00
Achilleas Pipinellis 689de9c6fb Simplify feature introduction note
[ci skip]
2016-08-08 11:44:55 +03:00
Achilleas Pipinellis 51b51de77d Give images proper names 2016-06-22 11:41:50 +02:00
Achilleas Pipinellis a41b468816 Add note about the shared directory 2016-06-22 11:31:07 +02:00
Achilleas Pipinellis 10016715c1 Add colons in item lists 2016-06-22 11:15:28 +02:00
Achilleas Pipinellis e023e66c9f Add note about enabling import/export in existing installations 2016-06-22 11:05:34 +02:00
Achilleas Pipinellis b2732f3af1 Refactor project import/export documentation 2016-06-21 20:07:52 +02:00
Achilleas Pipinellis 0c61fad74c Move to new location
Due to https://gitlab.com/gitlab-org/gitlab-ce/issues/3349
2016-06-21 19:28:08 +02:00