Giter Site home page Giter Site logo

hasadna / alaveteli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mysociety/alaveteli

2.0 2.0 1.0 43.01 MB

Provide a Freedom of Information request system for your jurisdiction

Home Page: http://www.askdata.org.il/

License: Other

Ruby 72.89% Shell 1.82% CSS 3.16% CoffeeScript 0.08% JavaScript 1.43% Perl 0.30% Python 0.05% HTML 20.05% ApacheConf 0.22%

alaveteli's Introduction

Hasadna monorepo

CircleCI

Installation

Install Bazel. That's it!

Build & Test

  • Build everything: ./compile.sh build
  • Run all tests: ./compile.sh test

About monorepos

A monorepo is a software development approach where all code is stored in a single repository. Some things are easier to do in a monorepo, such as sharing a proto file across front-end and backend, some things are harder, such as per-repo control over collaborators, email notifications, commit history etc.

Some monorepo etiquette:

  1. Don't store large files in the repo (>500kb), or many small files. Until we figure out a way to deal with them, you can store them in a different repo.
  2. If you use code belonging to another project, talk to the people of that project about it. If you don't, they might accidentally break your code.
  3. If you change code common to multiple projects, do it thoughfully.
  4. Kindly provide a LICENSE file for your project.

Some good reads about the monorepo approach:

Platforms

While Bazel supports Linux, Mac and Windows, this repo supports Linux and Mac. If you're on Windows 10, you can use Windows Subsystem for Linux (WSL). It gives you a Linux environment, without the overhead of a virtual machine.

Installing Windows Subsystem for Linux:

Please follow the guide. Note: You may have to do a Windows upgrade. If you need it, it will ask for it at the beginning of the installation.

Contributing

You're welcome to contribute and in doing so, learn these technologies. You can have a look at the issues list, or at the project milestones.

Happy coding!

alaveteli's People

Contributors

bbqsrc avatar bersen avatar crowbot avatar dracos avatar gabelula avatar henare avatar jedidiah avatar jms301 avatar mhl avatar mlandauer avatar njenkins avatar paulogeyer avatar pcc avatar robinhouston avatar sebbacon avatar selishta avatar stefan-langenmaier avatar tmtmtmtm avatar tsubery avatar valon avatar vjpr avatar wombleton avatar yehudab avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

itayadler

alaveteli's Issues

Sending timely reminders

We wish to nudge authorities after 14,45 and 70 days after a request was sent, so they'll do their dutiful job.
Alaveteli should have some capability of this sort, need to figure out what's going on there.

Feed for twitter

Open a user and provide a constant feed of successful ones.
Here is the feed of partial ones:
askdata.org.il/he_IL/feed/search/ (latest_status:successful OR latest_status:partially_successful)

Preventing emails from getting to spam folders

Some Gmail box filter emails form the system as spam, probably since emails still contain records of alaveteli.nsa.co.il (the hosting server).
SPF records are in place, and could be changed if needed.

Viewing some requests results in an error

http://askdata.org.il/admin/request/show/113

Error:

RuntimeError in Admin_request#show

Showing app/views/admin_request/show.rhtml where line #42 raised:

internal error, last_event_forming_initial_request gets nil for request 113 outgoing messages count 1 all events: --- []

Extracted source (around line #42):

39:                   <% end %>
40:                   <% if column_name == 'described_state' %>
41:                     <ul>
42:                       <li><strong>Initial request last sent at:</strong> <%= @info_request.calculate_status %></li>
43:                       <li><strong>Initial request last sent at:</strong> <%=@info_request.date_initial_request_last_sent_at.to_date %></li>
44:                       <li><strong>Date response required by:</strong> <%= @info_request.date_response_required_by %></li>
45:                       <li><strong>Very overdue after:</strong> <%= @info_request.date_very_overdue_after %></li>

RAILS_ROOT: /home/alaveteli/alaveteli
Application Trace | Framework Trace | Full Trace

/home/alaveteli/alaveteli/app/models/info_request.rb:693:in `last_event_forming_initial_request'
/home/alaveteli/alaveteli/app/models/info_request.rb:714:in `date_very_overdue_after'
/home/alaveteli/alaveteli/app/models/info_request.rb:615:in `base_calculate_status'
/home/alaveteli/alaveteli/app/models/info_request.rb:607:in `calculate_status'
/home/alaveteli/alaveteli/app/views/admin_request/show.rhtml:42:in `_run_rhtml_app47views47admin_request47show46rhtml'
/home/alaveteli/alaveteli/app/models/info_request.rb:1134:in `for_admin_column'
/home/alaveteli/alaveteli/app/models/info_request.rb:1133:in `each'
/home/alaveteli/alaveteli/app/models/info_request.rb:1133:in `for_admin_column'
/home/alaveteli/alaveteli/app/views/admin_request/show.rhtml:28:in `_run_rhtml_app47views47admin_request47show46rhtml'
/home/alaveteli/alaveteli/app/views/admin_request/show.rhtml:5:in `_run_rhtml_app47views47admin_request47show46rhtml'
/home/alaveteli/alaveteli/app/controllers/application_controller.rb:105:in `record_memory'

Request

Parameters:

{"id"=>"113"}

Show session dump
Response

Headers:

{"Vary"=>"Cookie",
 "Content-Type"=>"",
 "Cache-Control"=>"no-cache"}

Destroying some requests brings up an error

While cleaning up the test requests for the alpha, got three behaviors:

  • request is deleted with no issues
  • deleting the request is followed by an error, but still gets deleted
  • deleting the request is followed by an error, not deleted eventually

Figuring the category options

Currently we have the categories "silly ministries" and "popular agencies", we wish to delete them and add new ones.
The authority edit page allows for labels to be added, but they are not shown.

Content to static pages and links

The about and privacy pages, and various links on the site all link to the default Alaveteli resources.

Planned:
About and privacy- Nir wrote something
Twitter - we should open a user
Blog - askdata category in the Hasadna blog

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.