Fix error in replaceImage function#1625
Fix error in replaceImage function#1625rishabhshuklax wants to merge 4 commits intopubliclab:mainfrom
Conversation
Codecov Report
@@ 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
|
|
@publiclab/is-reviewers @jywarren @harshkhandeparkar please review this :) |
jywarren
left a comment
There was a problem hiding this comment.
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!
|
It's been a long time, i don't remember the exact context -- but, throwaway
sequencers shouldn't in theory be a problem. If it is well tested and you
can come up with a solution that is more efficient, i'd be happy to take a
look! Thanks!
…On Sat, Oct 17, 2020 at 12:00 PM Harsh Khandeparkar < ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/ReplaceImage.js
<#1625 (comment)>
:
> @@ -41,15 +40,21 @@ function ReplaceImage(ref, selector, steps, options) {
else make(url);
function make(url) {
+
+ var tempSequencer = ImageSequencer({ui: false});
Hmm, is it required?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1625 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6JYAR23ZGIULQIKG4RDSLG5R7ANCNFSM4KUDCEHA>
.
|
|
I don't like internal sequencers because they do extra work such as converting the data URIs for no reason. |
|
These internal sequencers are everywhere and do not concern this PR. Approving but I feel we should really replace internal sequencer some time. |
harshkhandeparkar
left a comment
There was a problem hiding this comment.
Oh but it still needs a test!
|
/rebase |
1 similar comment
|
/rebase |
Fixes #1098
Fixes #147
Fixes #1030
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
npm run test-all@publiclab/is-reviewersfor help, in a comment belowIf tests do fail, click on the red
Xto 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!