Suppress composite primary key warning
What does this MR do?
Suppress composite primary key warning. Models obtained from !45198 (merged), and !49024 (diffs)
Related issue: #292909 (closed)
note: There seems to be no Models for:
- issues_prometheus_alert_events
- issues_self_managed_prometheus_alert_events
- project_access_token
Screenshots (strongly suggested)
$ ss ee/spec/models/ee/vulnerability_spec.rb
Running via Spring preloader in process 84868
WARNING: `around(:context)` hooks are not supported and behave like `around(:example). Called from /Users/tkuah/code/ee-gdk/gitlab/spec/support/omniauth_strategy.rb:36:in `block in <main>'.
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
.....................................WARNING: Active Record does not support composite primary key.
project_authorizations has composite primary key. Composite primary key is ignored.
......WARNING: Active Record does not support composite primary key.
user_interacted_projects has composite primary key. Composite primary key is ignored.
...............................................................................
Finished in 36.75 seconds (files took 3.52 seconds to load)
122 examples, 0 failures
After:
$ ss ee/spec/models/ee/vulnerability_spec.rb
Running via Spring preloader in process 91717
/Users/tkuah/code/ee-gdk/gitlab/app/graphql/types/base_enum.rb:24: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/tkuah/code/ee-gdk/gitlab/app/graphql/types/base_enum.rb:27: warning: The called method `value' is defined here
WARNING: `around(:context)` hooks are not supported and behave like `around(:example). Called from /Users/tkuah/code/ee-gdk/gitlab/spec/support/omniauth_strategy.rb:36:in `block in <main>'.
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
..........................................................................................................................
Finished in 1 minute 18.6 seconds (files took 28.7 seconds to load)
122 examples, 0 failures
Does this MR meet the acceptance criteria?
Conformity
- [-] Changelog entry
- [-] Documentation (if required)
-
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process.
Edited by Thong Kuah