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

Introduce GoldContainer data value #39

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

MatheusRich
Copy link
Contributor

@MatheusRich MatheusRich commented Oct 6, 2023

A GoldContainer wraps gold nuggets, and has some metadata about them (origin and date of packing).

There was a hidden dependency between the explorer and the blog post date (both using Helpers::Time.last_friday), but now their relation is explicit.

@MatheusRich MatheusRich changed the title Introduce Container data value Introduce GoldContainer data value Oct 6, 2023
@@ -16,11 +16,11 @@ def mine_in(slack_channel, slack_client: GoldMiner::Slack::Client, env_file: ".e
.fmap { |client| explore(slack_channel, client) }
end

def convert_messages_to_blogpost(channel, gold_nuggets, blog_post_builder: GoldMiner::BlogPost)
def convert_messages_to_blogpost(channel, container, blog_post_builder: GoldMiner::BlogPost)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know the method name still says "messages", but I'll get rid of it soon.

A `GoldContainer` wraps gold nuggets, and has some metadata about them (origin
and date of packing).

There was a hidden dependency between the explorer and the blog post date
(both using `Helpers::Time.last_friday`), but now their relation is explicit.
@MatheusRich MatheusRich merged commit 4d21ea7 into main Oct 9, 2023
3 checks passed
@MatheusRich MatheusRich deleted the mr/introduce-container-class branch October 9, 2023 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants