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

LTD-5573-make-makedown-safe-remove #2219

Open
wants to merge 15 commits into
base: dev
Choose a base branch
from

Conversation

depsiatwal
Copy link
Contributor

https://uktrade.atlassian.net/browse/LTD-5573

First part here is to just remove the filter_tag

@depsiatwal depsiatwal force-pushed the LTD-5573-make-makedown-safe-remove branch from 7315a8e to 7639562 Compare October 30, 2024 10:01
@@ -13,4 +13,6 @@ def back_to_task_list(application_id):

def footer_label(application_id):
url = reverse("applications:task_list", kwargs={"pk": str(application_id)})
return Label(f'Or <a class="govuk-link" href="{url}">return to application overview</a>')
return Label(
f'Or <a class="govuk-link govuk-link--no-visited-state" rel="noreferrer noopener" target="_blank" href="{url}">return to application overview</a>'
Copy link
Contributor

Choose a reason for hiding this comment

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

Just interested, but what is this change achieving?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

self.footer_label = footer_label

Looks like it's used to add a link to the footer.
Yes I could add it to the template and be done with. But I question how far do I go with this PR. For now the aim is to just ensure we can remove the markdown method and make it clearer where it was used and replace the constants along the way.

DESCRIPTION = "You may know this as an 'end use control'."
DESCRIPTION = "Give the application a reference name so you can refer back to it when needed."
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't seem right

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure how that got changed looks like copied from above revered back.

@depsiatwal depsiatwal force-pushed the LTD-5573-make-makedown-safe-remove branch from 7639562 to 2e76b97 Compare October 30, 2024 11:53
@@ -155,20 +154,6 @@ def heading_used_as_label(components):
return single_input


def convert_to_markdown(text):
Copy link
Contributor

Choose a reason for hiding this comment

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

🙌

@depsiatwal depsiatwal force-pushed the LTD-5573-make-makedown-safe-remove branch from 2e76b97 to 2da3fc8 Compare October 30, 2024 12:00
@depsiatwal depsiatwal force-pushed the LTD-5573-make-makedown-safe-remove branch from 2da3fc8 to e5d58be Compare October 30, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants