GithubHelp home page GithubHelp logo

opendata-nc / open-data-nc Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 6.0 3.31 MB

Public records index for North Carolina.

License: MIT License

Shell 7.43% Scheme 0.98% Elixir 0.04% Python 26.68% JavaScript 25.68% CSS 39.19%

open-data-nc's People

Contributors

cmhayes avatar copelco avatar vrocha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

open-data-nc's Issues

Reverse Chron fix for default display of Catalog items

https://open-nc.org/catalog/

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?

Catalog page "stars" vs. Radio buttons

"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.

Fix pagination

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."

FieldError: Cannot resolve keyword u'suggested_date' into field

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

Jquery UI

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.

Stylings and Ratings format consistency

https://open-nc.org/catalog/nc-master-addresses-dataset/5/

  1. It appears that the styling and ratings on these pages may differ depending on whether a user is logged in and/or using Chome vs. Firefox. Needs further analysis and to be made consistent across browsers/user states. (CAN'T REPLICATE. NEED MORE INFO)

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.

Remaining request data changes

  • Finish writing tests
  • Add scribbler to paragraph text so it's editable
  • Form JS to hide/show form fields based on selection

Social Widget should always be accessible

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.

Meaning of city/county relationship

The city/county catalog filter can be interpreted in different ways:

  1. The data set includes data for each relationship. For example, the NC Secretary of State Corporation filings includes data from across the state, including Columbus County. So we tag the resource with the Columbus county resource.
  2. The data set is tagged with a city, but not with the associated county. Because the data is city-specific, we don't tag the resource with the county directly.

So the question is:

  1. How do we want to tag each resource?
  2. If you choose Orange County, do we want to see any data set that's been tagged with just Chapel Hill (and not Orange County directly)?

Login redirect issue

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?

Home page template

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.

Change Resource column label and date format

On https://open-nc.org/

"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.

KeyError: u'asc?q='

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='

Search Filters Widget

Code a mobile friendly intuitive search filters widget to allow for browsing available facets.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.