-
Notifications
You must be signed in to change notification settings - Fork 210
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
base: main
Are you sure you want to change the base?
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 :) |
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.
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. |
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.
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-reviewers
for help, in a comment belowIf 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!