Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated Mongoid to v. 6 #231

Closed
wants to merge 6 commits into from
Closed

Conversation

moodlemags
Copy link

No description provided.

@@ -1,5 +1,6 @@
## 5.3.1 (Next)

* Upgraded mongoid to 6.0.0 - [@moodlemags](https://github.com/moodlemags).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this to [#231](...): Compatibility with Mongoid 6 - [...]().

@dblock
Copy link
Collaborator

dblock commented Sep 22, 2016

Looks good. Amend the changelog with the pull request number please and try to squash your commits (good exercise).

@dblock
Copy link
Collaborator

dblock commented Sep 22, 2016

Code looks good, but you still need to add mongoid 6 to https://github.com/mongoid/mongoid-slug/blob/master/.travis.yml, which is the CI so it actually runs tests against 6.0.

@dblock
Copy link
Collaborator

dblock commented Oct 12, 2016

Bump @moodlemags. See my comment above.

@dblock
Copy link
Collaborator

dblock commented Oct 12, 2016

Squash your commits as well to make this a single commit with a nice the description.

@Fudoshiki
Copy link
Contributor

Hi, @dblock you can squash PR commits on accepting it with squash commits option

@dblock
Copy link
Collaborator

dblock commented Oct 14, 2016

@Fudoshiki Thanks. I was helping @moodlemags IRL make her first (second) open-source PR, while github lets you squash commits it's good practice.

Anyone wants to finish this?

@moodlemags
Copy link
Author

@dblock Oh my gosh! I got so focused on the other one this one slipped past. I am on it!

@moodlemags
Copy link
Author

@dblock umm so I seem to have accidentally rebased everything and have been trying to undo it and cannot. Is it possible? I'm considering making just a new branch and doing from that. Eek!

@dblock
Copy link
Collaborator

dblock commented Oct 17, 2016

New branch can work too, feel free to close this and reopen a new PR. Or you can force push over your other branch.

@dblock
Copy link
Collaborator

dblock commented Oct 18, 2016

Alright! Now the build is failing for a legit reason, see https://travis-ci.org/mongoid/mongoid-slug/jobs/168612055.

@moodlemags
Copy link
Author

it is sneaky! I have found where just figuring out the how to fix now

@dblock
Copy link
Collaborator

dblock commented Oct 23, 2016

It's probably missing the paranoia gem for mongoid 6. It used to be part of mongoid and was moved into being an external dependency around version 4.

when 'HEAD'
gem 'mongoid', github: 'mongodb/mongoid'
gem 'mongoid_paranoia', github: 'simi/mongoid_paranoia'
gem 'mongoid-observers'
gem 'rails-observers', github: 'rails/rails-observers'
when /^6/
gem 'mongoid', '~> 6.0.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add this here

gem 'mongoid_paranoia', github: 'simi/mongoid_paranoia'
gem 'mongoid-observers'
gem 'rails-observers', github: 'rails/rails-observers'

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Fudoshiki feel free to finish this up in a separate PR!

@marceloboeira
Copy link

marceloboeira commented Jan 4, 2017

Thanks for the nice work everyone!

What is missing to support mongoid 6 ?

@dblock
Copy link
Collaborator

dblock commented Jan 4, 2017

@marceloboeira Just a passing build here! Feel free to take over.

@dblock
Copy link
Collaborator

dblock commented Jan 4, 2017

Ignore me, just taking this over, #234.

@dblock dblock closed this Jan 4, 2017
@dblock
Copy link
Collaborator

dblock commented Jan 4, 2017

@marceloboeira notice that the gem as released works, there were no code changes

@marceloboeira
Copy link

@dblock yeap, I am using here, but I will sleep better knowing that the build is green for mongoid 6.x 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants