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

Fix error in replaceImage function #1625

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

rishabhshuklax
Copy link
Member

@rishabhshuklax rishabhshuklax commented Feb 12, 2020

Fixes #1098
Fixes #147
Fixes #1030

Screenshot from 2020-02-13 01-20-35

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with npm run test-all
  • code is in uniquely-named feature branch and has no merge conflicts
  • PR is descriptively titled
  • ask @publiclab/is-reviewers for help, in a comment below
  • Insert-step functionality is working correct as expected.

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Please make sure to get at least two reviews before asking for merging the PR as that would make the PR more reliable on our part
Thanks!

@codecov
Copy link

codecov bot commented Feb 12, 2020

Codecov Report

Merging #1625 (8eb00b5) into main (853e719) will decrease coverage by 1.26%.
The diff coverage is 12.90%.

❗ Current head 8eb00b5 differs from pull request most recent head 82f7068. Consider uploading reports for the commit 82f7068 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1625      +/-   ##
==========================================
- Coverage   66.67%   65.41%   -1.27%     
==========================================
  Files         130      132       +2     
  Lines        2686     2741      +55     
  Branches      433      438       +5     
==========================================
+ Hits         1791     1793       +2     
- Misses        895      948      +53     
Impacted Files Coverage Δ
src/Modules.js 100.00% <ø> (ø)
src/modules/EdgeDetect/Module.js 100.00% <ø> (ø)
src/modules/WebglDistort/Module.js 2.29% <0.00%> (ø)
src/modules/ColorHalftone/Module.js 3.63% <3.63%> (ø)
src/modules/ColorHalftone/index.js 100.00% <100.00%> (ø)
src/modules/EdgeDetect/EdgeUtils.js 86.81% <100.00%> (-0.15%) ⬇️

@rishabhshuklax
Copy link
Member Author

@publiclab/is-reviewers @jywarren @harshkhandeparkar please review this :)

@gitpod-io
Copy link

gitpod-io bot commented Jul 12, 2020

Copy link
Member

@jywarren jywarren left a comment

Choose a reason for hiding this comment

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

Hi, do you think we could add a test to confirm that this behaves as we expect? That'll help me do a good review. No rush at all -- apologies for the slow process here but this will help me assess the fix better! Thank you!

@jywarren
Copy link
Member

jywarren commented Oct 17, 2020 via email

@harshkhandeparkar
Copy link
Member

I don't like internal sequencers because they do extra work such as converting the data URIs for no reason.
Instead of:
New img URI -> pixels -> changed pixels -> new uri -> pixels
We should have:
New img URI -> pixels -> changed pixels -> use these

@jywarren jywarren added this to the v3.7.0 milestone Oct 28, 2020
@harshkhandeparkar harshkhandeparkar removed this from the v3.7.0 milestone Nov 2, 2020
@harshkhandeparkar
Copy link
Member

These internal sequencers are everywhere and do not concern this PR. Approving but I feel we should really replace internal sequencer some time.

@harshkhandeparkar harshkhandeparkar requested a review from a team as a code owner January 6, 2021 18:48
Copy link
Member

@harshkhandeparkar harshkhandeparkar left a comment

Choose a reason for hiding this comment

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

Oh but it still needs a test!

@jywarren
Copy link
Member

/rebase

1 similar comment
@jywarren
Copy link
Member

/rebase

@gitpod-io
Copy link

gitpod-io bot commented Oct 27, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants