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
Remove legacy trails #1221
Remove legacy trails #1221
Conversation
e719f9d
to
b15721b
Compare
Still having a styling issue around colors. |
Ready for review. |
3248548
to
c494d91
Compare
@@ -1,4 +1,4 @@ | |||
body.resources-index { | |||
body.topics.topics-show { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid qualifying class selectors with an element.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ldamon Can you address the comment above por favor?
cb4621c
to
dbb2722
Compare
Once upon a time, Upcase had these things called trails. They broke down a topic into a series of steps that could be completed. They also linked to resources (made by thoughtbot and not) that would help you learn a topic. We liked these trails, but the only way to indicate you'd learned something was to click a checkbox on a given step. Later, we created our exercise system. After creating a handful of unrelated exercises, we decided it would be better to create groups of exercises to be completed in a given sequence. We decided to call this grouping and sequencing a trail and renamed the old trail concept legacy trails. Having two things called "trail" at the same time was confusing, and the legacy trails were the source of much criticism ("these are mostly links to things outside Upcase!") We didn't like the code. Users were confused and annoyed. Bad times. This commit removes LegacyTrails and their associated baggage. Now, "trail" means exactly one thing. All is ✨ and 😂.
dbb2722
to
8eb7b70
Compare
@@ -73,7 +73,7 @@ def included_in_current_users_plan?(licenseable) | |||
helper_method :included_in_current_users_plan? | |||
|
|||
def topics | |||
Topic.top | |||
Topic.all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% sure, but I think this should be explorable
. If not, I think explorable
can be removed entirely.
5405cb0
to
bcdfc53
Compare
This column isn't accurate and is actually unused (counts for a topic's resources are calculated in TopicWithResources).
bcdfc53
to
6c0d60a
Compare
This is necessary because we're calling `#count` on them. This used to work, probably accidentally, because there was a `count` column on Topic. Now, we want to use the `#count` method on TopicWithResource, so we need to decorate.
Once upon a time, Upcase had these things called trails.
They broke down a topic into a series of steps that could be completed.
They also linked to resources (made by thoughtbot and not) that would
help you learn a topic.
We liked these trails, but the only way to indicate you'd learned
something was to click a checkbox on a given step.
Later, we created our exercise system. After creating a handful of
unrelated exercises, we decided it would be better to create groups of
exercises to be completed in a given sequence.
We decided to call this grouping and sequencing a trail and renamed the
old trail concept legacy trails.
Having two things called "trail" at the same time was confusing, and the
legacy trails were the source of much criticism ("these are mostly links
to things outside Upcase!") We didn't like the code. Users were confused
and annoyed. Bad times.
This commit removes LegacyTrails and their associated baggage.
Now, "trail" means exactly one thing.
All is ✨ and 😂.