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

Change the semantics to have the classes that inherit from Noticed::Base called Notifiers #99

Conversation

fractaledmind
Copy link

@excid3: I manually went thru every single file to try my best to not change any reference to the database Notification class, but of course this should have a thorough set of second eyes. As you said in the issue, this is a breaking change so I bumped the version to 2.0.0. This also had the follow on effect of having the Rails version in the Gemfile.lock bumped as well to 6.1.3

resolves #98

@fractaledmind
Copy link
Author

fractaledmind commented Mar 12, 2021

I am going to revert the Gemfile.lock change, as that seems to be the issue with the Actions

@excid3
Copy link
Owner

excid3 commented Mar 13, 2021

This will be a big one! I definitely think it will help with the wording.

I think if you drop the Gemfile.lock and version changes, that will help doing a merge. 👍

@excid3 excid3 added the enhancement New feature or request label Mar 13, 2021
@fractaledmind
Copy link
Author

@excid3: Yep, got ahead of myself. Reverted those changes, merged in the most recent pushes to master and now everything is green

@shamangeorge
Copy link

Hi! Any idea when this will be merged?

@fractaledmind
Copy link
Author

@excid3: Resolved conflicts with master.

@nitsujri
Copy link

Oh man, I like this change a lot.

It semantically/mentally decouples the AR model from the "handlers".

I just started using this gem and based on the current semantics I thought the CommentNotification should have been a single table inheritance from Notifications esp since it uses the type column (clearly it's not STI, but initial reading...).

Felt like I should be able to do CommentNotification.where(recipient: user) to easily get back a specific type of notification and was surprised I couldn't.

@ghost ghost mentioned this pull request Jan 6, 2022
@excid3
Copy link
Owner

excid3 commented Jan 14, 2022

Planning to get to this one soon!

Been holding off on it because I knew it would be a major release and require users to update their code.

@fractaledmind
Copy link
Author

All good. I figured. Let me know if/when you want me to update the PR with head of main

@excid3
Copy link
Owner

excid3 commented Jan 15, 2022

If you want to, that would be great. I'm ready to go through with this. 👍

# Conflicts:
#	lib/noticed/delivery_methods/base.rb
#	lib/noticed/delivery_methods/email.rb
#	test/noticed_test.rb
@fractaledmind
Copy link
Author

@excid3: Updated against head of master

@excid3
Copy link
Owner

excid3 commented Jan 15, 2024

I rolled this into v2. 🎉

@excid3 excid3 closed this Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terminology Question/Suggestion
4 participants