Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mongodb/mongoid
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.2.5
Choose a base ref
...
head repository: mongodb/mongoid
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Oct 22, 2020

  1. MONGOID-3468 Always touch parents of embedded documents when embedded…

    … documents are touched (#4904)
    
    * perform exact time assertions in existing tests
    
    * tests for child -> parent updated_at updates
    
    * propagate touches through composition hierarchy
    
    * fix the tests to reflect embedded associations always touching their parents
    
    * documentation
    
    * forgot to include
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Oct 22, 2020
    Copy the full SHA
    55e8aa5 View commit details

Commits on Nov 4, 2020

  1. Update spec/shared to current master (#4907)

    * Update spec/shared to current master
    
    * RUBY-2428 use shared spec organizer & child process helper
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Nov 4, 2020
    Copy the full SHA
    fee0cfe View commit details

Commits on Nov 5, 2020

  1. Copy the full SHA
    49c2c00 View commit details
  2. MONGOID-4913 add release notes (#4908)

    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Nov 5, 2020
    Copy the full SHA
    e8ecbc0 View commit details

Commits on Nov 6, 2020

  1. RUBY-1387 TLS context hooks documentation (#4909)

    Emily Giurleo authored Nov 6, 2020
    Copy the full SHA
    1cea9c2 View commit details

Commits on Nov 11, 2020

  1. Fix up docstring

    p committed Nov 11, 2020
    Copy the full SHA
    d63f44c View commit details
  2. Fix MONGOID-5002 parent.child = Child.new raises TypeError when there…

    …'s no inverse relation for belongs_to with has_one parent (#4911)
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Nov 11, 2020
    Copy the full SHA
    02eb17e View commit details

Commits on Nov 13, 2020

  1. Test & document MONGOID-5009 Belongs to relationship changes method v…

    …isibility (#4912)
    
    * Use public_send to delegate methods from Proxy to _target
    
    * Define respond_to_missing? to properly expose method visibility, since we are defining method_missing
    
    * forward all arguments
    
    * mark private
    
    * reinstate send
    
    * document the situation
    
    * remove respond_to_missing? from undefinitions
    
    Co-authored-by: Esteban Pastorino <ejpastorino@gmail.com>
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    3 people authored Nov 13, 2020
    Copy the full SHA
    3dad3d2 View commit details
  2. Fix MONGOID-5013 Re-associating identical object destroys itself for …

    …dependent: :destroy (#4913)
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Nov 13, 2020
    Copy the full SHA
    71abc95 View commit details

Commits on Nov 16, 2020

  1. Copy the full SHA
    b4fa616 View commit details

Commits on Nov 17, 2020

  1. Fix MONGOID-5020 Condition lifting breaks with symbol operators on Ru…

    …by <= 2.6 (#4915)
    
    * MONGOID-5020 test cases for operators with symbols
    
    * MONGOID-5020 convert hashes to indifferent access prior to query manipulation
    
    * MONGOID-5020 queries are now more uniform
    
    * MONGOID-5020 combine with $eq when conditions are given in the same argument
    
    * MONGOID-5020 test all matrix of string/symbol operator types
    
    * fix straggler test
    
    * document the situation
    
    * document $eq lifting
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Nov 17, 2020
    Copy the full SHA
    5545c17 View commit details
  2. Update shared spec code (#4919)

    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Nov 17, 2020
    Copy the full SHA
    d8ef286 View commit details

Commits on Nov 18, 2020

  1. Copy the full SHA
    3839fc4 View commit details
  2. Copy the full SHA
    6800f70 View commit details

Commits on Nov 19, 2020

  1. Link to demo applications source code (#4920)

    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Nov 19, 2020
    Copy the full SHA
    88ecbdf View commit details
  2. MONGOID-5023 Expand all conditions in a single argument together in `…

    …where` path (#4918)
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Nov 19, 2020
    Copy the full SHA
    213a70f View commit details

Commits on Nov 23, 2020

  1. Copy the full SHA
    fb4c8d4 View commit details

Commits on Nov 24, 2020

  1. MONGOID-4706 Remove Targets module (#4924)

    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Nov 24, 2020
    Copy the full SHA
    92ad127 View commit details
  2. RUBY-2417 use shared cluster config (#4925)

    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Nov 24, 2020
    Copy the full SHA
    a82468f View commit details
  3. Redo headings in test suite readme

    p committed Nov 24, 2020
    Copy the full SHA
    dd92fd5 View commit details
  4. Copy the full SHA
    fcda741 View commit details
  5. MONGOID-4906 Implement $type (#4923)

    * separated type
    
    * added all tests except for Date and Decimal128
    
    * fixed decimal128 and date
    
    * checking evergreen results
    
    * added min server versions
    
    * added min server version for decimal, too large/negative, and array argument
    
    * code review feedback
    
    * add trailing comma
    
    * separate $type tests by type
    
    * simplify array test
    
    * expand boolean tests
    
    * expand code and code with scope tests
    
    * expand decimal coverage
    
    * simplify double tests
    
    * allow Ruby integers to satisfy int32 matcher
    
    * allow Ruby integers to satisfy int64 matcher
    
    * fix null $type when field does not exist
    
    * expand tests
    
    * expand tests
    
    * simplify string test
    
    * expand symbol coverage
    
    * add a timestamp test case
    
    * expand regexp test coverage
    
    * support multiple array elements in $type
    
    * flip the files
    
    * added release notes
    
    * fixing release notes
    
    * fixing release notes
    
    * fixing release notes
    
    * fixing release notes
    
    * fixing release notes
    
    * fixing release notes
    
    * added list of deviations
    
    * add missing server version constraint
    
    * fix newlines
    
    * specify which operators were added
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    ksadoff and p authored Nov 24, 2020
    Copy the full SHA
    50a6108 View commit details
  6. MONGOID-4906 move release notes to 7.3

    p committed Nov 24, 2020
    Copy the full SHA
    c746740 View commit details

Commits on Nov 25, 2020

  1. MONGOID-5018 test cases (#4914)

    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Nov 25, 2020
    Copy the full SHA
    39df7c8 View commit details
  2. Fail builds when git checkouts fail, per EVG-7968 (#4926)

    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Nov 25, 2020
    Copy the full SHA
    6fb5b1f View commit details

Commits on Nov 28, 2020

  1. Update shared tooling ref (#4928)

    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Nov 28, 2020
    Copy the full SHA
    f4c407c View commit details

Commits on Nov 30, 2020

  1. MONGOID-4753 Make global Boolean definition opt-in (#4927)

    * MONGOID-4753 Make global Boolean definition opt-in
    
    * Add a note about restoring global Boolean
    
    * fix tests
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Nov 30, 2020
    Copy the full SHA
    a080c06 View commit details
  2. MONGOID-4812 Allow id to be a regular field in models (not an alias o…

    …f _id) (#4929)
    
    * unalias id/_id
    
    * remove other traces of aliasing
    
    * keep aliased fields
    
    * create a method to unalias an attribute
    
    * remove whitespace
    
    * make #only more straightforward & efficient
    
    * extract Criteria#only tests in their own file
    
    * verify only works correctly when id is unaliased
    
    * note that aliases are not included
    
    * rename the test because I will add without to it
    
    * move #without tests to projection
    
    * fix #without when id is unaliased
    
    * test cases for using #without when id is unaliased
    
    * Document #without
    
    * Note that id cannot be omitted via without
    
    * basic integration test
    
    * clean up
    
    * add docstring
    
    * remove extra whitespace
    
    * add tutorial documentation
    
    * use _id instead of id everywhere in the codebase
    
    * add an upgrading note
    
    * fix cloning
    
    * fix nested_one association
    
    Co-authored-by: Emily Giurleo <e.m.giurleo@gmail.com>
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    3 people authored Nov 30, 2020
    Copy the full SHA
    802277e View commit details

Commits on Dec 1, 2020

  1. Copy release tooling from driver + extra dependencies + move rspec to…

    … development & test environments (#4930)
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Dec 1, 2020
    Copy the full SHA
    2d4d924 View commit details

Commits on Dec 2, 2020

  1. MONGOID-4923 add an additional resources page to the docs (#4838)

    * add an additional resources page to the docs
    
    create the additional resources page proposed in https://jira.mongodb.org/browse/MONGOID-4923
    
    * move additional resources page into reference folder
    
    * add mongoid conversion article
    
    * Remove unused anchor
    
    * Match other pages for toc style
    
    * Move the page to tutorials and link to it
    
    * Revise the intro language
    
    * Move additional resources to top level
    
    * separate out ecosystem
    
    * remove the 10 minute guide
    
    * terminate all sentences with periods
    
    * fix CarrierWave spelling
    
    * wording tweak
    
    * remove mongoid_taggable since it does not appear to be usable with current Mongoid versions
    
    * separate extension and integration libraries
    
    * add mongoid_fulltext
    
    * add RailsAdmin
    
    * link to driver resources
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    ibraheemdev and p authored Dec 2, 2020
    Copy the full SHA
    fba955b View commit details
  2. MONGOID-5019 Document omitting _id field from embedded documents (#4931)

    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Dec 2, 2020
    Copy the full SHA
    9a107d0 View commit details

Commits on Dec 7, 2020

  1. MONGOID-5019 note that _id is only assigned for top-level documents (#…

    …4933)
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Dec 7, 2020
    Copy the full SHA
    030aded View commit details

Commits on Dec 14, 2020

  1. Fix MONGOID-4982 Cannot update a field on embedded association member…

    …, add another member and add a nested association to the first member in the same save call (#4934)
    
    * Fix MONGOID-4982 "conflicts within conflicts" issue
    
    * revert removed test code
    
    * fix the test
    
    * adjust line length
    
    * tweak the comment prose
    
    * note future work
    
    Co-authored-by: shields <shields@tablecheck.com>
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    3 people authored Dec 14, 2020
    Copy the full SHA
    06d17ca View commit details

Commits on Dec 19, 2020

  1. Bump version to 7.3.0.alpha

    p committed Dec 19, 2020
    Copy the full SHA
    95c8fe5 View commit details

Commits on Dec 22, 2020

  1. MONGOID-5027 Rails 6.1 support (#4938)

    * Update mongoid.gemspec
    
    Hi,
    I use rails 6.1 and mongoid and i get error when i run bundle. So i update the dependency to activemodel <= 6.1 .
    
    * allow everything less than 6.2
    
    * test on Rails 6.1 and 6.0
    
    * Update halted_callback_hook to take the name argument added in Rails 6.1.
    
    See Rails commit 06dd162fb3ae67f202a0a59da1ce94317d0a3e22
    
    * MONGOID-4731 use Errors#copy! to properly copy errors for Rails 6.1 (and also earlier versions)
    
    * update compat tables for Rails 6.1
    
    * bundle exec rake
    
    Co-authored-by: Francel <francel.webdev@gmail.com>
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    3 people authored Dec 22, 2020
    Copy the full SHA
    07c544a View commit details
  2. Fix MONGOID-5033 Cannot use any_of with multiple conditions when usin…

    …g symbol operators on Time fields and passing Date instances (#4936)
    
    * Fix MONGOID-5033 Cannot use any_of with multiple conditions when using symbol operators on Time fields and passing Date instances
    
    * Update docs/tutorials/mongoid-queries.txt
    
    Co-authored-by: Andreas Braun <alcaeus@users.noreply.github.com>
    
    * Update docs/tutorials/mongoid-queries.txt
    
    Co-authored-by: Andreas Braun <alcaeus@users.noreply.github.com>
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    Co-authored-by: Andreas Braun <alcaeus@users.noreply.github.com>
    3 people authored Dec 22, 2020
    Copy the full SHA
    988386f View commit details
  3. Test cases for MONGOID-4476 Writes in callbacks of nested embedded do…

    …cuments are not persisted when top-level document is modified via update_attributes (#4937)
    
    * MONGOID-4476 test cases
    
    * MONGOID-4476 update test
    
    * MONGOID-4476 test update_attributes
    
    * MONGOID-4476 grammar fix
    
    * MONGOID-4476 mark failing tests pending
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Dec 22, 2020
    Copy the full SHA
    3c6bdac View commit details

Commits on Jan 8, 2021

  1. Use shared shell functions in mrss (#4945)

    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Jan 8, 2021
    Copy the full SHA
    4525b2d View commit details
  2. MONGOID-5040 Revert Document#to_ary to be a private method (#4940)

    * Revert Document#to_ary to be a private method
    
    * Add specs for 7.2.0 #to_ary behavior
    
    Co-authored-by: shields <shields@tablecheck.com>
    johnnyshields and johnnyshields authored Jan 8, 2021
    Copy the full SHA
    757e521 View commit details
  3. Fix MONGOID-5035 Query embedded documents by date field with $gt/gte/…

    …lt/lte does not find existing documents (#4942)
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Jan 8, 2021
    Copy the full SHA
    35c48e5 View commit details
  4. Test cases for MONGOID-5039 Multiple polymorphic embeds cause wrong a…

    …ssociation to be assigned (#4939)
    
    * Reproduction of multiple polymorphic embed bug
    
    * Improve specs
    
    * Remove autobuild; fix other spec
    
    * place each model into its own file
    
    * tweak test formatting
    
    * mark tests pending
    
    Co-authored-by: shields <shields@tablecheck.com>
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    3 people authored Jan 8, 2021
    Copy the full SHA
    d1c926d View commit details

Commits on Jan 9, 2021

  1. MONGOID-5032 expand test coverage for projection with hash fields (#4947

    )
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Jan 9, 2021
    Copy the full SHA
    976fb07 View commit details

Commits on Jan 10, 2021

  1. RUBY-2488 use Ruby 3 toolchain (#4946)

    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Jan 10, 2021
    Copy the full SHA
    c67c944 View commit details

Commits on Jan 15, 2021

  1. Copy the full SHA
    40107a4 View commit details
  2. MONGOID-5025 Document caveats of embedded documents without _id field (

    …#4948)
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Jan 15, 2021
    Copy the full SHA
    0253610 View commit details
  3. MONGOID-5031 Document the need to preload child classes when using di…

    …scriminator value override (#4950)
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Jan 15, 2021
    Copy the full SHA
    d68b9cc View commit details

Commits on Jan 18, 2021

  1. MONGOID-4962 Clarify storage of referenced associations (#4949)

    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Jan 18, 2021
    Copy the full SHA
    11602b2 View commit details

Commits on Jan 28, 2021

  1. use https protocol for spec/shared submodule (#4954)

    * use https protocol for spec/shared submodule
    
    fixes inability of users to update submodules when they do not have an SSH key configured for GitHub
    
    * update spec/shared to current master
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    awesome and p authored Jan 28, 2021
    Copy the full SHA
    df6b216 View commit details

Commits on Feb 11, 2021

  1. Integrate docker tooling with Mongoid

     (#4955)
    
    * Update spec/shared
    
    * Integrate docker tooling with Mongoid
    
    * remove mongo-orchestration
    
    * remove --server flag since jruby claims it is useless
    
    * update distro names
    
    * remove redundant configuration
    
    * set MONGODB_URI
    
    * run old servers on 14.04
    
    * switch more to ubuntu1404
    
    * separate ubuntu1404 and ubuntu1604 configurations
    
    * respect TEST_CMD for docker
    
    * Use ubuntu1604 for app tests to get a newer nodejs runtime
    
    * Install nodejs for Mongoid app tests
    
    * ubuntu1604 is still too old, try ubuntu1804
    
    * use headless jres
    
    * only install Mongoid app testing bits on ubuntu1804
    
    * apt update & install in the same command
    
    * respect INTERACTIVE env var for docker
    
    * fix uri options addition
    
    * construct URI for app tests more intelligently
    
    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Feb 11, 2021
    Copy the full SHA
    ff8fefa View commit details

Commits on Feb 23, 2021

  1. Add ruby-debug for debugging in JRuby (#4956)

    Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
    p-mongo and p authored Feb 23, 2021
    Copy the full SHA
    4aab6ea View commit details
Showing 1,163 changed files with 62,322 additions and 33,979 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/.git
/yard-docs
Gemfile.lock
gemfiles/*.lock
.env.private*
/tmp
2 changes: 2 additions & 0 deletions .evergreen/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/Dockerfile

Loading