-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
ADD: Keyboard shortcut to publish a comment and tests for it #7301
ADD: Keyboard shortcut to publish a comment and tests for it #7301
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7301 +/- ##
=======================================
Coverage 81.61% 81.61%
=======================================
Files 97 97
Lines 5602 5602
=======================================
Hits 4572 4572
Misses 1030 1030 |
Don't worry, the update is coming. |
Oh ok, how does this pr affect that test though? I am just curious 👍 |
Codecov Report
@@ Coverage Diff @@
## master #7301 +/- ##
===========================================
- Coverage 81.6% 51.76% -29.85%
===========================================
Files 97 97
Lines 5600 6819 +1219
===========================================
- Hits 4570 3530 -1040
- Misses 1030 3289 +2259
|
@Uzay-G I was deleting the only comment on the post instead of creating my own comment and deleting it. Now it works. |
Oh ok. The pr looks good. I will test it locally |
It will be great if you create two prs |
Thanks, @SidharthBansal. It's not a big change, so it shouldn't be a problem to review. |
Kindly get https://codein.withgoogle.com/dashboard/tasks/5597001224290304/
For system tests written, please also include this pr in system tests 3.
In total you will get 3 pts from medium task written above and 5 pts for
system tests(sums to 8pts)
I hope that is fair enough for you
…On Mon, 20 Jan 2020, 8:21 am Vladimir Mikulic, ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In test/system/comment_test.rb
<#7301 (comment)>:
> @@ -123,4 +123,79 @@ def setup
page.assert_selector('#preview img', count: 1)
end
👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7301?email_source=notifications&email_token=AFAAEQ6YATI5SJVB7D6ZSF3Q6UGULA5CNFSM4KIW6TP2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCSIS4JQ#discussion_r368352594>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQ2URUCUBAVX6WLYCYLQ6UGULANCNFSM4KIW6TPQ>
.
|
Thank you very much @SidharthBansal, but this is system tests part 3. |
Once the changes are done, please get it approved by Uzay so that I can quickly merge this. It is better to have two reviews than one. |
Just a short note, I am constantly asking Uzay to review your prs and you to review theirs. Do you know why? Have you heard about pair programming? One is remote and other is driver. By this I want you both to learn how to build a professional pairing relation. This is the first activity with which collaboration starts. Please read two three articles about pair programming. (I will not give extra points for reading those articles....lol) |
You will require to write system tests for three different portions of the
codebase for 15 points. You will require one more pr aiming at different
portion of the codebase. You are getting 3 more points for extra functional
changes done in this pr. I think this is fair enough. What do you think?
…On Mon, 20 Jan 2020, 9:04 am Vladimir Mikulic, ***@***.***> wrote:
Thank you very much @SidharthBansal <https://github.com/SidharthBansal>,
but this is system tests part 3.
Together with #7306 <#7306>, I
have 5 tests.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7301?email_source=notifications&email_token=AFAAEQ2NLF6NO22M6JSUTWTQ6ULURA5CNFSM4KIW6TP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJLHUKQ#issuecomment-576092714>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQ7LTEHXYEU5YI5CTS3Q6ULURANCNFSM4KIW6TPQ>
.
|
Fair enough, which portion of the codebase do you want me to test next? |
@Uzay-G could you take a look at this? Thanks. |
That's your wish. I have already pinged you at so many places. Let's
complete those first. If they are completed choose anyone you wish.
If it's not fair we can discuss further too. But I think it's fair to get
18 points in total for 3 prs and some functional changes.
…On Mon, 20 Jan 2020, 9:30 am Vladimir Mikulic, ***@***.***> wrote:
@Uzay-G <https://github.com/Uzay-G> could you take a look at this? Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7301?email_source=notifications&email_token=AFAAEQZEDPUHXSOR6K672QTQ6UOUDA5CNFSM4KIW6TP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJLIVMA#issuecomment-576096944>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQ55E27S7PPI3LRN2C3Q6UOUDANCNFSM4KIW6TPQ>
.
|
Absolutely! By the way, I resolved the issues with most of the places that you've pinged me. |
Oh, how do you bookmark?
Please get your tasks approved if pending.(like the above mentioned link I
provided an hour ago)
…On Mon, 20 Jan 2020, 9:37 am Vladimir Mikulic, ***@***.***> wrote:
Absolutely! By the way, I resolved the issue with most of the places that
you've pinged me.
I bookmark them carefully :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7301?email_source=notifications&email_token=AFAAEQ7PLZHCNC6SGDEG2YTQ6UPO3A5CNFSM4KIW6TP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJLI5LA#issuecomment-576097964>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQZO73C2YPIRZ7VJSMLQ6UPO3ANCNFSM4KIW6TPQ>
.
|
Also it will be great if you can open system tests prs for many remaining
portions like questions stats etc. You can keep one task in review for some
time, so it will be great to keep a system test task there. I hope you and
@Uzay-G agrees on this.
On Mon, 20 Jan 2020, 9:46 am Sidharth Bansal, <[email protected]>
wrote:
… Oh, how do you bookmark?
Please get your tasks approved if pending.(like the above mentioned link I
provided an hour ago)
On Mon, 20 Jan 2020, 9:37 am Vladimir Mikulic, ***@***.***>
wrote:
> Absolutely! By the way, I resolved the issue with most of the places that
> you've pinged me.
> I bookmark them carefully :)
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#7301?email_source=notifications&email_token=AFAAEQ7PLZHCNC6SGDEG2YTQ6UPO3A5CNFSM4KIW6TP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJLI5LA#issuecomment-576097964>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AFAAEQZO73C2YPIRZ7VJSMLQ6UPO3ANCNFSM4KIW6TPQ>
> .
>
|
Nothing special, I just star the email and unstar it once the issue has been resolved.
No problem. First I'll figure out what needs to be tested and then get to work 👍 |
I agree with Uzay. We need to do the changes so that it is clear to new
developer.
…On Mon, 20 Jan 2020, 3:03 pm Vladimir Mikulic, ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In app/assets/javascripts/comment.js
<#7301 (comment)>:
> @@ -31,11 +31,14 @@
if(!$(this).hasClass('bound-keypress')) {
$(this).addClass('bound-keypress');
- $(this).find('#text-input').bind('keypress',function(e){
- if (e.ctrlKey && e.keyCode === 10) {
+
+ $(this).on('keypress', function (e) {
As long as it works, I suggest we keep it that way.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7301?email_source=notifications&email_token=AFAAEQ2FW54DHLTAZ5WRR4TQ6VVVDA5CNFSM4KIW6TP2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCSJPUII#discussion_r368445567>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQ3ZGDG22ZTMXYXDFLTQ6VVVDANCNFSM4KIW6TPQ>
.
|
The changes updated accordingly. |
Thanks for understanding
…On Mon, 20 Jan 2020, 3:21 pm Vladimir Mikulic, ***@***.***> wrote:
The changes update accordingly.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7301?email_source=notifications&email_token=AFAAEQ4MSYKAR7HI2DYJRVLQ6VX2ZA5CNFSM4KIW6TP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJMAP4A#issuecomment-576194544>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQ453JUL6BFHDMSLBOTQ6VX2ZANCNFSM4KIW6TPQ>
.
|
Can we merge this once Travis passes?
Or there are some more changes?
On Mon, 20 Jan 2020, 3:23 pm Sidharth Bansal, <[email protected]>
wrote:
… Thanks for understanding
On Mon, 20 Jan 2020, 3:21 pm Vladimir Mikulic, ***@***.***>
wrote:
> The changes update accordingly.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#7301?email_source=notifications&email_token=AFAAEQ4MSYKAR7HI2DYJRVLQ6VX2ZA5CNFSM4KIW6TP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJMAP4A#issuecomment-576194544>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AFAAEQ453JUL6BFHDMSLBOTQ6VX2ZANCNFSM4KIW6TPQ>
> .
>
|
It's ready. |
Awesome. Will merge it as soon as Travis passes.
…On Mon, 20 Jan 2020, 3:28 pm Vladimir Mikulic, ***@***.***> wrote:
It's ready.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7301?email_source=notifications&email_token=AFAAEQ2ELIGOHOQQLQPKUETQ6VYTNA5CNFSM4KIW6TP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJMBELA#issuecomment-576197164>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQ3LKUNAPMITMYIWV6TQ6VYTNANCNFSM4KIW6TPQ>
.
|
@SidharthBansal this breaks Travis. I suggest that we keep keypress. That's why I put the keypress in the first place, it ignores CTRL and when user presses the second key (could be Enter in our case) it triggers the comment upload. |
Please fill the grade sheet and mentor evaluation forms |
Please get all tasks approved asap. Even if PR isn't merged but it is present then also I will approve the task so that you can complete it till the deadline. Don't want to miss giving marks for any task |
@SidharthBansal this is ready to be merged and will fix our failing build. We were clicking revert button and immediately after it going to to the wiki( Calling |
Great I don't have merge rights here. Ping Jeff
…On Tue, 21 Jan 2020, 9:42 am Vladimir Mikulic, ***@***.***> wrote:
@SidharthBansal <https://github.com/SidharthBansal> this is ready to be
merged and will fix our failing build.
I think I've discovered why the test failed again.
We were clicking revert button and immediately after it going to to the
wiki(visit).
The post request sent by "Revert" would be interrupted and it would result
in a test failure.
Calling visit after clicking "Revert" was the problem since clicking
"Revert" will return you to wiki anyways. Now Travis should be healthy
again :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7301?email_source=notifications&email_token=AFAAEQ7VLY7UDDSTCALXDE3Q6ZY25A5CNFSM4KIW6TP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJONSZA#issuecomment-576510308>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQ6GVWHDPFSCR7JSM3TQ6ZY25ANCNFSM4KIW6TPQ>
.
|
@jywarren @cesswairimu could you take a look at this and merge it? Thanks. |
Looks awesome. Thanks, all!!! 🎉 |
Also will add Sidharth to the correct maintainers groups. Still learning new approval workflow from #6501 ! |
…ab#7301) * ADD: Shortcut to publish a comment and tests Pressing CTRL/CMD + Enter will publish a comment. Comment tests: - CTRL/CMD + enter comment publishing keyboard shortcut - comment deletion Resolves publiclab#5193 & publiclab#5473 * ADD: Comment editing system test * FIX: post_test reverting wiki versions
…ab#7301) * ADD: Shortcut to publish a comment and tests Pressing CTRL/CMD + Enter will publish a comment. Comment tests: - CTRL/CMD + enter comment publishing keyboard shortcut - comment deletion Resolves publiclab#5193 & publiclab#5473 * ADD: Comment editing system test * FIX: post_test reverting wiki versions
Pressing CTRL/CMD + Enter will publish a comment.
Comment tests:
Resolves #5193 & #5473