summaryrefslogtreecommitdiff
path: root/lib/api/variables.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-04-281-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-04-271-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-161-2/+3
|
* Bring scoped environment variables to coreHordur Freyr Yngvason2019-08-081-6/+2
| | | | As decided in https://gitlab.com/gitlab-org/gitlab-ce/issues/53593
* CE port of Move EE specific lines in API::VariablesImre Farkas2019-05-281-6/+4
|
* Make protected attribute Boolean typeapi_make_protected_boolean_typeThong Kuah2019-05-281-2/+2
| | | | | | As documented in https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/api/project_level_variables.md#create-variable and it's a boolean in `db/schema.rb`
* Masked should be Boolean typevariables-boolean-typeThong Kuah2019-05-271-2/+2
| | | | | | As documented in https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/api/project_level_variables.md#create-variable and it's a boolean in `db/schema.rb`
* API: Allow to get and set "masked" attribute for variablesMathieu Parent2019-05-221-0/+2
|
* Implement support for CI variables of type fileKrasimir Angelov2019-05-061-0/+2
| | | | | | | | | Add env_var and file as supported types for CI variables. Variables of type file expose to users existing gitlab-runner behaviour - save variable value into a temp file and set the path to this file in an ENV var named after the variable key. Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/46806.
* Backport parameters for API::ParametersYorick Peterse2019-03-261-0/+8
| | | | | This backports the EE specific parameters for API::Parameters, wrapping them in a conditional.
* Add method to API::Variables for filtering paramsYorick Peterse2019-03-041-0/+10
| | | | | This allows EE to customize the parameters used in two places, without having to modify the source code directly.
* Enable the Layout/ExtraSpacing cop56392-enable-the-layout-extraspacing-copRémy Coutable2019-01-241-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix API::Namespaces to accept namepaces with dotsif-52811-fix_namespaces_api_routingImre Farkas2018-11-281-1/+1
| | | | | It also renames the API::PROJECT_ENDPOINT_REQUIREMENTS constant to API::NAMESPACE_OR_PROJECT_REQUIREMENTS
* Enable frozen string in lib/api and lib/backupgfyoung2018-09-291-0/+2
| | | | | | | | | | 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
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+6
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Resolve "Make a Rubocop that forbids returning from a block"🙈 jacopo beschi 🙉2018-04-181-2/+2
|
* API: Use defined project requirementsrs-api-use-project-requirementsRobert Schilling2017-08-311-1/+1
|
* Update remaining endpointsRobert Schilling2017-08-281-0/+1
|
* Update grape gemdz-update-grapeDmitriy Zaporozhets2017-07-201-0/+1
| | | | | | | | New version of the gem returns 200 status code on delete with content instead of 204 so we explicitly set status code to keep existing behavior Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Backports for ee-2112Lin Jen-Shin2017-07-061-2/+6
| | | | https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2112
* Fix optional args for POST :id/variablesLin Jen-Shin2017-06-271-1/+1
| | | | | Always use declared_params(include_missing: false) so that we don't give nils for optional arguments
* API and doc for protected variablesLin Jen-Shin2017-05-251-1/+3
|
* Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced ↵Rémy Coutable2017-03-161-1/+1
| | | | | | API routes Signed-off-by: Rémy Coutable <remy@rymai.me>
* Backport API to V3Robert Schilling2017-02-281-2/+1
|
* Return 204 for delete endpointsRobert Schilling2017-02-281-2/+1
|
* Don't convert data which already is the target typeapi-no-convertRobert Schilling2016-11-241-1/+1
|
* Define common helper for describe pagination params in apiSemyon Pupkov2016-11-221-2/+3
|
* GrapeDSL for variableszj-grapedsl-variableZ.J. van de Weg2016-10-131-47/+42
|
* Make the CI permission model simplerKamil Trzcinski2016-02-021-1/+1
| | | | | | | | | | | | | This MR simplifies CI permission model: - read_build: allows to read a list of builds, artifacts and trace - update_build: allows to cancel and retry builds - create_build: allows to create builds from gitlab-ci.yml (not yet implemented) - admin_build: allows to manage triggers, runners and variables - read_commit_status: allows to read a list of commit statuses (including the overall of builds) - create_commit_status: allows to create a new commit status using API Remove all extra methods to manage permission. Made all controllers to use explicitly the new permissions.
* Fix some typosTomasz Maczukin2016-01-131-2/+2
|
* Add some fixes after reviewTomasz Maczukin2016-01-131-13/+16
|
* Change :variable_id to :key as resource ID in APITomasz Maczukin2016-01-071-25/+16
|
* Fix a typo in method descriptionTomasz Maczukin2015-12-311-1/+1
|
* Add create feature to variables APITomasz Maczukin2015-12-311-0/+20
|
* Add missing 'not_found' checks in variables APITomasz Maczukin2015-12-311-0/+7
|
* Add delete feature to variables APITomasz Maczukin2015-12-311-0/+12
|
* Add update feature for variables APITomasz Maczukin2015-12-311-1/+20
|
* Add features for list and show details of variables in APITomasz Maczukin2015-12-311-0/+43