Git Product home page Git Product logo

declarations.com.ua's People

Contributors

amice13 avatar antzhdanov avatar arialblack avatar aturyk avatar dchaplinsky avatar dependabot[bot] avatar devrand avatar dimanech avatar excieve avatar fuse13 avatar imaginal avatar li-ar avatar syadykin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

declarations.com.ua's Issues

Integrate R analytics from Kirill

We need a way to integrate analytics that Kirill made: http://pro-media.com.ua/decs/
He is using R/knitr/knitrbootrstrap.
I think we can use following way:

  • Create a django manage.py command to export ALL data into JSON format
  • Invoke R from there.
  • Collect results in html or markdown (and render it to html) and re-insert it into CMS.

This “offline” way will work as we only updating site once in a while with a big batch of data.
R sources are in your mailbox.

Analytics command is broken now

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/var/www/venv/lib/python3.4/site-packages/django/core/management/init.py", line 385, in execute_from_command_line
utility.execute()
File "/var/www/venv/lib/python3.4/site-packages/django/core/management/init.py", line 377, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/var/www/venv/lib/python3.4/site-packages/django/core/management/base.py", line 288, in run_from_argv
self.execute(_args, *_options.dict)
File "/var/www/venv/lib/python3.4/site-packages/django/core/management/base.py", line 338, in execute
output = self.handle(_args, *_options)
File "/var/www/declarations.com.ua/declarations_site/catalog/management/commands/analytics.py", line 38, in handle
table = self._generate_table(all_decls)
File "/var/www/declarations.com.ua/declarations_site/catalog/management/commands/analytics.py", line 61, in _generate_table
decl_dict = self._map_fields(decl)
File "/var/www/declarations.com.ua/declarations_site/catalog/management/commands/analytics.py", line 91, in _map_fields
'family_num': len(declaration.general.family_raw.split(';')) if declaration.general.family_raw else 0,
File "/var/www/venv/lib/python3.4/site-packages/elasticsearch_dsl/utils.py", line 405, in getattr
return super(ObjectBase, self).getattr(name)
File "/var/www/venv/lib/python3.4/site-packages/elasticsearch_dsl/utils.py", line 109, in getattr
'%r object has no attribute %r' % (self.class.name, attr_name))
AttributeError: 'InnerObjectWrapper' object has no attribute 'family_raw'

API docs

While API itself seems gorgeous, we still need some docs.

Add model to hold list of regions

And migration to import the list:
Загальнодержавний регіон
м. Київ
м. Севастополь
Івано-Франківська область
Вінницька область
Волинська область
Дніпропетровська область
Донецька область
Житомирська область
Закарпатська область
Запорізька область
Кіровоградська область
Київська область
Кримська Автономна Республіка
Луганська область
Львівська область
Миколаївська область
Одеська область
Полтавська область
Рівненська область
Сумська область
Тернопільська область
Харківська область
Херсонська область
Хмельницька область
Черкаська область
Чернівецька область
Чернігівська область

Please remain this exact order in the admin

Match new input data fields

Most recent processed tables contain new columns that must be matched into internal fields during the import:

  • Hidden values where available (e.g. "ОБЩ: 35. Автомобілі легкові 1.ПРИХОВАНО") - should be boolean type
  • "Результат сверки машин" as "needs_scancopy_check" - boolean as well
  • Cells with "!notmatched" values need to be saved as empty values

Optimise search

  • Match by specified fields only instead of match by "_all"
  • Return only specified fields for search results instead of whole document
  • Anything else?

Implement API

All declarations along with search and filtering should be exposed via JSON API.

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.