Skip to content

Refactoring sendFetch.jsx removes code duplication#4157

Merged
benhalpern merged 2 commits intoforem:masterfrom
Aswathprabhu:refactor/refactoring_sendfetchjsx_remove_duplication
Oct 1, 2019
Merged

Refactoring sendFetch.jsx removes code duplication#4157
benhalpern merged 2 commits intoforem:masterfrom
Aswathprabhu:refactor/refactoring_sendfetchjsx_remove_duplication

Conversation

@Aswathprabhu
Copy link
Copy Markdown
Contributor

@Aswathprabhu Aswathprabhu commented Sep 30, 2019

Refactoring sendFetch.js, removes code duplication.

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

  • Refactor
  • Feature
  • Bug Fix
  • Documentation Update

Description

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

Added to documentation?

  • docs.dev.to
  • readme
  • no documentation needed

[optional] What gif best describes this PR or how it makes you feel?

alt_text

@pr-triage pr-triage Bot added the PR: unreviewed bot applied label for PR's with no review label Sep 30, 2019
@Aswathprabhu Aswathprabhu force-pushed the refactor/refactoring_sendfetchjsx_remove_duplication branch from a8d1f6d to a4dcb5c Compare October 1, 2019 08:40
Copy link
Copy Markdown
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.

Hi @Aswathprabhu, thanks a lot of the contribution.

I suggested a change in the function signature but overall it seems correct.

Since unfortunately we don't seem to have automatic tests for this side of the code, have you tested the various places where this function is used manually? Let me know if you need any help with that!

Comment thread app/assets/javascripts/utilities/sendFetch.js Outdated
@pr-triage pr-triage Bot added PR: reviewed-changes-requested bot applied label for PR's where reviewer requests changes and removed PR: unreviewed bot applied label for PR's with no review labels Oct 1, 2019
@Aswathprabhu Aswathprabhu force-pushed the refactor/refactoring_sendfetchjsx_remove_duplication branch from a4dcb5c to f8c9e1c Compare October 1, 2019 10:37
@pr-triage pr-triage Bot added PR: unreviewed bot applied label for PR's with no review and removed PR: reviewed-changes-requested bot applied label for PR's where reviewer requests changes labels Oct 1, 2019
@Aswathprabhu Aswathprabhu force-pushed the refactor/refactoring_sendfetchjsx_remove_duplication branch 2 times, most recently from d23ebf8 to a34236e Compare October 1, 2019 10:57
@rhymes
Copy link
Copy Markdown
Contributor

rhymes commented Oct 1, 2019

@Aswathprabhu just a note, if it's possible, unless you're rebasing from master, please don't force push after a review has been made, changes will be stashed on merge so there's no risk of polluting the commit history.

You can read about it in the contributing guide

@Aswathprabhu Aswathprabhu force-pushed the refactor/refactoring_sendfetchjsx_remove_duplication branch from a34236e to 07f8a34 Compare October 1, 2019 10:59
@Aswathprabhu
Copy link
Copy Markdown
Contributor Author

contributing guide

Sure @rhymes, didn't check that, will look into it 👍

@pr-triage pr-triage Bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Oct 1, 2019
@pr-triage pr-triage Bot added PR: unreviewed bot applied label for PR's with no review and removed PR: reviewed-approved bot applied label for PR's where reviewer approves changes labels Oct 1, 2019
@benhalpern benhalpern merged commit e0287a5 into forem:master Oct 1, 2019
@pr-triage pr-triage Bot added PR: merged bot applied label for PR's that are merged and removed PR: unreviewed bot applied label for PR's with no review labels Oct 1, 2019
redbassett pushed a commit to redbassett/dev.to that referenced this pull request Oct 3, 2019
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.

3 participants