summaryrefslogtreecommitdiff
path: root/doc/development
Commit message (Collapse)AuthorAgeFilesLines
* [ci skip] UX Guide: add moving transition animation guidanceux-guide-scroll-animationAllison Whilden2016-12-163-1/+16
|
* [ci skip] UX Guide: add guidance on cursor usageux-guide-cursorsAllison Whilden2016-12-157-0/+16
|
* Create animation page and clean up indexux-guide-animationawhildy2016-12-057-22/+56
| | | | | | | | | | | | Add guidance on timings and easing [ci skip] Detail when not to use easing Add dropdown and hover examples Add quick update animation
* Document button secondary states. Update icons and color sectionChris Peressini2016-12-0535-35/+36
| | | | | | | | | | | | | | | | | | | | Describe hover, focus and active states for primary and secondary buttons. Organized the icons section in a table. Replaced images for icons so they are all the same size. Organized the color section in a table. Replaced the images with new ones so the table would have a more manageable size. Updated the values for some colors to show the $color-light shade. Remove commented sections Remove `db/schema.rb` Add db/schema.rb from origin/master Fix typos
* Merge branch 'fix/rename-mwbs-to-merge-when-pipeline-succeeds' into 'master' Kamil Trzciński2016-12-051-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename MWBS service to Merge When Pipeline Succeeds ## What does this MR do? This MR renames Merge When Build Succeeds feature to Merge When Pipeline Succeeds, because we recently changed the behavior, see https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6675. ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md) entry added - [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [x] All builds are passing ## What are the relevant issue numbers? Closes #23354 See merge request !7135
| * Merge branch 'master' into fix/rename-mwbs-to-merge-when-pipeline-succeedsGrzegorz Bizon2016-11-305-42/+270
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (110 commits) Rewrite an HTTP link to use HTTPS Edit /spec/features/profiles/preferences_spec.rb to match changes in 084d90ac Add blue back to sub nav active Remove JSX/React eslint plugins. Fix a transient spec failure Adds hoverstates for collapsed Issue/Merge Request sidebar Moved groups above projects Add StackProf to the Gemfile, along with a utility to get a profile for a spec Update Sidekiq-cron to fix compatibility issues with Sidekiq 4.2.1 Add a CHANGELOG entry Alert user when logged in user email is not the same as the invitation Expose timestamp in build entity used by serializer Rename `MergeRequest#pipeline` to `head_pipeline` Remove unnecessary database indexes CE-specific changes gitlab-org/gitlab-ee#1137 Fixing typo & Clarifying Key name fix started_at check fix blob controller spec failure - updated not to use file-path- fix blob controller spec failure Merge branch 'jej-use-issuable-finder-instead-of-access-check' into 'security' ... Conflicts: app/controllers/projects/merge_requests_controller.rb lib/api/merge_requests.rb spec/requests/api/merge_requests_spec.rb
| * \ Merge branch 'master' into fix/rename-mwbs-to-merge-when-pipeline-succeedsGrzegorz Bizon2016-11-2551-1/+31
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (312 commits) Fix bad selection on dropdown menu for tags filter Fixed issue boards scrolling with a lot of lists & issues You can only assign default_branch when editing a project ... Don't convert data which already is the target type Stop supporting Google and Azure as backup strategies renames some of the specs and adds changelog entry Fixed dragging issue moving wrong issue after multiple drags of issue Fixed issue boards issue sorting when dragging issue into list Rephrase some system notes to be compatible with new system note style Add missing JIRA file that redirects to the new location Fix documentation to create the `pg_trm` extension before creating the DB Document that we always use `do...end` for `before` in RSpec Backport Note#commands_changes from EE Log mv_namespace parameters Add default_branch attr to Project API payload in docs. Fix title case to sentence case properly escape username validation error message flash Remove header ids from University docs Add missing documentation. Added test that checks the correct select box is there for the LFS ... ... Conflicts: app/services/system_note_service.rb spec/features/merge_requests/merge_when_pipeline_succeeds_spec.rb spec/services/merge_requests/merge_when_pipeline_succeeds_service_spec.rb spec/services/system_note_service_spec.rb
| * | | Update some docs to reflect MWPS name changeGrzegorz Bizon2016-11-211-2/+2
| | | |
* | | | Merge branch 'doc/extend-code-review-guidelines' into 'master' Robert Speicher2016-12-021-0/+26
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend code review docs with chapter about the right balance [ci skip] See merge request !7838
| * | | | Remove change to MWBS in code review guidelineGrzegorz Bizon2016-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | [ci skip]
| * | | | Copy-edit text about right balance in code reviewsdoc/extend-code-review-guidelinesGrzegorz Bizon2016-12-011-10/+10
| | | | | | | | | | | | | | | | | | | | [ci skip]
| * | | | Extend code review docs with chapter about the right balanceGrzegorz Bizon2016-11-301-1/+27
| | |_|/ | |/| |
* | | | remove id collision caveat from documentationMike Greiling2016-11-301-48/+0
|/ / /
* | | Merge branch 'add-stackprof' into 'master' Robert Speicher2016-11-301-0/+110
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add StackProf to the Gemfile, along with a utility to get a profile for a spec The test suite needs speeding up significantly. This is one tool for investigating it. Related to #23034 See merge request !7784
| * | | Add StackProf to the Gemfile, along with a utility to get a profile for a specNick Thomas2016-11-291-0/+110
| | | |
* | | | Merge branch 'refactor-issuable-description-and-metadata' into 'master' Robert Speicher2016-11-291-29/+82
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor issuable description and metadata form sections Continuation of https://gitlab.com/gitlab-org/gitlab-ce/issues/23864. Brother of gitlab-org/gitlab-ee!916. See merge request !7758
| * | | | Refactor issuable description and metadata form sectionsrefactor-issuable-description-and-metadataRémy Coutable2016-11-251-29/+82
| | |_|/ | |/| | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | | Add guidelines in doc linking with HAMLAchilleas Pipinellis2016-11-281-0/+71
| |/ / |/| | | | | | | | [ci skip]
* | | [ci skip] UX Guide: Anchor hover guidance include color changeux-guide-anchor-hoverawhildy2016-11-262-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Primary and secondary links should be dark blue on hover Update anchor image to dark blue for secondary Clean up markdown Fix anchorlinks image
* | | [ci skip] UX Guide: add guidance for max height for dropdownsux-guide-dropdown-max-heightawhildy2016-11-251-0/+2
|/ / | | | | | | Fix spelling
* | Document that we always use `do...end` for `before` in RSpecimprove-testing-styleguideRémy Coutable2016-11-241-0/+2
| | | | | | | | | | | | [ci skip] Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Reduce size of images from 25MB to 13MB using pngquantAchilleas Pipinellis2016-11-2247-0/+0
| | | | | | | | | | | | Took it from https://gitlab.com/gitlab-com/www-gitlab-com/merge_requests/3232 [ci skip]
* | Merge branch 'ux-guide-update-mr-copy' into 'master' Achilleas Pipinellis2016-11-221-1/+3
|\ \ | | | | | | | | | | | | | | | | | | Add Approve and Remove approval to UX Guide terminology table Updating UX Guide page on terminology to include guidance on 'Approve' and 'Remove approval'. See merge request !7632
| * | [ci skip] Add Approve and Remove Approval to UX Guide terminology tableux-guide-update-mr-copyawhildy2016-11-211-1/+3
| |/
* | Merge branch 'object-state-models-docs' into 'master' Achilleas Pipinellis2016-11-225-0/+26
|\ \ | |/ |/| | | | | | | | | | | | | Object state models docs Object state models docs for issues and merge requests. This is to start documenting object models, focused more on users and how they experience the product. See merge request !7544
| * Remove contents section since it's not necessary [ci skip]object-state-models-docsVictor Wu2016-11-201-7/+0
| |
| * Remove hyphen [ci skip]Victor Wu2016-11-181-0/+0
| |
| * Remove hyphen [ci skip]Victor Wu2016-11-181-0/+0
| |
| * Add spaces to conform to style guide [ci skip]Victor Wu2016-11-181-0/+5
| |
| * Update object_state_models.md [ci skip]Victor Wu2016-11-171-0/+27
| |
| * Delete .gitkeep [ci skip]Victor Wu2016-11-171-0/+0
| |
| * Upload new file [ci skip]Victor Wu2016-11-171-0/+0
| |
| * Upload new file [ci skip]Victor Wu2016-11-171-0/+0
| |
| * Upload new file [ci skip]Victor Wu2016-11-171-0/+0
| |
| * Add new directory [ci skip]Victor Wu2016-11-171-0/+0
| |
| * Add file [ci skip]Victor Wu2016-11-171-0/+0
| |
| * Link to object state models [ci skip]Victor Wu2016-11-171-0/+1
| |
* | Use `Gitlab.config.gitlab.host` over `'localhost'`fix-tests-for-different-hostLin Jen-Shin2016-11-181-0/+1
|/ | | | | | | | This would fix long standing failures running tests on my development machine, which set `Gitlab.config.gitlab.host` to another host because it's not my local computer. Now I finally cannot withstand it and decided to fix them once and for all.
* Update copy.md with issue guideline updates and merge request guidelinesVictor Wu2016-11-171-26/+47
| | | | | | | | | | Update examples and labels to use sentence case. Update copy.md [ci skip] Update copy.md [ci skip] Update copy.md
* Merge branch 'google-singletons-are' into 'master' Jacob Schatz2016-11-171-0/+51
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decide on and document a convention for singletons > The singleton pattern is a design pattern that restricts the instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system. The simplest implementation uses an object literal to contain the logic. ```javascript gl.MyThing = { prop1: 'hello', method1: () => {} }; ``` A live example of this is [GfmAutoComplete](https://gitlab.com/gitlab-org/gitlab-ce/blob/172aab108b875e8dc9a5f1d3c2d53018eff76ea1/app/assets/javascripts/gfm_auto_complete.js.es6) Another approach makes use of ES6 `class` syntax. ```javascript let singleton; class MyThing { constructor() { if (!singleton) { singleton = this; singleton.init(); } return singleton; } init() { this.prop1 = 'hello'; } method1() {} } gl.MyThing = MyThing; ``` A live example of this is [Sidebar](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/assets/javascripts/sidebar.js.es6) Another functional approach to define Singleton using `Javascript Revealing Module Pattern` is like below ```javascript /** * 1. It instantiates only a single object * 2. It is safe – it keeps the reference to the singleton inside a variable, which lives inside a lexical closure, so it is not accessible by the outside world * 3. It allows privacy – you can define all private methods of your singleton inside the lexical closure of the first module pattern * 4. No this keyword trap (no wrong context referring) * 5. No use of new keyword * 6. Easy to write test code */ // const Singleton = (function () { // Instance stores a reference to the Singleton var instance; function init() { // Singleton // Private methods and variables function privateMethod(){ console.log( "I am private" ); } var privateVariable = "Im also private"; var privateRandomNumber = Math.random(); return { // Public methods and variables publicMethod: function () { console.log( "The public can see me!" ); }, publicProperty: "I am also public", getRandomNumber: function() { return privateRandomNumber; } }; }; return { // Get the Singleton instance if one exists // or create one if it doesn't getInstance: function () { if ( !instance ) { instance = init(); } return instance; } }; })(); const singletonObj = Singleton.getInstance() ``` ## Are there points in the code the reviewer needs to double check? ## What does this MR do? Creates a space for discussion and contribution for interested devs. ## Why was this MR needed? ## Screenshots (if relevant) ## Does this MR meet the acceptance criteria? - [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [x] All builds are passing (http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? See merge request !6620
| * Fix spacing in code sample.google-singletons-areBryce Johnson2016-11-011-3/+5
| |
| * Document convention for singleton use in front-end code.Bryce Johnson2016-10-311-0/+49
| |
* | Fix typosRémy Coutable2016-11-171-8/+7
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Document the `rake ee_compat_check` task23740-create-a-doc-for-the-ce-ee-development-workflowRémy Coutable2016-11-171-59/+85
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Start to document how to code for CE with EE in mindRémy Coutable2016-11-172-0/+248
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Add a gotcha about FactoryGirl sequencesadd-gotcha-following-24341Rémy Coutable2016-11-162-0/+90
| | | | | | | | | | | | Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/24341 Signed-off-by: Rémy Coutable <remy@rymai.me>
* | [ci skip] Link to the copy (messaging) page.Victor Wu2016-11-156-0/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new file for copy (messaging) guidelines Update copy guidelines Fix typo Add forms to guidelines Simplify Copy heading Refine copy page. Add images and table Fix toc link on Copy page
* | Fix link to index.md in development README.mdux-guide-indexAchilleas Pipinellis2016-11-121-1/+1
| | | | | | | | [ci skip]
* | Remove <br> and replace GFM blockquote with the Markdown generalAchilleas Pipinellis2016-11-117-84/+10
| | | | | | | | [ci skip]
* | Rename README.md to index.mdAchilleas Pipinellis2016-11-111-6/+0
| |