summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | | | | Support only valid UTF-8 paths in build artifacts browserGrzegorz Bizon2016-01-142-5/+13
| | | | | | | | | | |
| | * | | | | | | | | Improve invalid build artifacts metadata path matcherGrzegorz Bizon2016-01-141-5/+2
| | | | | | | | | | |
| | * | | | | | | | | Render only valid paths in artifacts metadataGrzegorz Bizon2016-01-142-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this version we will support only relative paths in artifacts metadata. Support for absolute paths will be introduced later.
| | * | | | | | | | | Simplify implementation of build artifacts browser (refactoring)Grzegorz Bizon2016-01-143-174/+153
| | | | | | | | | | |
| | * | | | | | | | | Change format of artifacts metadata from text to binary 0.0.1Grzegorz Bizon2016-01-141-10/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the format of metadata to handle paths, that may contain whitespace characters, new line characters and non-UTF-8 characters. Now those paths along with metadata in JSON format are stored as length-prefixed strings (uint32 prefix). Metadata file has a custom format: 1. First string field is metadata version field (string) 2. Second string field is metadata errors field (JSON strong) 3. All subsequent fields is pair of path (string) and path metadata in JSON format. Path's metadata contains all fields that where possible to extract from ZIP archive like date of modification, CRC, compressed size, uncompressed size and comment.
| | * | | | | | | | | Show file size in artifacts browser using metadataGrzegorz Bizon2016-01-142-9/+8
| | | | | | | | | | |
| | * | | | | | | | | Add method that checks if path exists in `StringPath`Grzegorz Bizon2016-01-141-0/+4
| | | | | | | | | | |
| | * | | | | | | | | Render 404 when artifacts path is invalidGrzegorz Bizon2016-01-141-1/+1
| | | | | | | | | | |
| | * | | | | | | | | Do not depend on universe when checking parent in `StringPath`Grzegorz Bizon2016-01-141-3/+12
| | | | | | | | | | |
| | * | | | | | | | | Extract artifacts metadata implementation to separate classGrzegorz Bizon2016-01-142-2/+59
| | | | | | | | | | |
| | * | | | | | | | | Improve path sanitization in `StringPath`Grzegorz Bizon2016-01-141-9/+8
| | | | | | | | | | |
| | * | | | | | | | | Add path sanitization to `StringPath`Grzegorz Bizon2016-01-141-12/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ci skip]
| | * | | | | | | | | Parse artifacts metadata stored in JSON formatGrzegorz Bizon2016-01-141-3/+9
| | | | | | | | | | |
| | * | | | | | | | | Use metadata stored in artifacats metadata fileGrzegorz Bizon2016-01-141-1/+1
| | | | | | | | | | |
| | * | | | | | | | | Use short method call in StringPath instead blockGrzegorz Bizon2016-01-141-2/+2
| | | | | | | | | | |
| | * | | | | | | | | Improve performance of `StringPath`Grzegorz Bizon2016-01-141-4/+11
| | | | | | | | | | |
| | * | | | | | | | | Add support for parent directories in `StringPath`Grzegorz Bizon2016-01-141-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This support is not completed though, as parent directory that is first in collection returned by `directories!` is not iterable yet.
| | * | | | | | | | | Add support for root path for `StringPath`Grzegorz Bizon2016-01-141-8/+18
| | | | | | | | | | |
| | * | | | | | | | | Add implementation of remaining methods in `StringPath`Grzegorz Bizon2016-01-141-2/+14
| | | | | | | | | | |
| | * | | | | | | | | Add `parent` iteration implementation to `StringPath`Grzegorz Bizon2016-01-141-2/+9
| | | | | | | | | | |
| | * | | | | | | | | Use `Gitlab::StringPath` in CI build artifacts controllerGrzegorz Bizon2016-01-141-0/+12
| | | | | | | | | | |
| | * | | | | | | | | Add new methods to StringPathGrzegorz Bizon2016-01-141-2/+17
| | | | | | | | | | |
| | * | | | | | | | | Add implementation of StringPath classGrzegorz Bizon2016-01-141-0/+35
| | | |_|_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `StringPath` class is something similar to Ruby's `Pathname` class, but does not involve any IO operations. `StringPath` objects require passing string representation of path, and array of paths that represents universe to constructor to be intantiated.
* | | | | | | | | | Merge branch 'master' into ci/api-triggersTomasz Maczukin2016-01-143-0/+100
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: Fix version Improve the consistency of commit titles, branch names, tag names, issue/MR titles, on their respective project pages Update CHANGELOG [ci skip] Add some cosmetic changes to variables API documentation [ci skip] Modify builds API documentation style [ci skip] Modify :ci_variable factory Add 'Build' prefix to Variables entry name in API docs index Fix some typos Add some fixes after review Remove blank line Update ./doc/api Change :variable_id to :key as resource ID in API Fix a typo in method description Add create feature to variables API Add missing 'not_found' checks in variables API Add delete feature to variables API Add update feature for variables API Add features for list and show details of variables in API Conflicts: doc/api/README.md lib/api/entities.rb
| * | | | | | | | | Merge branch 'master' into ci/api-variablesDouwe Maan2016-01-143-10/+31
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / /
| * | | | | | | | | Merge branch '8-4-stable' into ci/api-variablesTomasz Maczukin2016-01-1345-246/+598
| |\ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 8-4-stable: (285 commits) Add Changelog entry for build traces data integrity fix Update doc_styleguide.md [ci skip] Added hint that you can search users by name, username, or email. Add changelog Version 8.4.0.rc1 Randomize metrics sample intervals Make the metrics sampler interval configurable Don't automatically require awesome_print Disable colorization if STDOUT is not a tty Block the reported user before destroying the record changes `$quote-gray` to `$secondary-text` makes message plural for multiple MRs and removes from loop. Duh. Prepare Installation and Update docs for 8.4 RC1 Mention channel/key bug in irkerd docs Revert "Remove the `:coffee` and `:coffeescript` Haml filters" gets merge request discussion working again adds back in discussion.haml.html for issues commenting and closing/reopening properly. removing last chunk of MR ajax changes, rest will be in another MR reverting more MR ajax files, will appear in different commit reverting MR ajax changes, which will be in a different MR ...
| * | | | | | | | | Fix some typosTomasz Maczukin2016-01-131-2/+2
| | | | | | | | | |
| * | | | | | | | | Add some fixes after reviewTomasz Maczukin2016-01-131-13/+16
| | | | | | | | | |
| * | | | | | | | | Remove blank lineTomasz Maczukin2016-01-121-1/+0
| | | | | | | | | |
| * | | | | | | | | Update ./doc/apiTomasz Maczukin2016-01-071-1/+1
| | | | | | | | | |
| * | | | | | | | | 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-313-0/+49
| | | | | | | | | |
* | | | | | | | | | Merge branch 'master' into ci/api-triggersTomasz Maczukin2016-01-143-10/+31
|\ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (32 commits) Fix specs and rubocop warnings fixed LDAP activation on login to use new ldap_blocked state Fix Admin/Users view to position buttons without spacing magic Update to Go 1.5.3 Fix the undefinded variable error in Project's safe_import_url method Fix misaligned edit button in milestone collection partial Update button styles for Milestones#show Ensure the API doesn't return notes that the current user shouldn't see Add spec for Note#cross_reference_not_visible_for? Remove (invalid) timestamp formatting Move `BroadcastMessage#status` to a helper since it's presentational Update CHANGELOG Broadcast Messages can now be edited Update Broadcast Message features Update BroadcastMessage model Update broadcast_message helper Simplify BroadcastMessage factory Simplify broadcast message JS Remove alert_type attribute from BroadcastMessage Move broadcast message form to a partial ...
| * | | | | | | | | Merge branch 'feature/ldap-sync-edgecases' into 'master' Douwe Maan2016-01-142-8/+12
| |\ \ \ \ \ \ \ \ \ | | |_|_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LDAP Sync blocked user edgecases Allow GitLab admins to block otherwise valid GitLab LDAP users (https://gitlab.com/gitlab-org/gitlab-ce/issues/3462) Based on the discussion on the original issue, we are going to differentiate "normal" block operations to the ldap automatic ones in order to make some decisions when its one or the other. Expected behavior: - [x] "ldap_blocked" users respond to both `blocked?` and `ldap_blocked?` - [x] "ldap_blocked" users can't be unblocked by the Admin UI - [x] "ldap_blocked" users can't be unblocked by the API - [x] Block operations that are originated from LDAP synchronization will flag user as "ldap_blocked" - [x] Only "ldap_blocked" users will be automatically unblocked by LDAP synchronization - [x] When LDAP identity is removed, we should convert `ldap_blocked` into `blocked` Mockup for the Admin UI with both "ldap_blocked" and normal "blocked" users: ![image](/uploads/4f56fc17b73cb2c9e2a154a22e7ad291/image.png) There will be another MR for the EE version. See merge request !2242
| | * | | | | | | | fixed LDAP activation on login to use new ldap_blocked statefeature/ldap-sync-edgecasesGabriel Mazetto2016-01-141-3/+1
| | | | | | | | | |
| | * | | | | | | | Codestyle changesGabriel Mazetto2016-01-121-3/+3
| | | | | | | | | |
| | * | | | | | | | Code style fixes and some code simplifiedGabriel Mazetto2016-01-081-1/+3
| | | | | | | | | |
| | * | | | | | | | LDAP synchronization block/unblock new statesGabriel Mazetto2016-01-081-3/+3
| | | | | | | | | |
| | * | | | | | | | Prevent ldap_blocked users from being blocked/unblocked by the APIGabriel Mazetto2016-01-081-4/+8
| | | | | | | | | |
| * | | | | | | | | Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into ↵Rémy Coutable2016-01-139-40/+58
| |\ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / | | |/| | | | | | | | | | | | | | | | | fix/private-references
| * | | | | | | | | Ensure the API doesn't return notes that the current user shouldn't seeRémy Coutable2016-01-131-2/+19
| | | | | | | | | |
* | | | | | | | | | Merge branch '8-4-stable' into ci/api-triggersTomasz Maczukin2016-01-1445-246/+598
|\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 8-4-stable: (280 commits) Add Changelog entry for build traces data integrity fix Update doc_styleguide.md [ci skip] Added hint that you can search users by name, username, or email. Add changelog Version 8.4.0.rc1 Randomize metrics sample intervals Make the metrics sampler interval configurable Don't automatically require awesome_print Disable colorization if STDOUT is not a tty Block the reported user before destroying the record changes `$quote-gray` to `$secondary-text` makes message plural for multiple MRs and removes from loop. Duh. Prepare Installation and Update docs for 8.4 RC1 Mention channel/key bug in irkerd docs Revert "Remove the `:coffee` and `:coffeescript` Haml filters" gets merge request discussion working again adds back in discussion.haml.html for issues commenting and closing/reopening properly. removing last chunk of MR ajax changes, rest will be in another MR reverting more MR ajax files, will appear in different commit reverting MR ajax changes, which will be in a different MR ...
| * | | | | | | | | Merge branch 'configure-randomize-metrics-sample-interval' into 'master' Yorick Peterse2016-01-132-5/+28
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | See merge request !2406
| | * | | | | | | | | Randomize metrics sample intervalsconfigure-randomize-metrics-sample-intervalYorick Peterse2016-01-131-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sampling data at a fixed interval means we can potentially miss data from events occurring between sampling intervals. For example, say we sample data every 15 seconds but Unicorn workers get killed after 10 seconds. In this particular case it's possible to miss interesting data as the sampler will never get to actually submitting data. To work around this (at least for the most part) the sampling interval is randomized as following: 1. Take the user specified sampling interval (15 seconds by default) 2. Divide it by 2 (referred to as "half" below) 3. Generate a range (using a step of 0.1) from -"half" to "half" 4. Every time the sampler goes to sleep we'll grab the user provided interval and add a randomly chosen "adjustment" to it while making sure we don't pick the same value twice in a row. For a specified timeout of 15 this means the actual intervals can be anywhere between 7.5 and 22.5, but never can the same interval be used twice in a row. The rationale behind this change is that on dev.gitlab.org I'm sometimes seeing certain Gitlab::Git/Rugged objects being retained, but only for a few minutes every 24 hours. Knowing the code of Gitlab and how much memory it uses/leaks I suspect we're missing data due to workers getting terminated before the sampler can write its data to InfluxDB.
| | * | | | | | | | | Make the metrics sampler interval configurableYorick Peterse2016-01-132-2/+3
| | | | | | | | | | |