Commit graph

16 commits

Author SHA1 Message Date
Imre Farkas
b1e070bf49
Fix API::Namespaces to accept namepaces with dots
It also renames the API::PROJECT_ENDPOINT_REQUIREMENTS constant to
API::NAMESPACE_OR_PROJECT_REQUIREMENTS
2018-11-28 12:54:11 +01:00
gfyoung
3836d69119 Enable frozen string in lib/api and lib/backup
Partially addresses #47424.

Had to make changes to spec files because
stubbing methods on frozen objects is a mess
in RSpec and leads to failures:

https://github.com/rspec/rspec-mocks/issues/1190
2018-09-29 21:04:50 -07:00
Francisco Javier López
f20912df03 Extend API for importing a project export with overwrite support 2018-04-06 15:23:49 +00:00
Bob Van Landuyt
e40c0085ef Store override params as import data on projects
This means import data doesn't necessarily have to have an import_url
anymore.

The `ProjectImportData` could just contain the override data in it's
serialized data attribute.

The import data is automatically cleaned up after it is finished by
the state machine.
2018-04-04 19:49:48 +02:00
James Lopez
d8dfec0ffa
Fix project import API after import service refactor 2018-02-16 18:03:34 +01:00
James Lopez
890d7b540b
update docs 2018-02-16 14:37:26 +01:00
James Lopez
0abd85f919
refactor code based on feedback 2018-02-14 14:59:11 +01:00
James Lopez
e613d777b2
refactor code based on feedback 2018-02-14 14:46:40 +01:00
James Lopez
e881352002
refactor api class 2018-02-13 15:25:49 +01:00
James Lopez
17e5ef4b26
add docs and changelog 2018-02-13 15:25:49 +01:00
James Lopez
79879145e5
add more specs 2018-02-13 15:25:49 +01:00
James Lopez
583ed0eb94
add import status endpoint 2018-02-13 15:25:48 +01:00
James Lopez
7ec1a022b7
fix file upload 2018-02-13 15:25:48 +01:00
James Lopez
516d33f5ac
update import API and spec 2018-02-13 15:25:48 +01:00
James Lopez
d3b3f5d1b4
update import API and spec 2018-02-13 15:25:48 +01:00
James Lopez
82ff66ef31
add post import API endpoint 2018-02-13 15:25:47 +01:00