📜 ⬆️ ⬇️

Open source anti-corruption code (and not only)

update (06/10/2014): Alexey published the FBK report for 2013, referred to this post and promised to complete the system in 2014. And that's cool. Habr - power.

Introduction


I should have written this post about a year ago. At the end of 2012, as director of the Foundation for Combating Corruption , I, among other Foundation employees, organized a second fundraising for RosPil , where we made a number of promises regarding the development of the Foundation’s information system, for which we should have reported for a long time.

RosPil is the first truly successful public project in Russia, the logo of which, incidentally, was invented by an anonymous user Habr , and Pavel Senko also created a website for Ruby. The essence of the project is to conduct formal legal investigations of suspicious purchases with zakupki.gov.ru by contacting government agencies and giving publicity to the results.
')
image

One of the ideas that I actively promoted in the Fund is greater transparency and automation of the work of lawyers. I wanted to refuse to use Googledocs for publishing documents, instead loading them into a special system, where the connection between requests and responses to them, as well as documents belonging to one “case” will be monitored. Thus, it will not be possible to forget about any matters, it will always be seen that everything is brought to the end and not abandoned. A place will appear where you can look at the activities of the entire Foundation and each lawyer in a historical perspective in a convenient and accessible way.

That is why the request for money ( working link to the full presentation , see slide 25) included the creation of such an information system. As well as a promise to disclose it to other lawyers and organizations. Fundraising was successful, they collected more than ten million rubles and FBK really developed such a system under my leadership as the director of the fund and the product manager. About a million rubles was spent on it and I feel obliged to officially share the money made with public money. All code and designs are licensed under an open license Creative Commons ( Attribution-NonCommercial-ShareAlike 4.0 International ), which is reflected in the agreements with the Foundation signed by Alexey.

So I have a teaser about what happened, so that it would be interesting for you to read further. The source code, all designs are published below, the main entities and development plans of the system are described. And, of course, thanks to the authors.

image

Current system version and basic concepts


Unfortunately, the Foundation did not fully implement the system, although Aleksey even gave references to several investigations. The current version with several inquiries of the Foundation can be found here: kbk.fbk.info/investigations . The following basic entities are available to an unauthorized user:

To-do list

List of all published cases of the fund. Visible to the essence of where addressed when the last time. For authorized there are all sorts of filters and other logical (see designs below). kbk.fbk.info

image

Case page

The hierarchy of documents of the case, where you can see who went where, how they answered, the connection of documents and the result. kbk.fbk.info/investigations/64

image

Separate document

All the details of the document, including the scan of the paper itself, so that you can read. kbk.fbk.info/documents/452

image

New design and second version


The first version of the system was designed to automate the work of the Foundation and more effective interaction of lawyers with Alexey and other employees. The second version was developed with an eye to the full publication, discussion and sharing of affairs on the Internet. The main difficulty here is due to the fact that high-profile investigations cannot be published immediately, because the PR occasion disappears and the idea can be stolen by competitors, or preventively corrected by the authorities, so the case is first conducted inside, then published, then supplemented. In addition, document scans contain passport data and other personal information of correspondence participants who need to be hidden when they are published, but remain accessible within.

The second version is in the form of fully developed design layouts of all pages and most of the code. It did not work out just to lay out and pull. The full archive with layouts in psd is here: yadi.sk/d/HIcMaErcRsLL4 , and below I want to show a few basic innovations. By the way, the overall design is also modernized.

Version of the case page for publication

image

Comments

image

Popup for document preview

image

A document page with options to cover your personal and highlight important.

image

Download videos and photos

image

Video

image

The full archive contains about 20 screens, with filters, all states, preparation for publication and other authorizations and error pages. In fact, a fully developed product interface.

Source


I do not know what to say, because I myself am an expert on .NET development, I don’t understand anything in the ruby ​​code.

The code is here: github.com/fbkinfo/kbk . The code is covered with tests, an automatic build is set up with their run on travis-ci and the codeclimate is connected. Attached deployment instructions. Questions can be addressed directly to the authors (see below), I think no one will refuse to help.

Ideas and perspectives of use


Plans for the following versions were as follows:


I think the direction is clear. In an endless perspective, perhaps, this could even be monetized, by selling, for example, to the state, as the basis for a normal feedback system and appeals to officials of all levels. But most importantly, it would allow to solve much more specific tasks than single, albeit very resonant investigations.

Authors and thanks


I want to express many thanks to everyone who took part in this interesting project and made it possible:


I think none of them will refuse to help you with advice on the development of the project or its ideas. For interaction with the Foundation, you can write to the current director, Roman Rubanov . You can always contact me here: www.facebook.com/alexander.gornik .

PS: Friends, this post is not about politics, but about the interest of public product development with open source. I would very much like the materials and ideas of this project to be used for the benefit of our society and, I think, a better place than Habr for publication with a similar goal not to be found. I remind you that the political discussions are absolutely not welcome according to the rules, it’s better to send all political questions to me on PM.

PPS: Tomorrow is Alexey's birthday, so, taking this opportunity, I congratulate him on his coming day, I wish you excuses in all matters and opportunities to do all this and much, much more from what was planned.

Source: https://habr.com/ru/post/224823/


All Articles