gitlab-org--gitlab-foss/spec
Stan Hu 0f5b735685 Fix stage index migration failing in PostgreSQL 10
As discussed in
https://www.postgresql.org/message-id/9922.1353433645%40sss.pgh.pa.us,
the PostgreSQL window function last_value may not consider the
right rows:

Note that first_value, last_value, and nth_value consider only the rows
within the "window frame", which by default contains the rows from the
start of the partition through the last peer of the current row. This is
likely to give unhelpful results for last_value and sometimes also
nth_value. You can redefine the frame by adding a suitable frame
specification (RANGE or ROWS) to the OVER clause. See Section 4.2.8 for
more information about frame specifications.

This query could be fixed by adding `RANGE BETWEEN UNBOUNDED PRECEDING
AND UNBOUNDED FOLLOWING`, but that's quite verbose. It's simpler just to
use the first_value function.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/59985
2019-04-03 22:47:51 -07:00
..
bin
config
controllers Merge branch 'sh-cache-pipeline-find-commits' into 'master' 2019-04-02 14:29:49 +00:00
db
dependencies
factories Add new field to Clusters table 2019-04-02 06:54:54 +00:00
features Fix broken spec for Merge request > Revert modal 2019-04-03 22:08:19 -03:00
finders
fixtures
frontend Merge branch 'feature/webide_escaping' of gitlab.com:hiddentiger/gitlab-ce into feature/webide_escaping 2019-04-03 11:38:46 +00:00
graphql Extra permissions in Project & Issue GraphQL 2019-04-01 10:55:33 +02:00
helpers Merge branch 'feature/webide_escaping' of gitlab.com:hiddentiger/gitlab-ce into feature/webide_escaping 2019-04-03 11:38:46 +00:00
initializers
javascripts Merge branch '29249-show-download-diff-even-when-merge-request-is-closed' into 'master' 2019-04-03 18:42:31 +00:00
lib Fix stage index migration failing in PostgreSQL 10 2019-04-03 22:47:51 -07:00
mailers
migrations Merge branch 'issue_51789_part_1' into 'master' 2019-04-02 08:39:53 +00:00
models Merge branch '55268-exclude-system-notes-from-commits-in-mr' into 'master' 2019-04-03 09:45:31 +00:00
policies Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into jarv/dev-to-gitlab-2019-04-02 2019-04-02 10:12:32 +02:00
presenters
rack_servers
requests Add port section to CI Image object 2019-04-03 09:50:54 +00:00
routing
rubocop
serializers Backport EE change 2019-04-02 15:55:06 +07:00
services Merge branch '58644-remove-reply_to_individual_notes-feature-flag' into 'master' 2019-04-03 13:54:05 +00:00
sidekiq/cron
support Merge branch '13784-validate-variables-for-masking' into 'master' 2019-04-03 17:55:56 +00:00
tasks
uploaders Don't try to set any ACL on uploaded objects 2019-03-30 14:55:33 +01:00
validators
views Disable inaccessible navigation links upon archiving a project 2019-03-31 16:09:51 +02:00
workers Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
factories_spec.rb
fast_spec_helper.rb
rails_helper.rb
rake_helper.rb
simplecov_env.rb
spec_helper.rb Merge branch '6539-extract-ee-specific-code' into 'master' 2019-04-01 08:58:16 +00:00