Douglas Barbosa Alexandre
89e8b82b63
Make sure the .git is at the end on Gitlab::GithubImport::WikiFormatter
2016-01-14 12:09:31 -02:00
Douglas Barbosa Alexandre
ca87bb652a
Remove GollumTagsPipeline
2016-01-14 12:09:31 -02:00
Douglas Barbosa Alexandre
60f8434a9d
Refactoring Gitlab::GithubImport::Importer
2016-01-14 12:09:31 -02:00
Douglas Barbosa Alexandre
364e63fa2f
Remove unnecessary brackets on WIKI_SLUG_ID route constraints
2016-01-14 12:09:31 -02:00
Douglas Barbosa Alexandre
928c94807e
Move js function to removing accents to vendor/assets/javascripts
2016-01-14 12:09:31 -02:00
Douglas Barbosa Alexandre
7067c5fd6d
Update CHANGELOG
2016-01-14 12:09:31 -02:00
Douglas Barbosa Alexandre
4872b319c8
Use the WikiPipeline when rendering the wiki markdown content
2016-01-14 12:09:31 -02:00
Douglas Barbosa Alexandre
a6a5990ee5
Add Banzai::Filter::GollumTagsFilter for parsing Gollum's tags in HTML
2016-01-14 12:09:31 -02:00
Douglas Barbosa Alexandre
aac6598482
Relax constraints for wiki slug
...
Since GitHub doesn’t apply these constraints to theirs wiki slug
allowing characters like `,`, `:`, `*`, etc, we need to relax our
constraints or some wiki pages will not be available after they were
imported.
For an example the Devise project have a wiki page with the following
slug: “How To: Add sign_in, sign_out, and sign_up links to your layout
template”
2016-01-14 12:09:31 -02:00
Douglas Barbosa Alexandre
78f5eb94fb
Import GitHub wiki into GitLab
2016-01-14 12:09:31 -02:00
Dmitriy Zaporozhets
e47f0e563d
Merge branch 'closing-mr-bug-fix' into 'master'
...
fixes bug with commenting on merge requests
See merge request !2415
2016-01-14 13:14:50 +00:00
Dmitriy Zaporozhets
620d8b68a1
Merge branch 'remove-gray-bg'
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2016-01-14 14:09:49 +01:00
Grzegorz Bizon
f03da18e3a
Merge branch 'ci/view-build-artifacts' into 'master'
...
Add browser for build artifacts
Discussion in #3426 , closes #3426 .
See merge request !2123
2016-01-14 12:57:33 +00:00
Douwe Maan
f981da44ab
Merge branch 'ci/api-variables' into 'master'
...
Add variables API
References #4264
See merge request !2264
2016-01-14 12:05:53 +00:00
Grzegorz Bizon
be764a3a20
Minor improvements in build arfifacts browser
...
Added also a `Gitlab::Ci::Build::Artifacts::Metadata::ParserError`
exception class.
2016-01-14 12:48:17 +01:00
Grzegorz Bizon
76e578fdfa
Add Changelog entry for build artifacts browser
...
[ci skip]
2016-01-14 12:48:17 +01:00
Grzegorz Bizon
0d6e7b9d3d
Use Hash to store paths and entries metadata in artifacts browser
2016-01-14 12:48:17 +01:00
Grzegorz Bizon
ad2b0358e0
Improve readability of artifacts Metadata related code
2016-01-14 12:48:17 +01:00
Grzegorz Bizon
6b0a43aff3
Improve readability of artifacts browser Entry related code
2016-01-14 12:48:17 +01:00
Grzegorz Bizon
154b8ceba4
Refactor build artifacts upload API endpoint
2016-01-14 12:48:17 +01:00
Grzegorz Bizon
3f0c18f80e
Simplify encoding related implementation in artifacts metadata
2016-01-14 12:48:17 +01:00
Grzegorz Bizon
a9783c439b
Make encoding of paths returned by metadata consistent (UTF-8)
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
0b946029a1
Update build artifacts API
...
We do not want to allow runners to upload a metadata file. This needs to
be generated by Workhorse only.
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
6d7a77074f
Add specs for endpoint meant to be accelerated by workhorse
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
e8995f9fd5
Modify artifacts upload API endpoint, add artifacts metadata
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
cf00a808cc
Fix specs for artifacts metadata after changing fixture content
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
cde455c4e6
Add encoding feature tests for builds artifacts browser
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
487b0a026f
Improvements, readability for artifacts browser
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
2be76355ca
Support only valid UTF-8 paths in build artifacts browser
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
ffee05c242
Improve invalid build artifacts metadata path matcher
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
f80d7a868e
Update build model specs
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
94cf759001
Attach download action to artifacts file in ZIP archive
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
e9c2628220
Check if file exists in metadata in download action
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
09a4a5aff8
Render only valid paths in artifacts metadata
...
In this version we will support only relative paths in artifacts
metadata. Support for absolute paths will be introduced later.
2016-01-14 12:48:16 +01:00
Grzegorz Bizon
61fb47a432
Simplify implementation of build artifacts browser (refactoring)
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
387b27813d
Change format of artifacts metadata from text to binary 0.0.1
...
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.
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
09c82c6fdc
Add spinach feature specs for build artifacts browser
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
cfffc9eff2
Update build specs for artifacts browser support
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
e5d2a81b86
Add basic spinach tests for project builds
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
1b1793c253
Show file size in artifacts browser using metadata
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
cd3b8bbd2f
Add method that checks if path exists in StringPath
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
a5e1905d28
Render 404 when artifacts path is invalid
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
f948c00757
Do not depend on universe when checking parent in StringPath
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
a7f99b67a0
Extract artifacts metadata implementation to separate class
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
df41148662
Improve path sanitization in StringPath
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
a3191463b6
Add path sanitization to StringPath
...
[ci skip]
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
3de8a4620a
Parse artifacts metadata stored in JSON format
2016-01-14 12:48:15 +01:00
Grzegorz Bizon
447f56036e
Use metadata stored in artifacats metadata file
2016-01-14 12:48:14 +01:00
Grzegorz Bizon
e3ef0ac8f4
Update artifacts metadata fixture
2016-01-14 12:48:14 +01:00
Grzegorz Bizon
ad5302ba15
Seed db on development with artifacts metadata fixture
2016-01-14 12:48:14 +01:00