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

Extract enhancer jobs to a speaker associated object #466

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

adrienpoly
Copy link
Owner

I like quite a lot the associated object pattern combined with the performs gem.

This is a WIP that extract the Bsky enhancer job to an Speaker::ProfileEnhancer associated object

I personnaly like how we can :

  1. remove the job files
  2. quickly define methods that can be both called synchronously or asynchronously
  3. get a much nicer API (IMHO) speaker.profile_enhancer.enhance_all_later!

not tested yet and the Github part is missing just for now a POC to see how it could look like

@adrienpoly adrienpoly marked this pull request as draft November 28, 2024 23:20
Copy link
Collaborator

@marcoroth marcoroth left a comment

Choose a reason for hiding this comment

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

Yes, this is great! I like the two gems as well and think this is a great way to refactor this 🙌🏼

When you port over the GitHub enhancement job, I think we should remove the search_github_profile method, or at least update it so it only uses the matching profile if it found exactly one.

@kaspth
Copy link

kaspth commented Nov 29, 2024

Hell yes, thanks for using these! ❤️

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.

3 participants