Skip to content

Conversation

mstruve
Copy link
Contributor

@mstruve mstruve commented May 28, 2020

What type of PR is this? (check all applicable)

  • Optimization

Description

base_data in our AsyncInfo Controller is above and beyond our most hit route(see purple line on the graph below) so it should be as lean and mean as possible. I noticed that we were using two calls and different methods to return tags and their names when one would suffice. I removed the tag names and added a little snippet so our javascript can parse them out itself.

Screen Shot 2020-05-28 at 7 05 54 PM

CodeClimate is not a fan of removing code. It can be ignored in this case.

Added tests?

  • no, because they aren't needed, no behavior change so as long as current tests pass we should be good and I checked we do have tests for this javascript.

alt_text

@pr-triage pr-triage bot added the PR: draft bot applied label for PR's that are a work in progress label May 28, 2020
@mstruve mstruve marked this pull request as ready for review May 29, 2020 00:09
@pr-triage pr-triage bot added PR: unreviewed bot applied label for PR's with no review and removed PR: draft bot applied label for PR's that are a work in progress labels May 29, 2020
@mstruve mstruve changed the title Remove cached_followed_tag_names From Async User Data Optimization: Remove cached_followed_tag_names From Async User Data May 29, 2020
Copy link
Contributor

@nickytonline nickytonline left a comment

Choose a reason for hiding this comment

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

Tested this locally. LGTM!

@pr-triage pr-triage bot added PR: partially-approved bot applied label for PR's where a single reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels May 29, 2020
Copy link
Contributor

@rhymes rhymes left a comment

Choose a reason for hiding this comment

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

Yes!

@benhalpern benhalpern merged commit 15d2dd0 into master May 29, 2020
@benhalpern benhalpern deleted the mstruve/base-data-user branch May 29, 2020 14:24
@pr-triage pr-triage bot added PR: merged bot applied label for PR's that are merged and removed PR: partially-approved bot applied label for PR's where a single reviewer approves changes labels May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: merged bot applied label for PR's that are merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants