Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-05-10Merge branch 'snippets-finder-visibility' into 'security'Douwe Maan
Refactor snippets finder & dont return internal snippets for external users See merge request !2094
2017-04-30Use blob viewers for snippetsDouwe Maan
2017-03-21Spam check only when spammable attributes have changedOswaldo Ferreira
2017-01-27Use `:empty_project` where possible in model specsRobert Speicher
2016-12-07Merge branch '25209-improve-length-validators' into 'master' Rémy Coutable
Use :maximum instead of :within for length validators with a 0..N range Closes #25209 See merge request !7894
2016-12-06Use :maximum instead of :within for length validators with a 0..N rangeRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-12-03Add shorthand support to gitlab markdown referencesOswaldo Ferreira
2016-10-07Add markdown cache columns to the database, but don't use them yetNick Thomas
This commit adds a number of _html columns and, with the exception of Note, starts updating them whenever the content of their partner fields changes. Note has a collision with the note_html attr_accessor; that will be fixed later A background worker for clearing these cache columns is also introduced - use `rake cache:clear` to set it off. You can clear the database or Redis caches separately by running `rake cache:clear:db` or `rake cache:clear:redis`, respectively.
2016-09-19Snippets get award emoji! :thumbsup:Z.J. van de Weg
2016-06-23Fix visibility of private project snippets for members when searchingDouglas Barbosa Alexandre
2016-06-22Fix internal snippets can be searched by anyoneDouglas Barbosa Alexandre
2016-06-01Refactor ParticipableYorick Peterse
There are several changes to this module: 1. The use of an explicit stack in Participable#participants 2. Proc behaviour has been changed 3. Batch permissions checking == Explicit Stack Participable#participants no longer uses recursion to process "self" and all child objects, instead it uses an Array and processes objects in breadth-first order. This allows us to for example create a single Gitlab::ReferenceExtractor instance and pass this to any Procs. Re-using a ReferenceExtractor removes the need for running potentially many SQL queries every time a Proc is called on a new object. == Proc Behaviour Changed Previously a Proc in Participable was expected to return an Array of User instances. This has been changed and instead it's now expected that a Proc modifies the Gitlab::ReferenceExtractor passed to it. The return value of the Proc is ignored. == Permissions Checking The method Participable#participants uses Ability.users_that_can_read_project to check if the returned users have access to the project of "self" _without_ running multiple SQL queries for every user.
2016-05-09Remove the annotate gem and delete old annotationsJeroen van Baarsen
In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382
2016-03-11Use ILIKE/LIKE for searching snippetsYorick Peterse
Previously this used a regular LIKE which is case-sensitive on PostgreSQL. This ensures that for both PostgreSQL and MySQL the searching is case-insensitive similar to searching for projects.
2016-03-06Remove `Snippet#expires_at`Robert Speicher
This was removed from the interface in https://github.com/gitlabhq/gitlabhq/pull/6027 but its implementation lingered around for two years.
2015-12-09Tag model specsDouwe Maan
2015-06-20Make snippet filename optional.Nicolas
Fixes #2384.
2015-06-10ensure_length_of -> validate_length_ofRobert Speicher
2015-05-26Minor model spec cleanupsRobert Speicher
Snippet model was missing project association
2015-05-26Add `to_reference` for models that support referencesRobert Speicher
Now there is a single source of information for which attribute a model uses to be referenced, and its special character.
2015-02-12Updated rspec to rspec 3.x syntaxJeroen van Baarsen
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2014-10-09annotateValery Sizov
2014-06-27Remove mass assgnment specsDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-04-09Re-annotate modelsDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-08-21ReannotateDmitriy Zaporozhets
2013-06-19AnnotatedDmitriy Zaporozhets
2013-03-24Project snippet moved to separate modelAndrew8xx8
2013-01-22fix testsValeriy Sizov
2012-11-19Annotated. schema updatedDmitriy Zaporozhets
2012-10-09AnnotatedDmitriy Zaporozhets
2012-10-09tests fixAndrey Kumanyaev
2012-09-26set activerecord whitelist_attributes to trueNihad Abbasov
2012-08-29Add more coverage for model validations and associationsRobert Speicher
2012-08-29Remove annotations from specsRobert Speicher
2012-06-26Reannotatedrandx
2011-10-27test expired snippetsNihad Abbasov
2011-10-17annotatedgitlabhq
2011-10-17snippets are readygitlabhq