Commit 4b8d9b6
[READY FOR REVIEW] MONGOID-5509 Merge 8.1-stable (deprecation changes) to master (#5561)
* MONGOID-5334 ensure localized demongoization works with symbol keys (#5416)
* MONGOID-5334 ensure localized demongoization works with symbol keys
* MONGOID-5334 add type check
* MONGOID-5334 change back type check
* MONGOID-5437 extract fallback enabling logic into macro (#5428)
* MONGOID-5438 initial changes from Johnny's PR
* MONGOID-5438 additional changes from johnny's
PR
* MONGOID-5437 fix tests
* MONGOID-5437 fix uniqueness test
* MONGOID-5334 enforce Hash type in localized demongoize (#5430)
* MONGOID-5334 add type check
* MONGOID-5334 change back type check
* MONGOID-5334 enforce Hash type in localized demongoize
* MONGOID-5456 cast castable values for integer/float/big decimal (#5431)
* MONGOID-5456 cast castable values for integer/float/big decimal
* MONGOID-5456 assert duration
* MONGOID-4403 Support Dirty Tracking changed from/to (#5432)
* MONGOID-4403 Support Dirty Tracking changed from/to
* Apply suggestions from code review
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
* MONGOID-4403 add false example
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
* MONGOID-5456 Add documentation for responding to to_* (#5434)
* MONGOID-5456 Add documentation for responding to to_*
* Apply suggestions from code review
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
* MONGOID-5461 Change custom field options example (#5438)
* MONGOID-5461 Change custom field options example
* Apply suggestions from code review
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
* MONGOID-5458 Document fallbacks option on localized fields (#5439)
* MONGOID-5460 Update custom field type protocol documentation (#5441)
* MONGOID-5457 Document + example of non-String field types in localized fields (#5444)
* MONGOID-4698 update warning when overriding criteria methods in scope (#5442)
* MONGOID-4698 update warning when overriding criteria methods in scope
* Apply suggestions from code review
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
* MONGOID-5417 Fix memory leak when call 'with' (#5409)
* MONGOID-4528 Add more dirty methods (#5440)
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
* MONGOID-4698 Correct warning to point out that klass.band doesnt conflict (#5450)
* MONGOID-5226 Allow setting "store_in collection" on document subclass (#5449)
* MONGOID-5226 Allow setting "store_in collection" on document subclass
* remove comment
* MONGOID-5226 add docs and testing
* Apply suggestions from code review
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
* MONGOID-5226 answer comments
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
* MONGOID-5293 put legacy_attributes in 7.5 defaults (#5425)
* MONGOID-5293 put legacy_attributes in 7.5
* switch order
* MONGOID-5293 fix defaults tests
* MONGOID-5438 Implement local override for i18n parameters (#5427)
* MONGOID-5438 Implement local override for i18n parameters
* MONGOID-5438 get rid of enfore_available_locale changes
* MONGOID-5438 get rid of before alls
* MONGOID-5438 fix tests caused by rspec precedence
* MONGOID-5438 attempt to fix tests when fallbacks disabled
* MONGOID-5438 make fallbacks default to return [self]
* MONGOID-5438 reset fallbacks
* MONGOID-5438 attempt to fix tests
* MONGOID-5438 retry_test
* MONGOID-5438 undefine fallback methods after fallback tests
* MONGOID-5438 add back defaults
* MONGOID-5438 use new macros
* MONGOID-5438 use before and after suite
* MONGOID-5438 update mrss
* MONGOID-5438 remove suite checks
* MONGOID-5370 Add collection options support (#5452)
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
* MONGOID-5474 add readonly! and raise on save/update (#5455)
* MONGOID-5474 add readonly! and raise on save/update
* MONGOID-5474 flip flag for 9.0 and add default
* MONGOID-5474 fix error tests
* Update spec/mongoid/config_spec.rb
* Apply suggestions from code review
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
* Update lib/mongoid/config.rb
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
* MONGOID-5474/MONGOID-5478 add docs and release notes (#5457)
* MONGOID-5474 add docs and release notes
* MONGOID-5474 use read-only
* MONGOID-5474 add configuration docs
* MOGOID-5474 switch order of flag docs
* add MONGOID-5477 use case
* MONGOID-5477 / MONGOID-5474 / MONGOID-5478 add user test (#5459)
* MONGOID-5474 add user test
* MONGOID-5474 change to read-only
* MOGOID-5474 switch order of flag docs
* MONGOID-5476 update 8.1 installation version (#5464)
* MONGOID-5474 flip the feature flag in 8.1 (#5456)
* MONGOID-5474 flip the feature flag in 8.1
* MONGOID-5474 flip flag in configuration
* MONGOID-5474 update config test
* MONGOID-5227 Add test and adjust docs for dotted attribute assignment in default scope (#5474)
* MONGOID-5227 Add test and adjust docs for dotted attribute assignment in default scope
* MONGOID-5227 adjust docs
* MONGOID-5227 clarify the docs and add tests
* Update docs/reference/queries.txt
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
* MONGOID-5493: Update Gem::Specification team info (#5476)
* MONGOID-5312 Document attributes method in reference (#5477)
* MONGOID-5312 Document attributes method in reference
* Apply suggestions from code review
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
* MONGOID-5312 update languagw
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
* MONGOID-5082 Create contributing guidelines (#5472)
* MONGOID-5082 Create contributing guidelines
* MONGOID-5082 propose test coverage
* MONGOID-5082 whitespace
* MONGOID-5082 update language
* add intro
* MONGOID-5445 Add load_async to criteria (#5454)
Co-authored-by: Neil Shweky <neilshweky@gmail.com>
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
* MONGOID-5291 Clarify whether :touch option is applicable for all updates (#5481)
* MONGOID-5261 Use config_override when a test requires a certain configuration option value (#5479)
* MONGOID-5261 Use config_override when a test requires a certain configuration option value
* fix syntax error
* MONGOID-5261 a little more cleanup
* MONGOID-5261 more cleanup
* more clean up
* MONGOID-5261 add persistence context override
* MONGOID-5261 add comment
* MONGOID-5100 allow selector arguments for .exists? (#5466)
* MONGOID-5100 allow selector arguments for .exists?
* MONGOID-5100 add examples to the docstrings
* MONGOID-5100 add docs and release notes
* Empty-Commit
* MONGOID-5100 allow false to be passed
* MONGOID-5100 update docs and docstrings
* MONGOID-5100 remove false as a param
* MONGOID-5100 put back nil/false
* MONGOID-5100 fix memory tests and fix limit == 0
* MONGOID-5262 Implement local time zone override for tests (#5480)
* MONGOID-5506 Update 8.x docs to document unscoped behavior changing in 9.0 (#5483)
* MONGOID-5506 Update 8.x docs to document unscoped behavior changing in 9.0
* Update lib/mongoid/scopable.rb
* RUBY-2942: Update documentation links (#5482)
* MONGOID-5363 Change #upsert to perform updating upsert rather than replacing upsert (#5492)
* MONGOID-5363 add :replace option to upsert method
* MONGOID-5363 add docs, release notes for 8.1/9.0
* MONGOID-5363 switch default in 8.1 (#5493)
* MONGOID-5363 update docstrings, flag default, and tests for 8.1
* specify default in mongoid 9
* MONGOID-5331 Document hash assignment to associations (#5494)
* MONGOID-5331 change buildable docs
* MONGOID-5331 add proxy tests and fix embedded_in proxy
* MONGOID-5331 update models
* Update spec/mongoid/association/embedded/embedded_in/proxy_spec.rb
* MONGOID-5331 update doc strings in batchable
* MONGOID-5331 add docs
* MONGOID-5331 add docs/release notes
* Apply suggestions from code review
* Update spec/mongoid/association/embedded/embedded_in/proxy_spec.rb
* RUBY-3097 add/use monotonic time for deadlines (#5491)
* RUBY-3097 add/use monotonic time for deadlines
* remove license and fix tests
* MONGOID-3834 Document association availability in custom getters and setters (#5503)
* MONGOID-3834 Document association availability in custom getters and setters
* add callbacks note
* MONGOID-5496: Update Getting Started (Rails) tutorial for Rails 7 (#5509)
* Clone Rails Tutorial and create variation for Rails 7
* Update Existing Application docs for Rails 7
* MONGOID-5532: Fix path to comments partial (#5511)
* MONGOID-5533: Unnecessary edits to Comment model in Rails Getting Started (#5512)
* Add note about workaround for MONGOID-4885 in Rails 6 docs
* Fix whitespace
* MONGOID-5521 migrate Mongoid docs to snooty (#5513)
* fix code blocks
* MONGOID-5521 fix all parse errors
* build docs with github action
* Revert "build docs with github action"
This reverts commit 9ffda44.
* MONGOID-5496: Update Rails 7 Tutorial (#5515)
* Remove `--skip-bundle` from _Optionally Skip Tests_ section
* MONGOID-5518: Add Puma dependency to Sinatra tutorial (#5516)
* MONGOID-5453 Add .none_of query method (#5524)
* "none_of" query method
* update docs and release notes
* fix underline for header
* MONGOID-5539: Fix example in aggregation reference documentation (#5536)
* Update aggregation.txt
* Update aggregation.txt
* MONGOID-5228 disallow _id to be updated on persisted documents (ported to 8.1-stable) (#5545)
* port #5542 to 8.1-stable
* test tweak
* update 8.1 release notes to mention immutable_ids
* MONGOID-5490: Deprecate :use_activesupport_time_zone (#5488)
* Deprecate the use_activesupport_time_zone_deprecated config option.
* Typo
* Update config.rb
* Update mongoid-8.1.txt
---------
Co-authored-by: shields <shields@tablecheck.com>
* MONGOID-5509: Deprecate all feature flags which were introduced in Mongoid 7.x (#5489)
* Deprecate the use_activesupport_time_zone_deprecated config option.
* Typo
* Mongoid 8.1 should deprecate all feature flags which were introduced in the 7.x series, with intent to remove them in Mongoid 9.0.
---------
Co-authored-by: shields <shields@tablecheck.com>
* Remove :use_activesupport_time_zone option + improve readme around timezone usage given the change
* Remove deprecated :broken_aggregables config option
* Remove deprecated :broken_alias_handling config option
* Remove deprecated :broken_and config option
* Remove deprecated :broken_scoping config option
* Remove deprecated :broken_updates config option
* Remove deprecated :compare_time_by_ms config option
* Remove deprecated :legacy_attributes config option
* Remove deprecated :legacy_pluck_distinct config option
* Remove deprecated :legacy_triple_equals config option
* Remove deprecated :object_id_as_json_oid config option
* Remove deprecated :overwrite_chained_operators config option
* Drop support for config.load_defaults versions "7.3", "7.4", "7.5", as their options are no longer available.
* Fix broken spec in Mongoid 8.1
---------
Co-authored-by: Neil Shweky <neilshweky@gmail.com>
Co-authored-by: Oleg Pudeyev <39304720+p-mongo@users.noreply.github.com>
Co-authored-by: Dmitry Rybakov <dmitry.rybakov@mongodb.com>
Co-authored-by: Alex Bevilacqua <alex@alexbevi.com>
Co-authored-by: Jamis Buck <jamisbuck@gmail.com>
Co-authored-by: Jamis Buck <jamis.buck@mongodb.com>
Co-authored-by: shields <shields@tablecheck.com>1 parent 9892a68 commit 4b8d9b6
File tree
65 files changed
+1114
-3253
lines changed- docs
- reference
- release-notes
- tutorials
- lib/mongoid
- association
- embedded
- embeds_one
- referenced/has_many
- config
- contextual
- aggregable
- criteria/queryable
- extensions
- matcher
- spec
- config
- integration
- criteria
- mongoid
- association
- referenced
- has_and_belongs_to_many
- has_many
- config
- contextual
- aggregable
- criteria/queryable
- extensions
- extensions
- persistable
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
65 files changed
+1114
-3253
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 42 | + | |
| 43 | + | |
53 | 44 | | |
54 | 45 | | |
55 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
359 | 358 | | |
360 | 359 | | |
361 | 360 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
95 | 104 | | |
96 | 105 | | |
97 | 106 | | |
| |||
378 | 387 | | |
379 | 388 | | |
380 | 389 | | |
381 | | - | |
| 390 | + | |
382 | 391 | | |
383 | 392 | | |
384 | 393 | | |
| |||
398 | 407 | | |
399 | 408 | | |
400 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
20 | 46 | | |
21 | 47 | | |
22 | 48 | | |
| |||
128 | 154 | | |
129 | 155 | | |
130 | 156 | | |
131 | | - | |
132 | | - | |
| 157 | + | |
133 | 158 | | |
134 | 159 | | |
135 | 160 | | |
136 | | - | |
137 | | - | |
138 | 161 | | |
139 | 162 | | |
140 | 163 | | |
| |||
147 | 170 | | |
148 | 171 | | |
149 | 172 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
154 | 176 | | |
155 | 177 | | |
156 | | - | |
157 | | - | |
| 178 | + | |
158 | 179 | | |
159 | 180 | | |
160 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
82 | 80 | | |
83 | 81 | | |
84 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 48 | + | |
53 | 49 | | |
54 | 50 | | |
55 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | 74 | | |
79 | 75 | | |
80 | 76 | | |
81 | 77 | | |
82 | 78 | | |
83 | 79 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 80 | | |
132 | 81 | | |
133 | 82 | | |
| |||
397 | 346 | | |
398 | 347 | | |
399 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
400 | 377 | | |
401 | 378 | | |
0 commit comments