summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
Commit message (Collapse)AuthorAgeFilesLines
* Support custom attributes on usersMarkus Koller2017-09-281-0/+5
|
* Merge branch 'dm-simple-project-avatar-url' into 'master'Rémy Coutable2017-09-261-5/+6
|\ | | | | | | | | Expose avatar_url when requesting list of projects from API with simple=true See merge request gitlab-org/gitlab-ce!14498
| * Expose avatar_url when requesting list of projects from API with simple=truedm-simple-project-avatar-urlDouwe Maan2017-09-261-5/+6
| |
* | Expose last pipeline details in API response when getting a single commitMehdi Lahmam2017-09-261-0/+1
|/ | | | Closes #35692.
* Detect n+1 issues involving GitalyAndrew Newdigate2017-09-191-1/+4
|
* Add 'closed_at' attribute to Issues APIVitaliy @blackst0ne Klachkov2017-09-161-0/+1
|
* Revert "Merge branch 'revert-f2421b2b' into 'master'"revert-2f46c3a8Annabel Dunstone Gray2017-09-111-1/+1
| | | This reverts merge request !14148
* Revert "Merge branch ↵revert-f2421b2bRubén Dávila2017-09-081-1/+1
| | | | | '35012-navigation-add-option-to-change-navigation-color-palette' into 'master'" This reverts merge request !13619
* Merge branch ↵Sean McGivern2017-09-071-1/+1
|\ | | | | | | | | | | | | | | | | '35012-navigation-add-option-to-change-navigation-color-palette' into 'master' Add option to change navigation color palette Closes #35012 See merge request !13619
| * Restore some changes from !9199Rubén Dávila2017-09-061-1/+1
| |
* | Merge branch 'events-migration-cleanup' into 'master'Sean McGivern2017-09-071-1/+1
|\ \ | | | | | | | | | | | | | | | | | | Finish migration to the new events setup Closes #37241 See merge request !13932
| * | Finish migration to the new events setupevents-migration-cleanupYorick Peterse2017-09-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This finishes the procedure for migrating events from the old format into the new format. Code no longer uses the old setup and the database tables used during the migration process are swapped, with the old table being dropped. While the database migration can be reversed this will 1) take a lot of time as data has to be coped around 2) won't restore data in the "events.data" column as we have no way of restoring this. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37241
* | | Merge branch 'wiki_api' into 'master'Grzegorz Bizon2017-09-071-0/+10
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | Add API support for wiki pages Closes #12747 See merge request !13372
| * | Add API support for wiki pagesblackst0ne2017-09-071-0/+10
| | |
* | | revert to using a simple representationmicael.bergeron2017-09-061-1/+1
| | |
* | | wip: fake its a binary diffmicael.bergeron2017-09-061-1/+2
| | |
* | | change collapse to resolve and comments to discussionsAshley Dumaine2017-09-061-1/+1
| | |
* | | Add functionality to collapse outdated diff comments regardless of ↵Ashley Dumaine2017-09-061-0/+1
| |/ |/| | | | | discussion resolution
* | API: Add GPG key managementRobert Schilling2017-09-051-0/+4
| |
* | Improve by zj nice catchesShinya Maeda2017-09-041-1/+1
| |
* | Add spec (Halfway)Shinya Maeda2017-09-041-1/+1
| |
* | Extend API: Pipeline Schedule VariableShinya Maeda2017-09-041-1/+2
| |
* | Add API supportShinya Maeda2017-09-031-0/+1
| |
* | Merge branch 'master' into issue-discussions-refactorDouwe Maan2017-08-311-3/+41
|\ \
| * | Add time stats to issue and merge request API end pointsTravis Miller2017-08-291-1/+21
| | |
| * | Resolve new N+1 by adding preloads and metadata to issues end pointsTravis Miller2017-08-291-2/+20
| |/
* | Merge branch 'master' into issue-discussions-refactorDouwe Maan2017-08-171-3/+4
|\ \ | |/ | | | | | | | | # Conflicts: # package.json # spec/support/features/reportable_note_shared_examples.rb
| * Merge branch 'rs-more-public-send-whitelists' into 'master'Rémy Coutable2017-08-161-2/+3
| |\ | | | | | | | | | | | | Whitelist or fix additional `Gitlab/PublicSend` cop violations See merge request !13467
| | * Whitelist or fix additional `Gitlab/PublicSend` cop violationsrs-more-public-send-whitelistsRobert Speicher2017-08-141-2/+3
| | | | | | | | | | | | | | | An upcoming update to rubocop-gitlab-security added additional violations.
| * | Enable Layout/TrailingWhitespace cop and auto-correct offensesRobert Speicher2017-08-151-1/+1
| |/
* | Merge branch 'master' into issue-discussions-refactorFilipa Lacerda2017-08-121-1/+11
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (66 commits) fix confidential border issue as well as confidential styles leaking on new MR Migrate force push check to Gitaly Add option to disable project export on instance Better categorize test coverage results Add option to disable project export on instance - db changes Better caching and indexing of broadcast messages Include the `is_admin` field in the `GET /users/:id` API when current user is an admin Document rspec-retry and rspec-flaky Fix cop description Retrieve and sync flaky specs report from and to S3 Use a new RspecFlakyListener to detect flaky specs Fix formatting of patch_versions.md [skip ci] Enable Timecop safe mode Show error message for API 500 error in tests, and Fix merge request diff deserialisation when too_large was absent Delete correct key from `session` after authenticating using U2F Bumps omniauth-ldap gem version to 2.0.4 Pending delete projects no longer return 500 error in Admins projects view Do not run the `ee_compat_check` job for stableish branches Update gitlab.po: Missing 'r' in "Fouché" that comes from "Fourcher" verb. ...
| * Migrate events into a new formatYorick Peterse2017-08-101-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit migrates events data in such a way that push events are stored much more efficiently. This is done by creating a shadow table called "events_for_migration", and a table called "push_event_payloads" which is used for storing push data of push events. The background migration in this commit will copy events from the "events" table into the "events_for_migration" table, push events in will also have a row created in "push_event_payloads". This approach allows us to reclaim space in the next release by simply swapping the "events" and "events_for_migration" tables, then dropping the old events (now "events_for_migration") table. The new table structure is also optimised for storage space, and does not include the unused "title" column nor the "data" column (since this data is moved to "push_event_payloads"). == Newly Created Events Newly created events are inserted into both "events" and "events_for_migration", both using the exact same primary key value. The table "push_event_payloads" in turn has a foreign key to the _shadow_ table. This removes the need for recreating and validating the foreign key after swapping the tables. Since the shadow table also has a foreign key to "projects.id" we also don't have to worry about orphaned rows. This approach however does require some additional storage as we're duplicating a portion of the events data for at least 1 release. The exact amount is hard to estimate, but for GitLab.com this is expected to be between 10 and 20 GB at most. The background migration in this commit deliberately does _not_ update the "events" table as doing so would put a lot of pressure on PostgreSQL's auto vacuuming system. == Supporting Both Old And New Events Application code has also been adjusted to support push events using both the old and new data formats. This is done by creating a PushEvent class which extends the regular Event class. Using Rails' Single Table Inheritance system we can ensure the right class is used for the right data, which in this case is based on the value of `events.action`. To support displaying old and new data at the same time the PushEvent class re-defines a few methods of the Event class, falling back to their original implementations for push events in the old format. Once all existing events have been migrated the various push event related methods can be removed from the Event model, and the calls to `super` can be removed from the methods in the PushEvent model. The UI and event atom feed have also been slightly changed to better handle this new setup, fortunately only a few changes were necessary to make this work. == API Changes The API only displays push data of events in the new format. Supporting both formats in the API is a bit more difficult compared to the UI. Since the old push data was not really well documented (apart from one example that used an incorrect "action" nmae) I decided that supporting both was not worth the effort, especially since events will be migrated in a few days _and_ new events are created in the correct format.
* | Merge branch 'master' into issue-discussions-refactorFilipa Lacerda2017-08-101-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (42 commits) alternative route for download archive Add missing command to compile GetText files Prevent user from changing username with container registry tags Rename RPC 'Exists' to 'RepositoryExists' Fix the sticky changes bar on commits page Fix ee_compat_check when EE branch uses a prefix Removed display styles when hiding the fly out navigation Explain why we use select all for project_url_constrainer.rb Fix pikaday being undefined Add a helper to stub storage settings with defaults Enable the Layout/SpaceBeforeBlockBraces cop update Install from Source instructions Translations can be picked without asking for exceptions Ask for exceptions in advance Don't require stackprof in Gemfile Synchronous Korean translation in zanata Use full path of user's avatar in webhooks Update icon color on hover Align all nav items in sidebar Fix height of collapsed sidebar items ...
| * Enable the Layout/SpaceBeforeBlockBraces coprc/enable-the-Layout/SpaceBeforeBlockBraces-copRémy Coutable2017-08-091-1/+1
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'master' into issue-discussions-refactorFilipa Lacerda2017-08-081-15/+24
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (481 commits) Make sure that we have author and committer disable file upload button while uploading Fix bar chart does not display label at hour 0 Fixed activity not loading on project homepage Expose noteable_iid in Note Fix fly-out width when it has long items Add a test to show that threshold 40 would corrupt Add changelog entry Raise encoding confidence threshold to 50 Fix the /projects/:id/repository/commits endpoint to handle dots in the ref name when the project full path contains a `/` Fix the /projects/:id/repository/tags endpoint to handle dots in the tag name when the project full path contains a `/` Add Italian translations of Pipeline Schedules Restrict InlineJavaScript for haml_lint to dev and test environment Incorporate Gitaly's CommitService.FindCommit RPC Move `deltas` and `diff_from_parents` logic to Gitlab::Git::Commit fix repo_edit_button_spec.js fix test failures in repo_preview_spec.js fix repo_loading_file_spec tests Refactor Gitlab::Git::Commit to include a repository use 100vh instead of flip flopping between the two - works on all suported browsers ...
| * Expose noteable_iid in Notesue4452017-08-081-0/+6
| |
| * Fix the /projects/:id/repository/tags endpoint to handle dots in the tag ↵Rémy Coutable2017-08-081-1/+1
| | | | | | | | | | | | name when the project full path contains a `/` Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Merge branch 'bvl-nfs-circuitbreaker' into 'master'Sean McGivern2017-08-071-0/+6
| |\ | | | | | | | | | | | | | | | | | | Circuitbreaker for storage paths Closes #32207, #33117, gitlab-com/infrastructure#1946, and gitlab-com/infrastructure#1775 See merge request !11449
| | * Add a Circuitbreaker for storage pathsBob Van Landuyt2017-08-041-0/+6
| | |
| * | Expose more attributes to unauthenticated GET /projects/:idTony2017-08-031-14/+11
| |/
* | Merge branch 'master' into issue-discussions-refactorFilipa Lacerda2017-08-041-2/+15
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (162 commits) Since mysql is not a priority anymore, test it less Add container registry and spam logs icons Fix different Markdown styles Backport to CE for: Make new dropdown dividers full width Bump GITLAB_SHELL_VERSION and GITALY_VERSION to support unhiding refs Install yarn via apt in update guides Use long curl options Remove monkey-patched Array.prototype.first() and last() methods Openshift Getting Started 35659 Rename Pipelines tab to CI / CD in new navigation Don't bother going through an entire Banzai pipeline for empty text Add active state for pipelines settings on old nav Bump rspec to 3.6.0 Resolve "Specific Async Script Loading by using a Page Variable" Revert "Merge branch 'rs-warm-capybara-only-in-ci' into 'master'" another rubocop style fix Use mixin for new dropdown style Migrate Repository#last_commit_for_path to Gitaly Migrate blame loading to Gitaly ...
| * Merge branch 'api_project_events_target_iid' into 'master'Rémy Coutable2017-08-021-1/+1
| |\ | | | | | | | | | | | | Expose target_iid in Events API See merge request !13247
| | * Expose target_iid in Events APIsue4452017-08-021-1/+1
| | |
| * | Extending API for protected branchesEric2017-08-021-1/+14
| | |
* | | Merge branch 'master' into issue-discussions-refactorDouwe Maan2017-07-311-34/+57
|\ \ \ | |/ / | | | | | | | | | | | | | | | # Conflicts: # app/controllers/concerns/notes_actions.rb # spec/features/task_lists_spec.rb # spec/support/features/issuable_slash_commands_shared_examples.rb
| * | Make the attribute list for application settings reusableBob Van Landuyt2017-07-271-31/+2
| |/
| * Merge branch 'issue_34622' into 'master'Sean McGivern2017-07-251-2/+2
| |\ | | | | | | | | | | | | | | | | | | Group milestones API endpoint Closes #34622 See merge request !12819
| | * Add group milestones API endpointissue_34622Felipe Artur2017-07-211-2/+2
| | |
| * | Resolve "More RESTful API: include resource URLs in responses"Oswaldo Ferreira2017-07-251-0/+52
| | |
| * | Support both internal and external issue trackersJarka Kadlecova2017-07-241-1/+1
| |/