summaryrefslogtreecommitdiff
path: root/app/models/wiki_page.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix grouping wiki pages by directoryIgor2019-04-121-1/+3
| | | | | | | | If a page has the same name as a directory the WikiPage#group_by_directory method can have a wrong behaviour This commit fixes it
* Allow to sort wiki pages by date and titleIgor2019-04-041-10/+9
| | | | | - Add controls for sorting by title and date - Execute Gitaly call which now accepts sorting params for wikis
* Adds the Rubocop ReturnNil copAndrew Newdigate2019-03-061-1/+1
| | | | | This style change enforces `return if ...` instead of `return nil if ...` to save maintainers a few minor review points
* Remove downcase of slug and present home as "Home"Stan Hu2018-11-281-0/+6
|
* Remove created_at from WikiPageFrancisco Javier López2018-11-091-6/+0
|
* Fix bug with wiki page create messageFrancisco Javier López2018-11-071-1/+1
|
* Harden the wiki against missing last_versionsNick Thomas2018-10-171-1/+3
| | | | | | Currently, we assume a "last_version" always exists for a wiki page. In production, this is not always true. So, guard uses of it with a null check.
* Remove Gitlab::Git::Repository#rugged and Gollum codeAlejandro Rodríguez2018-10-021-5/+2
| | | | | | | | Cleanup code, and refactor tests that still use Rugged. After this, there should be no Rugged code that access the instance's repositories on non-test environments. There is still some rugged code for other tasks like the repository import task, but since it doesn't access any repository storage path it can stay.
* Correct Gitlab Capitalization in code filesMarcel Amirault2018-09-211-2/+2
|
* Enable frozen string in app/models/*.rbrepo-forks/gitlab-ce-frozen-string-enable-app-modelsgfyoung2018-07-261-0/+2
| | | | Partially addresses #47424.
* Merge branch 'satishperala/gitlab-ce-20720_webhooks_full_image_url' into ↵Douwe Maan2018-07-171-1/+1
|\ | | | | | | | | | | | | | | | | 'master' Include full image URL in webhooks for uploaded images Closes #20720 See merge request gitlab-org/gitlab-ce!18109
| * Add base class for hook builders, and use it for notes and wikisSean McGivern2018-06-201-3/+1
| |
| * Passing absolute image urls in the markdown content in the webhooksSatish Perala2018-06-201-1/+3
| |
* | Use stable gitlab-styles and eliminate offensesLin Jen-Shin2018-07-091-2/+3
| |
* | Updates from `rubocop -a`Lin Jen-Shin2018-07-091-2/+2
|/
* Fix Custom hooks are not triggered by UI wiki editFrancisco Javier López2018-04-181-9/+9
|
* Allow moving wiki pages from the UIFrancisco Javier López2018-02-051-12/+54
|
* Migrate fetching wiki page formatted content to Gitalyfeature/migrate-wiki-page-formatted-data-to-gitalyAhmad Sherif2018-01-301-1/+4
| | | | Closes gitaly#958
* Resolve "Performance issues when loading large number of wiki pages"Francisco Javier López2017-11-171-7/+12
|
* Hide Gollum inside Gitlab::Git::WikiJacob Vosmaer (GitLab)2017-10-031-5/+5
|
* Unescape HTML characters in Wiki titleJacopo2017-08-301-1/+1
| | | | The special characters of a wiki title are now escaped correctly.
* Allow wiki pages to be renamed in the UIwendy04022017-08-031-35/+43
|
* Encapsulate the commit.sha logicHiroyuki Sato2017-07-271-1/+5
|
* Refactor: use keyword arguments for optional parametersHiroyuki Sato2017-07-231-1/+1
|
* Merge branch 'master' into 1827-prevent-concurrent-editing-wikiHiroyuki Sato2017-07-231-8/+16
|\ | | | | | | | | | | | | Conflicts: app/controllers/projects/wikis_controller.rb app/views/projects/wikis/edit.html.haml spec/features/projects/wiki/user_updates_wiki_page_spec.rb
| * Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-5/+5
| |
| * Fix Project Wiki updateDongqing Hu2017-03-201-3/+5
| |
| * [#28991] Wiki page edit button only appears on the current commit pageTM Lee2017-03-161-0/+6
| | | | | | | | | | | | | | - Added method to check if the current Page version is the current latest version - Conditionally checks for current version when showing Edit button - Added feature specs for viewing project wiki page and expect edit button - Added Changelog
* | Prevent concurrent editing wikiHiroyuki Sato2017-03-081-5/+12
|/
* Make WikiPage comparable according to StaticModel interfaceMark Fletcher2017-02-141-0/+4
| | | | * Add WikiPage#id method returning associated SHA for wiki page commit
* Merge branch '23535-folders-in-wiki-repository' into 'master' Douwe Maan2017-02-131-1/+38
|\ | | | | | | | | | | | | Show directory hierarchy when listing wiki pages Closes #23535 See merge request !8133
| * Add WikiPage.unhyphenizeAlex Braha Stoll2017-01-301-1/+5
| |
| * Improve WikiPage.group_by_directoryAlex Braha Stoll2016-12-311-1/+1
| |
| * Change WikiPage#directoryAlex Braha Stoll2016-12-311-5/+4
| |
| * Remove WikiPage#full_pathAlex Braha Stoll2016-12-311-5/+0
| |
| * Add WikiPage#to_partial_pathAlex Braha Stoll2016-12-311-0/+6
| |
| * Change WikiPage.group_by_directory to use WikiDirectoryAlex Braha Stoll2016-12-311-4/+14
| |
| * Simplify WikiPage.group_by_directory by using Enumerable#group_byAlex Braha Stoll2016-12-311-9/+2
| |
| * Remove WikiPage.sort_by_directoryAlex Braha Stoll2016-12-311-22/+2
| |
| * Change WikiPage.group_by_directory to order by directory and file ↵Alex Braha Stoll2016-12-311-1/+28
| | | | | | | | alphabetical order
| * Change WikiPage#directory to always start a directory hierarchy with '/'Alex Braha Stoll2016-12-311-2/+2
| |
| * Change WikiPage.group_by_directory to use WikiPage#directoryAlex Braha Stoll2016-12-311-4/+2
| |
| * Add component to show the full path of a wiki page when viewing its contentAlex Braha Stoll2016-12-311-0/+11
| |
| * Remove WikiPage.add_to_directoryAlex Braha Stoll2016-12-311-8/+0
| |
| * Refactor WikiPage.group_by_directoryAlex Braha Stoll2016-12-311-9/+6
| |
| * Show directory hierarchy when listing wiki pagesAlex Braha Stoll2016-12-311-0/+25
| |
* | Update Rubocop to ruby 2.3zj-drop-ruby-21-testsZ.J. van de Weg2017-02-071-6/+2
|/
* `WikiPage` should have a slug even when not persisted.fix-wiki-error-500Timothy Andrew2016-07-251-1/+5
| | | | | | | | | | | | | 1. So we can build the markdown preview URL for it. 2. We can't skip the slug in this case, because the slug is used to construct relative markdown URLs. 3. Add rspec feature tests to cover creating wiki pages with spaces/hyphens in the name. 4. Add rspec feature tests for markdown preview URL rewriting, which was only covered by unit tests up to this point.
* add slack notifications for wiki pagesSebastian Klier2016-04-201-0/+4
| | | | update changelog
* Support Wiki with UTF-8 page nameHiroyuki Sato2016-03-161-1/+1
|