Skip to content
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

Git rid of JQuery from ToolHelp.vue #14652

Draft
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

MOHITRAJANI
Copy link

Instead of using the function formattedComponent which in turn used Jquery selector to directly using the content that comes from props which is already having the HTML that we need to render in String format. Related to task #11939

(If fixing a bug, please add any relevant error or traceback)
(For UI components, it is recommended to include screenshots or screencasts)

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@github-actions github-actions bot added this to the 22.09 milestone Sep 19, 2022
@itisAliRH itisAliRH requested a review from dannon September 19, 2022 12:56
export default {
props: {
content: {
type: String,
required: true,
},
},
computed: {
formattedContent() {
const $tmpl = $("<div/>").append(this.content);
Copy link
Member

@dannon dannon Sep 19, 2022

Choose a reason for hiding this comment

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

It looks like this substantively changes the incoming content, to me, and that functionality would need to be updated instead of dropped?

i.e. -- it makes all of the anchors target a new window, and it rewrites static references in the tool help.

Copy link
Member

Choose a reason for hiding this comment

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

And this PR turned green, and it should probably not :)
Please add some tests to make sure that the result is really the same before and after your modifications.

@bgruening
Copy link
Member

@MOHITRAJANI this needs a rebase and test.

@mvdbeek mvdbeek marked this pull request as draft October 17, 2022 10:22
@dannon dannon modified the milestones: 23.0, 23.1 Jan 10, 2023
@mvdbeek mvdbeek removed this from the 23.1 milestone Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants