-
Notifications
You must be signed in to change notification settings - Fork 16
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
big merge in of django-councilmatic views and functionality #392
Conversation
working on getting the search form working again. i believe because we merged our haystack_indexes into one file, the stored index on the live site is no longer valid and is returning this error:
Scraping some local bills and testing rebuilding the index locally |
@fgregg ok search issues are resolved. we didn't have to rebuild the index after all. haystack was expecting the This is ready for your review. |
# faceted = True creates a keyword field instead of a text field for full | ||
# text searches. By default, text fields cannot be used for faceting or | ||
# sorting in ElasticSearch. | ||
class BillIndex(indexes.SearchIndex, indexes.Indexable): |
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.
merged with django-councilmatic
's haystack-indexes.py
@@ -123,14 +123,13 @@ | |||
"django.template.context_processors.request", | |||
"django.contrib.auth.context_processors.auth", | |||
"django.contrib.messages.context_processors.messages", | |||
"councilmatic_core.views.city_context", |
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.
this context allowed for a number of settings variables to be universally available in templates. we are now adding them to each view context
as needed
@@ -344,12 +334,6 @@ | |||
"committee-on-zoning-landmarks-and-building-standards": "The Committee on Zoning, Landmarks and Building Standards shall have jurisdiction over all zoning matters and the operation of the Zoning Board of Appeals and the office of the Zoning Administrator; land use policy generally and land use recommendations of the Chicago Plan Commission and the Department of Planning and Development; building code ordinances and matters generally affecting the Department of Buildings; and designation, maintenance and preservation of historical and architectural landmarks. The Committee shall work in cooperation with those public and private organizations similarly engaged in matters affecting landmarks.", # noqa | |||
} | |||
|
|||
ABOUT_BLURBS = { |
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.
setting these in the templates themselves
@@ -0,0 +1,209 @@ | |||
from django import template |
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.
merged with chicago_extras.py
@@ -178,7 +179,7 @@ html { | |||
} | |||
|
|||
body { | |||
height: 100%; | |||
height: 99%; |
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.
this is the only substantive change here - lowering this prevents two overflow scroll bars from showing. all other changes are from eslint
@@ -1,9 +1,7 @@ | |||
#!/bin/bash | |||
set -euo pipefail | |||
|
|||
python manage.py migrate --noinput |
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.
don't we want these things to happen if there is a database?
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.
maybe i could come up with a better variable, but i want to add a flag just to the review apps and have it skip these steps if present, otherwise do the normal release procedure.
i removed these for now to make sure i don't mess up the live database before i'm confident in the logic
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.
we're now using the presence of a PRODUCTION
env variable to determine if we run the management commands or not.
if [ -n "${PRODUCTION}" ]; then
chicago/feeds.py
Outdated
class ChicagoBillDetailActionFeed(BillDetailActionFeed): | ||
title_template = "feeds/chicago_bill_actions_item_title.html" | ||
|
||
class ChicagoCouncilmaticFacetedSearchFeed(Feed): |
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.
one thing that might be nice to do is simplify out class names.
This could just be FacetedSearchFeed
since there's no other classes out there we need to worry about colliding with.
This is a pervasive change, but it might be nice to go ahead and do now?
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.
I clicked around and it looks good to me!
ok lets bring it in! |
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Switches to the
minimal
branch ofdjango-councilmatic
which only contains models.This PR brings in the pieces we had in
django-councilmatic
views, templates and static assetsAlso made a few other updates:
councilmatic_core.views.city_context
that was removedIssues: