-
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.LatLng initialization syntax Pt.3 #250
Comments
assigned to @Prasanth-N! |
reassigned to @Esh08! Other user never took this up |
Hey, @sashadev-sky I feel like I've made a mistake with my branches, I wasn't able to make my own, so I chose leaflet-src-change. However I'm guessing, I'm supposed to commit changes to main? Please let me know x |
@Esh08 thanks for the PRs! So you opened 4 of them, #277 is merging to the wrong branch, but it looks like you figured out to commit to main in #278 #279 as these are correct. #275 is addressing a closed PR. The reason you are seeing the old code is because you were on the For the others, these would all be better under one PR / feature branch because they are resolving a single issue and not complex enough for splitting up. I think the github webflow only supports editing 1 file, although there are workarounds, so it'll probably be easier to resolve this from the command line. You can either: move the other changes to #279 (hard), redo them and push them to #279 (medium), or just open a new PR and redo all of them (easy). Feel free to resolve it however you'd like! |
Hey! I have changed all of them separately which was the easiest way.
However, I am still confused about why the changes of #278 and #279 weren't
reflected? May sound silly, however, I'd be grateful if you'd help me out
further. If I've made any mistakes, please let me know.
Also, I'd like to know, keeping this first issue aside, how I can improve
my skills with OSS. I'd appreciate it A LOT if you'd tell me how I can get
started further, which programming language is the most used, any courses
or reading materials and how I can further myself in this field.
Thanks a ton!
…On Thu, May 30, 2019 at 10:47 AM Sasha Boginsky ***@***.***> wrote:
@Esh08 <https://github.com/Esh08> thanks for the PRs! So you opened 4 of
them, #277
<#277> is
merging to the wrong branch, but it looks like you figured out to commit to
main in #278
<#278> #279
<#279> as these
are correct.
#275 <#275> is
addressing a closed PR. The reason you are seeing the old code is because
you were on the leaflet-src-change branch, which is 130 commits behind
main. So I have closed this PR.
For the others, these would all be better under one PR / feature branch
because they are resolving a single issue and not complex enough for
splitting up. I think the github webflow only supports editing 1 file,
although there are workarounds, so it'll probably be easier to resolve this
from the command line. You can either: move the other changes to #279
<#279> (hard),
redo them and push them to #279
<#279>
(medium), or just open a new PR and redo all of them (easy). Feel free to
resolve it however you'd like!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#250?email_source=notifications&email_token=ALOJRNUTHPCCPNWVUYKVNGTPX5PNPA5CNFSM4HLNQJ2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWRMFOA#issuecomment-497205944>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALOJRNUK3HWNM2MAOS6MFRDPX5PNPANCNFSM4HLNQJ2A>
.
|
@Esh08 Don't worry! I closed the PRs you opened and i'll explain
One of the benefits of always working on a feature branch is that you can commit changes and push them up, and while you're waiting for them to get reviewed you can open a new feature branch from If you keep opening new branches off Here are the steps for getting this done on the command line:
We can discuss OSS after! Let me know if you have more questions :) |
Hey! Sorry for the late reply. Just summarize once, The mistake I made was
to keep opening branches and make separate changes, when in fact, I should
keep making changes one by one as they merged. Hence, it ended up
duplicating the branches and PRs.
The steps which you have given me are to do the same.
I will try it once and let you know ASAP
Thanks :)
…On Thu, May 30, 2019 at 4:02 PM Sasha Boginsky ***@***.***> wrote:
@Esh08 <https://github.com/Esh08> Don't worry! I closed the PRs you
opened and i'll explain
main is where all the updated code is and when you are on the main branch
and create a new one (your own feature branch) that branch will have the
same code as in main.
One of the benefits of always working on a feature branch is that you can
commit changes and push them up, and while you're waiting for them to get
reviewed you can open a new feature branch from main that won't have
those unmerged changes. So you can build as many features as you want in
parallel that aren't dependent on eachother, and push them up as separate
PRs.
If you keep opening new branches off main for each change you make, you
are working from the clean slate each time. What you need to do instead is
make the changes on one branch, and keep committing and pushing to that
branch.
Here are the steps for getting this done on the command line:
1. Fork the main repo from the main page
https://github.com/publiclab/Leaflet.DistortableImage, otherwise
you'll only get anonymous credit
2. clone your forked version by clicking the "clone or download"
button - copy paste the url given and use the command $ git clone
<paste_url> locally
3. Follow the README instructions for any local setup
4. Make your changes on a new feature branch (create this with $ git
checkout -b <new_branch_name> and use $ git branch to make sure you
are on this branch)
5. $ git push origin <new_branch_name> to submit a pull request then
visit the main repo page on Github and you'll see a prompt to create your PR
We can discuss OSS after! Let me know if you have more questions :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#250?email_source=notifications&email_token=ALOJRNVYLIW4A4ALKU6CRTLPX6UKBA5CNFSM4HLNQJ2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWR7PPA#issuecomment-497285052>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALOJRNVTSQGPVKNEMQZIOT3PX6UKBANCNFSM4HLNQJ2A>
.
|
Yes open only one feature branch. fix all the files there. commit them. then push them up:
|
when we say "use command $ git clone <url>" locally, we mean on Git Bash
right? Or am I doing this wrong?
…On Sun, Jun 2, 2019 at 12:14 AM Sasha Boginsky ***@***.***> wrote:
Yes open only one feature branch. fix all the files there. commit them.
then push them up:
$ git push origin <branch_name>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#250?email_source=notifications&email_token=ALOJRNQID7UCN744GIFJPFTPYK7PNA5CNFSM4HLNQJ2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWXGLFQ#issuecomment-497968534>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALOJRNRXUJZK7WJQJAQXJNDPYK7PNANCNFSM4HLNQJ2A>
.
|
yes! this should clone the repository, then you can |
@Esh08 if you need any live help feel free to message me in our gitter chatroom, linked at the bottom of this PR description! |
Hey! I ran into some issues with it, I will discuss it ASAP in the gitter
chatroom. Thanks for being so patient and helping!
…On Thu, Jun 6, 2019 at 4:19 AM Sasha Boginsky ***@***.***> wrote:
@Esh08 <https://github.com/Esh08> if you need any live help feel free to
message me in our gitter chatroom, linked at the bottom of this PR
description!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#250?email_source=notifications&email_token=ALOJRNQPR7JLZHVJ6LORC23PZA7HRA5CNFSM4HLNQJ2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXBHTLA#issuecomment-499284396>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALOJRNUD2KCR5KWFHMSNVULPZA7HRANCNFSM4HLNQJ2A>
.
|
@Esh08 no problem mention me @sashadev-sky and lmk here when you do because it's very easy to miss github messages |
closed via #274 |
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
Same deal as part 1 (#248) and part 2 (#249):
What's supposed to happen:
From the official Leaflet docs:
What actually does happen:
We use Leaflet's built-in
L.LatLng
to initialize the starting positions of our images corners, but we don't take advantage of their suggested class factory syntax. Let's update the code in the files indicated below.Solution
Where to find the relevant lines of code:
Remove the
new
keyword from the following code blocks and updateL.LatLng
toL.latLng
:Leaflet.DistortableImage/test/src/edit/RotateHandleSpec.js
Lines 8 to 15 in c3eda90
Leaflet.DistortableImage/test/src/edit/RotateScaleHandleSpec.js
Lines 8 to 15 in c3eda90
Leaflet.DistortableImage/test/src/edit/ScaleHandleSpec.js
Lines 8 to 15 in c3eda90
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: