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

867/add markdown incident description #877

Merged
merged 4 commits into from
Oct 10, 2021

Conversation

abandoned-prototype
Copy link
Collaborator

Status

Ready for review

Description of Changes

Fixes #867.

Changes proposed in this pull request:

  • Incident description accepts markdown and some html while making sure that unsafe html cannot be introduced

Tests and linting

  • I have rebased my changes on current develop

  • pytests pass in the development environment on my local machine

  • flake8 checks pass

Copy link
Member

@dismantl dismantl left a comment

Choose a reason for hiding this comment

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

The tests ran successfully but when I tried adding an officer description with markdown it didn't render:
image

@dismantl
Copy link
Member

dismantl commented Oct 4, 2021

Unless the markdown support is only supposed to be for incident descriptions and not officer descriptions? It appears to work for incident descriptions.

@abandoned-prototype
Copy link
Collaborator Author

Unless the markdown support is only supposed to be for incident descriptions and not officer descriptions? It appears to work for incident descriptions.

Yeah, I only implemented it for incidents, but I agree, it makes sense to have the same thing for notes & descriptions for officers as well. Also pretty easy to add with the jinja filter. I am about to update it now

Copy link
Member

@dismantl dismantl left a comment

Choose a reason for hiding this comment

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

Tested and working great!

@abandoned-prototype abandoned-prototype merged commit a8d4a9e into develop Oct 10, 2021
@abandoned-prototype abandoned-prototype deleted the 867/add-markdown-incident-description branch October 10, 2021 02:44
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.

Enable markdown for Incident Description
2 participants