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

Only recommend published jobs #2

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

niuage
Copy link
Member

@niuage niuage commented Dec 9, 2016

No description provided.

@niuage
Copy link
Member Author

niuage commented Dec 9, 2016

1 similar comment
@niuage
Copy link
Member Author

niuage commented Dec 9, 2016

@@ -1,10 +1,10 @@
class RecommendationConsumer
include Hutch::Consumer

consume "copro.recommendations.*"
consume "copro.recommendations.*.*"
Copy link

Choose a reason for hiding this comment

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

curious to know what's the difference between consume "copro.recommendations.*" and consume "copro.recommendations.*.*"

Copy link
Member Author

Choose a reason for hiding this comment

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

It's misleading. It doesnt work like a real regexp. copro.recommendations.* matches copro.recommendations.lol, but not copro.recommendations.lol.kikou.

Choose a reason for hiding this comment

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

* works as a wildcard, not as quantifier

# should be obvious
lonely_job = Job.create(uid: 5, dev_type: 2)
lonely_job = create(:job, uid: 5, dev_type: 2)
Copy link

Choose a reason for hiding this comment

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

☹️

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