-
Notifications
You must be signed in to change notification settings - Fork 79
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
New filters, sorting, and more updates for browse view #835
Open
dismantl
wants to merge
42
commits into
develop
Choose a base branch
from
list-officer-updates
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
731ff5a
Add meta block to base template
dismantl 68fb05c
Add titles and meta descriptions to public templates
dismantl 79d746d
Add structured data to officer profiles: schema.org, Open Graph, Twit…
dismantl 120ebfa
Update structured data for incident templates
dismantl eb88463
flake8 fix
dismantl 42f0a64
jinjaaaaaaaaaaaaaa fix
dismantl 5c32849
Differentiate between local and S3-hosted images for officer structur…
dismantl 1db45bb
Remove stray comma in officer JSON-LD
dismantl 7abac1c
Fix officer full name display when middle_initial longer than 1 char
dismantl d5b4d0e
Fix double periods in middle initials
dismantl b52a1a4
Merge branch 'develop' into seo
dismantl 2cec579
Allow multiple comma-separated values for UII and badge number form f…
dismantl 67adfd9
Move logic from list_officers.html template to view; Remove officer_n…
dismantl ef9889e
Add field to filter by officer photo availability. Fixes #798
dismantl 36fe52f
flake8 fixes
dismantl 91e5ed7
Merge branch 'develop' into seo
dismantl f6d4bde
Add job_title() and badge_number() methods to Officer class; move log…
dismantl 6863335
Removed tests for last name capitalization; names should be correctly…
dismantl 6878780
Merge branch 'develop' into seo
dismantl bd9c357
Simplify incident list title/description
dismantl c7ba317
Merge branch 'develop' into seo
dismantl eb415f4
Switch to using job_title() and badge_number() methods in templates
dismantl 2dc8680
Changed AddOfficerForm field job_title -> job_id to be consistent.
dismantl b6a0ed4
Merge branch 'seo' into list-officer-updates
dismantl a159bf6
Fixes related to list officer updates. Moved photo filter above unit …
dismantl 07641f2
Added total pay filter to list_officers view
dismantl 62a4b07
Added dropdown menu for sorting list_officers view by: last name, ran…
dismantl 73d5d79
Forgot to change field name in Add Officer form javascript
dismantl fdc5dfe
Merge branch 'seo' into list-officer-updates
dismantl e5611a9
Fix bugs in add_officer_profile()
dismantl 3bbd76e
Added tests for new list_officer filters and sorting
dismantl ff10608
Added First and Last buttons to list_officer pagination in addition t…
dismantl 2f85fa7
minor testing fixes
dismantl f6528d3
Merge branch 'develop' into list-officer-updates
dismantl cc0b3dc
Merge branch 'develop' into list-officer-updates
dismantl 2abefcc
Fix to latest db migration, since it would fail if DB had salaries wi…
dismantl 3ecc2bd
Removed unncessary Bootstrap CSS include
dismantl 4911a14
Merge branch 'list-officer-updates' of github.com:lucyparsons/OpenOve…
dismantl 1a8b054
Generated prev/next urls didn't include the new filters
dismantl 6768304
When sorting browse results, nulls last
dismantl f818509
Bump libsqlite3 version from 3.27.2 -> 3.33.0 in Dockerfile so it sup…
dismantl 9fae02b
Merge branch 'develop' into list-officer-updates
abandoned-prototype File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,12 +176,12 @@ class Salary(BaseModel): | |
officer_id = db.Column(db.Integer, db.ForeignKey('officers.id', ondelete='CASCADE')) | ||
officer = db.relationship('Officer', back_populates='salaries') | ||
salary = db.Column(db.Numeric, index=True, unique=False, nullable=False) | ||
overtime_pay = db.Column(db.Numeric, index=True, unique=False, nullable=True) | ||
overtime_pay = db.Column(db.Numeric, index=True, unique=False, nullable=False, server_default='0') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Generally |
||
year = db.Column(db.Integer, index=True, unique=False, nullable=False) | ||
is_fiscal_year = db.Column(db.Boolean, index=False, unique=False, nullable=False) | ||
|
||
def __repr__(self): | ||
return '<Salary: ID {} : {}'.format(self.officer_id, self.salary) | ||
return '<Salary: ID {} : {} {} {}>'.format(self.officer_id, self.salary, self.overtime_pay, self.year) | ||
|
||
|
||
class Assignment(BaseModel): | ||
|
@@ -212,7 +212,7 @@ class Unit(BaseModel): | |
department = db.relationship('Department', backref='unit_types', order_by='Unit.descrip.asc()') | ||
|
||
def __repr__(self): | ||
return 'Unit: {}'.format(self.descrip) | ||
return '<Unit: {}>'.format(self.descrip) | ||
|
||
|
||
class Face(BaseModel): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pretty sure this should be
page=page
instead ofpage=officers.next_num