-
Notifications
You must be signed in to change notification settings - Fork 282
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
Update L.DistortableImageOverlay syntax in remaining tests #198
Comments
@sashadev-sky heyy, Can I take this or it would be better for a new comer? |
@Priyak5 typically would say leave it for a newcomer but I know you were a little confused about the Git workflow the first time around so I think you can do another FTO :) But, don’t start it yet!! I’m gonna change it up to maybe add some sort of educational git challenge. @gauravano I might message you for ideas. I’ll ping you when it’s ready :) |
Ok @Priyak5 here are your instructions: Just do #1 from above first!
Do #2, #3, #4 as you would regularly. Any questions?? @gauravano feel free to add anything here! (gauravano knows all the git tricks) |
@sashadev-sky Okay. On it. |
@sashadev-sky in step 3 it says fixing it remotely, what does it mean? When I go to file changed and fix my mistake, I have 2 options either to commit or create a new PR. What should be done after that ? |
@Priyak5 no you had the right idea!! Re-open that PR! You fix the mistake remotely, and then can commit it to that branch just like if you were doing it from your terminal. After that, you just need to pull the changes back to your terminal, because your local repo doesn't know that you just made this commit. You need to send the commit to it so it's up to date, so you wont have conflicts the next time you push. Makes sense? DW! Not a silly doubt I still get confused all the time 😅it gets a lot easier the more you keep doing it and seeing what works |
I surely don't know all 😅, but know enough to do my tasks. I still mess up many times but yes @sashadev-sky this 👇
is apt!
It will overwrite only if we do force push i.e., use Thanks! |
@gauravano I guess were all living on the edge with force pushes! |
Hi, @Priyak5! just checking if you've gotten stuck on this at all, or if I could help in any way? Thanks! |
@sashadev-sky sorry for the late reply! My laptop stopped working, just got it back. Ill complete this today. Sorry again |
@Priyak5 thank you for the update! Let me know if you need anything |
@Priyak5 Hi! We have some requests for FTOs so I am going to re-assign this since you haven't taken action on it in a while and you have also done an FTO before. Sorry for any inconvenience! Please check out the help wanted issues on this repo there is a lot to do :) |
Re-assigning to @UNnamed66 |
Gotcha, I'll work on it! |
@sashadev-sky Please review, thanks. |
First Time?
This is a first-timers-only issue. This means we've worked to make it more legible to folks who either haven't contributed to our codebase before, or even folks who haven't contributed to open source before.
If that's you, we're interested in helping you take the first step and can answer questions and help you out as you do. Note that we're especially interested in contributions from people from groups underrepresented in free and open source software!
We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you 💝
If you have contributed before, consider leaving this one for someone new, and looking through our general help wanted issues. Thanks!
🤔 What you will need to know.
Nothing. This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.
The problem
What's supposed to happen:
From the official Leaflet docs:
We have recently added a factory method to the
L.DistortableImageOverlay
class and updated our code to initialize new instances of this class using it:Leaflet.DistortableImage/src/DistortableImageOverlay.js
Lines 279 to 281 in feae160
Since testing is a form of documentation in addition to a way of ensuring stable functionality, we want to keep our tests consistent with our code syntax. We'll need to update our test files.
Solution
Where to find the relevant lines of code:
Remove the
new
keyword and changeL.DistortableImageOverlay
toL.distortableImageOverlay
in the following code blocks:Leaflet.DistortableImage/test/src/edit/DistortableImageEditSpec.js
Lines 8 to 15 in ddf2125
Leaflet.DistortableImage/test/src/edit/RotateAndScaleHandleSpec.js
Lines 8 to 15 in ddf2125
Leaflet.DistortableImage/test/src/edit/RotateHandleSpec.js
Lines 8 to 15 in ddf2125
Leaflet.DistortableImage/test/src/edit/ScaleHandleSpec.js
Lines 8 to 15 in ddf2125
Thanks!!
Step by Step
commit your changes to your branch and start a pull request (see contributing to Public Lab software) but mark it as "in progress" if you have questions or if you haven't finished
Please keep us updated
💬⏰ - We encourage contributors to be respectful to the community and provide an update within a week of claiming a first-timers-only issue. We're happy to keep it assigned to you as long as you need if you update us, but if we don't see any activity a week after you claim it we may reassign it to give someone else a chance. Thank you in advance!
If this happens to you, don't sweat it! Grab another open issue.
💬 Get help
If you need any help - here are some options:
The text was updated successfully, but these errors were encountered: