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

Syntax changes and model update changes #1056

Merged
merged 24 commits into from
Sep 12, 2023
Merged

Conversation

michplunkett
Copy link
Collaborator

@michplunkett michplunkett commented Sep 10, 2023

Description of Changes

A lot of small syntax changes along with adding missing field inclusions.

Tests and linting

  • This branch is up-to-date with the develop branch.
  • pytest passes on my local development environment.
  • pre-commit passes on my local development environment.

@michplunkett michplunkett self-assigned this Sep 10, 2023
{% for incident in officer.incidents | sort(attribute='date') | reverse %}
{% for incident in officer.incidents %}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is now covered in the view.

@michplunkett michplunkett changed the title Syntax Changes Syntax changes Sep 10, 2023
Comment on lines -226 to -227
if "created_by" in data:
link.created_by = parse_int(data.get("created_by"))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The created_by field shouldn't be updated.

@michplunkett michplunkett changed the title Syntax changes Syntax changes and model update changes Sep 10, 2023
@michplunkett michplunkett marked this pull request as ready for review September 10, 2023 02:35
Copy link
Collaborator

@sea-kelp sea-kelp left a comment

Choose a reason for hiding this comment

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

@michplunkett michplunkett merged commit 060d0ab into develop Sep 12, 2023
2 checks passed
@michplunkett michplunkett deleted the semantic_changes branch September 12, 2023 08:27
@michplunkett
Copy link
Collaborator Author

@sea-kelp, at the very least it should be an f-string. We can change that on the next code change.

@michplunkett michplunkett mentioned this pull request Sep 15, 2023
3 tasks
sea-kelp pushed a commit to OrcaCollective/OpenOversight that referenced this pull request Sep 25, 2023
sea-kelp pushed a commit to OrcaCollective/OpenOversight that referenced this pull request Sep 25, 2023
sea-kelp pushed a commit to OrcaCollective/OpenOversight that referenced this pull request Oct 9, 2023
AetherUnbound pushed a commit to OrcaCollective/OpenOversight that referenced this pull request Nov 11, 2023
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.

None yet

2 participants