opendata-nc / open-data-nc Goto Github PK
View Code? Open in Web Editor NEWPublic records index for North Carolina.
License: MIT License
Public records index for North Carolina.
License: MIT License
Default display should be in reverse chronological order. Users should also have the ability to sort by "Newest" or "Rating" (Rating = average "star" ratings given by users) (Victor can do but will require some research; catalog listing comes from search which we are using SOLR for and filtering may not be easy options to apply)
Roger that. If filtering is not easy, could we do the reverse chron default sorting now and save filtering for later?
We need to update the version of Django to 1.5.4 to mitigate a possible denial of service attack.
https://open-nc.org/suggest-data/
"ratings" display under each dataset's thumbnail image should be stars rather than radio buttons.
Update from Matt:
I see the issue now but I'm not sure what's going on. I believe a script or resource is not loading properly.
Numbers in the "Filters" facets area indicates there are 15 datasets in the catalog, but the page only displays 12. Related: Homepage indicates there is (1) record for Moore county, but no records display here: https://open-nc.org/catalog/?q=&selected_facets=counties_exact:Moore
NOTE: additional feedback from Ryan as "Moore County" issue could not be replicated. Ignore Moore County issue. Fix pagination:
"On the pagination, I'm not partisan about how many resources appear listed on the page at one time, as long as we make sure users can someone get to to all the resources. So 12 on first page and three on the next is cool. Or whatever."
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/users/vrocha/
website needs a favicon to show on the browser tabs
Hard code this list: https://basecamp.com/1849796/projects/611093-openrural/todos/53710761-initial-data
A facet with no results should not be available to filter by.
https://open-nc.org/accounts/register/
We can include any field from the Resource model. Open Data Philly shows title, description, type (the icon) and a screenshot.
Add sharing functionality to catalog detail.
When rating a resource page, this un-styled page appears: https://open-nc.org/comments/post/. Instead, the page should be re-loaded and the comment should appear.
https://open-nc.org/catalog/nc-master-addresses-dataset/5/
2. Values from the "categories" field are not displaying. (NEED MORE INFO)
FEEDBACK FROM RYAN:
On the live site, under "Categories" label should be displayed "Property/real estate" -- the value in the "categories" field on the admin side.
After clicking the show more button under filters, the show less button does nothing.
Since we're using Haystack + Solr for the catalog listing, it would be great to pull in @daaray's helper functions and bug fixes from his work during the ShipIt day last week.
Traceback (most recent call last):
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/var/www/opendata-production/source/opendata/requests/views.py", line 25, in list_requests
return render(request, 'requests/list.html', context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/shortcuts/init.py", line 53, in render
return HttpResponse(loader.render_to_string(_args, *_kwargs),
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/loader.py", line 177, in render_to_string
return t.render(context_instance)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 140, in render
return self._render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 124, in render
return compiled_parent._render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 63, in render
result = block.nodelist.render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 63, in render
result = block.nodelist.render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/defaulttags.py", line 148, in render
len_values = len(values)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 90, in len
self._result_cache = list(self.iterator())
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 301, in iterator
for row in compiler.results_iter():
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 775, in results_iter
for rows in self.execute_sql(MULTI):
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 830, in execute_sql
sql, params = self.as_sql()
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 75, in as_sql
ordering, ordering_group_by = self.get_ordering()
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 394, in get_ordering
self.query.model._meta, default_order=asc):
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 420, in find_ordering_name
field, col, alias, joins, opts = self._setup_joins(pieces, opts, alias)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 453, in _setup_joins
opts, alias, False)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1332, in setup_joins
"Choices are: %s" % (name, ", ".join(names)))
FieldError: Cannot resolve keyword u'suggested_date' into field. Choices are: agency_contact, agency_division, agency_name, agency_type, categories, city, county, creation_date, description, id, last_modified, other_category, rating_score, rating_votes, relevance, resources, status, suggested_by, title, updates, url
https://open-nc.org/catalog/nc-master-addresses-dataset/5/
The "url label" from "resource URL" should be displayed, and should link to "url" of "resource url". If resources has multiple "resource URLs" all should be displayed. (Right now there's no way to actually navigate to the data)
:)
Basically the facet just continues to get appended to the URL.
What is this library buying us? We are already using bootstrap any reason why we using ui as well? Typically this library is pretty heavy (css and js) to be included and barely used or not used at all.
@rtburg: we need the widget id.
Let's just go with a AWS Micro for now.
https://open-nc.org/catalog/nc-master-addresses-dataset/5/
More feedback from Ryan with screenshots here: https://basecamp.com/1849796/projects/3432248-open-data-nc/comments/95184645/image_attachments
At the bottom page, when not logged in and using Firefox Mac, there is a big gray box that does not appear when I look at the page while logged in on Firefox or not logged in on Chrome.
We need GA tracking code.
It's kinda difficult to figure out to click on the "share ribbon" to show the facebook and twitter widgets. It would be better to have them always show. To avoid a "jumpy" screen behavior simply set the height of the div to a default min height.
The city/county catalog filter can be interpreted in different ways:
So the question is:
If you filter down a search with 3 applied facets and then remove one, only one facet remains. It should just remove the current facet.
From Matt:
"I have tried logging in and out a couple of times now and I am always redirected to the home page, both locally and on the live site. I logged in from the submit data page and was redirected home afterwards. "
When a user registers/logs in, shouldn't they return to the page they were last viewing?
Make this page as easy to use as possible to for students to use.
In line 28 there are two closing div tags (), however, their corresponding opening tags are not included in the same block. Rearrage template(s) to have both opening and closing tags always in same block.
Submitting the comments form renders a different template when the form doesn't validate.
By doing front end validation we avoid submitting an invalid form.
"Created" field currently displays the date the resource was created, but the resources are displayed in the order they were updated. Let's change the column label to say "updated" and change the date displayed to be the date on which the resource was updated.
Add GA block to base.html
https://open-nc.org/request-data/
For some reason Google is trying to crawl an url and it is causing a 500 Error.
Traceback (most recent call last):
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/var/www/opendata-production/source/opendata/search/views.py", line 135, in search_listing
return view(request)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/haystack/views.py", line 148, in search_view
return view_class(_args, *_kwargs)(request)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/haystack/views.py", line 49, in call
return self.create_response()
File "/var/www/opendata-production/source/opendata/search/views.py", line 88, in create_response
return render_to_response(self.template, context, context_instance=self.context_class(self.request))
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/shortcuts/init.py", line 29, in render_to_response
return HttpResponse(loader.render_to_string(_args, *_kwargs), **httpresponse_kwargs)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/loader.py", line 177, in render_to_string
return t.render(context_instance)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 140, in render
return self._render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 124, in render
return compiled_parent._render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 63, in render
result = block.nodelist.render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/var/www/opendata-production/env/local/lib/python2.7/site-packages/django_sorting/templatetags/sorting_tags.py", line 62, in render
getvars['dir'] = sort_directions[sortdir]['inverse']
KeyError: u'asc?q='
We can closely mimic the Open Data Philly setup.
Share via FB and Twitter
Code a mobile friendly intuitive search filters widget to allow for browsing available facets.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.