- 31 Jan, 2020 1 commit
-
-
Jesse Hall authored
-
- 29 Jan, 2020 39 commits
-
-
Michael Kozono authored
Use NodeUpdateService in update API Closes #199112 See merge request gitlab-org/gitlab!23894
-
Rajendra Kadam authored
-
Mark Florian authored
Adds a format for relative and open date ranges See merge request gitlab-org/gitlab!23584
-
Douglas Barbosa Alexandre authored
Upgrade to Rails 6 Closes #30030 and #31034 See merge request gitlab-org/gitlab!19891
-
Douglas Barbosa Alexandre authored
Fix Geo Sidebar missing `active` class Closes #199238 See merge request gitlab-org/gitlab!23885
-
Zack Cuddy authored
Spec Tests and lint
-
Paul Slaughter authored
Move the clone button to the tree controls area See merge request gitlab-org/gitlab!17752
-
-
Miguel Rincon authored
- Improve validations of time ranges - Use deconstructing for named parameters in functions - Improve time range examples in jsdoc - Switch to placing the functions in `const`
-
Miguel Rincon authored
-
Thomas Randolph authored
There are basically 2 big updates in this commit: 1) Split up each range type handler into a separate function (plus a few helper functions). 2) Export a type infer-er The type infer-er is useful internally, but also helps me feel more confident about code changes. In theory no type should ever collide with another type, so this function is kind of like the "canary in the coal mine" in that we should always be able to test a 1:1 range type from this function. If we can test the types thoroughly, we can be more confident each respective handler is working on the right set of data. On that note, splitting up the logic for each range type makes me feel much more confident that each one is handled in a way that doesn't conflict with any other. More importantly, any potential changes to an existing range type or additions of new range types will: A) Not cause any changes to the existing ones and B) Scale gracefully On that final note of graceful scaling, I find the (very common) method of basically extending a long if/else if/else block to be frightening from the perspective of ever needing to add things. I've found the method I use here (a dictionary lookup, in a bunch of cases) to be much easier to reason about: every addition adds a single dictionary entry, and the JS selects it (O(1)) when it's needed.
-
Miguel Rincon authored
The date ranges can be used to represent periods of time relative to arbitrary points in time, such as a fixed date or the current moment.
-
Douglas Barbosa Alexandre authored
Create backend route for dedicated Release page See merge request gitlab-org/gitlab!23792
-
Sid Sijbrandij authored
Remove existing to clarify examples See merge request gitlab-org/gitlab!23987
-
Alessio Caiazza authored
Refactor merge request routing See merge request gitlab-org/gitlab!23782
-
Phil Hughes authored
Added Monaco-based editor lite version Closes #198618 See merge request gitlab-org/gitlab!23767
-
Denys Mishunov authored
This introduces the bare-minimum Monaco editor for single-file edits like those for Snippets, blobs and CI/CD configurations
-
Phil Hughes authored
Merge branch '197973-staged-and-unstaged-modification-tooltip-for-file-with-staged-changes-in-web-ide' into 'master' Resolve "Staged and unstaged modification" tooltip See merge request gitlab-org/gitlab!23847
-
Marcel van Remmerden authored
-
Heinrich Lee Yu authored
When credentials are changed, the field isn't marked as dirty which results in the model not being saved or updated.
-
Heinrich Lee Yu authored
The query was passing a string for file_type when it is an int. This is actually an unused column but was working in Rails 5 because it was just coerced to 0 which is the default value. In Rails 6, it is now nil so no records match our query
-
Heinrich Lee Yu authored
In Rails 6, after_commit callbacks are no longer called unless the model was saved
-
Heinrich Lee Yu authored
The behavior of this is going to change in Rails 6.1 where.not(a: 1, b: 2) is going to be: WHERE (a != 1 OR b !=2 ) instead of WHERE (a != 1 AND b != 2)
-
Heinrich Lee Yu authored
Previously, having the `where` turned this into a relation so `ActiveRecord::Relation#delete_all` is called. In Rails 6, `ActiveRecord::Associations::CollectionProxy#delete_all` is called causing an error in the query.
-
Heinrich Lee Yu authored
* Disable locking at the class-level for `update_all` * Fixes DEPRECATION WARNING: `ActiveRecord::Result#to_hash` has been renamed to `to_a`. `to_hash` is deprecated and will be removed in Rails 6.1. * Fix lookup of CE views `view_paths=` was removed so we just create a new LookupContext here instead of duplicating then modifying the paths * Fix some view related spec failures * Fix database configuration for connection pools ActiveRecord::Base.configurations now returns a ActiveRecord::DatabaseConfigurations object
-
Heinrich Lee Yu authored
We use `present_members` here so that associations are preloaded. We do this even if there's only one record here because it raises an exception when user.status isn't preloaded.
-
Heinrich Lee Yu authored
In Rails 6, content_type now returns the complete header. We use media_type to just get the MIME type portion See https://github.com/rails/rails/pull/36034
-
Heinrich Lee Yu authored
Removes patches that are already in Rails 6: Gitlab::ContentDisposition patch ActiveRecord::QueryCache patch ActiveJob::Arguments patch Gitlab::ActionViewOutput patch Updates Activerecord::Locking::Optimistic patch to follow changes in https://github.com/rails/rails/blob/v6.0.1/activerecord/lib/active_record/locking/optimistic.rb Fix missing timezone for datetime_with_timezone by adding this custom type to ActiveRecord's time_zone_aware_attributes
-
Heinrich Lee Yu authored
There are also minor changes to keep the Rails generated files similar to when generating a new Rails 6 application grape_logging was upgraded to fix deprecation messages related to ActionDispatch::Http::ParameterFilter Rails 6 now adds the nonce to style-src by default. We disable this because we still have a lot of code that set inline styles and we need 'unsafe-inline'
-
Stan Hu authored
Move SpamCheckService into spam folder See merge request gitlab-org/gitlab!23915
-
Douglas Barbosa Alexandre authored
Support design repo in project namespace transfer See merge request gitlab-org/gitlab!23573
-
Nathan Friend authored
This commit adds the backend route for the dedicated release show page. This page is hidden behind a `release_show_page` feature flag which is disabled by default.
-
Mayra Cabrera authored
Delete a comment See merge request gitlab-org/gitlab!23937
-
Lucy Fox authored
-
James Lopez authored
Add a `class_name: "::Project"` to a `belongs_to :project` in a spec Closes #199424 See merge request gitlab-org/gitlab!23979
-
Nick Thomas authored
Merge branch '39505-extend-the-ability-to-clone-a-dashboard-so-it-would-copy-the-custom-metrics' into 'master' Extend the ability to clone a dashboard so it would copy the custom metrics See merge request gitlab-org/gitlab!21923
-
Tim Rizzi authored
-
Rémy Coutable authored
Fix missing 'Pipeline schedules' link Closes #199088 See merge request gitlab-org/gitlab!23842
-
Adam Hegyi authored
- Add test case for FOSS and EE project and group navbar structure.
-