Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Converted jquery.dragster.js from jquery plugin to vanilla js #3646

Merged
merged 5 commits into from
Sep 17, 2019

Conversation

niklabh
Copy link
Contributor

@niklabh niklabh commented Sep 11, 2019

Summary

Converted jquery.dragster.js from jquery plugin to vanilla js

Ticket Link

Fixes: mattermost/mattermost#11429

@hanzei hanzei added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Sep 11, 2019
Copy link
Member

@saturninoabril saturninoabril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @niklabh! It works great. See comments for other request.

components/file_upload/file_upload.jsx Show resolved Hide resolved
utils/dragster.js Show resolved Hide resolved
@saturninoabril
Copy link
Member

Also, this fails on existing test
Screen Shot 2019-09-12 at 4 51 17 PM

Copy link
Member

@jespino jespino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small changes needed, but in general looks good to me (besides the @saturninoabril comments).

@niklabh
Copy link
Contributor Author

niklabh commented Sep 13, 2019

Also, this fails on existing test
Screen Shot 2019-09-12 at 4 51 17 PM

Tests passing on local.

@niklabh
Copy link
Contributor Author

niklabh commented Sep 13, 2019

Removed target.off jquery function in last commit. Using removeEventListener from inside the lib using js closure.

@niklabh
Copy link
Contributor Author

niklabh commented Sep 13, 2019

Doing querySelector instead of querySelectorAll inside the lib now.

@saturninoabril
Copy link
Member

Tests passing on local.

I can see it's failing. Curious, how do you run the test on local?
Screen Shot 2019-09-13 at 9 30 36 PM

@niklabh
Copy link
Contributor Author

niklabh commented Sep 15, 2019

Tests passing on local.

I can see it's failing. Curious, how do you run the test on local?
Screen Shot 2019-09-13 at 9 30 36 PM

Passing now.

Copy link
Member

@saturninoabril saturninoabril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@niklabh Awesome, looks good to me!

@lindalumitchell lindalumitchell removed the 3: QA Review Requires review by a QA tester label Sep 17, 2019
@lindalumitchell lindalumitchell added this to the v5.16.0 milestone Sep 17, 2019
Copy link
Member

@jespino jespino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jespino jespino added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels Sep 17, 2019
@jespino jespino merged commit 235d64c into mattermost:master Sep 17, 2019
@jespino
Copy link
Member

jespino commented Sep 17, 2019

Merged! Thanks @niklabh! 🎉

@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Sep 17, 2019
@lindalumitchell lindalumitchell added the Tests/Not Needed Does not require new release tests label Sep 20, 2019
jwilander pushed a commit that referenced this pull request Sep 24, 2019
* Converted jquery.dragster.js to vanilla js

* fix test

* removed jquery

* unbinding events on unmount; not checking class before classList.add

* added new test; fixed old test
skheria pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Oct 3, 2019
…most#3646)

* Converted jquery.dragster.js to vanilla js

* fix test

* removed jquery

* unbinding events on unmount; not checking class before classList.add

* added new test; fixed old test
skheria pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Oct 3, 2019
…most#3646)

* Converted jquery.dragster.js to vanilla js

* fix test

* removed jquery

* unbinding events on unmount; not checking class before classList.add

* added new test; fixed old test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation Tests/Not Needed Does not require new release tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove JQuery Dragster dependency
6 participants