memopol issueshttps://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues2017-03-23T15:24:11+01:00https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/142Dossier detail2017-03-23T15:24:11+01:00njoyardDossier detail*Created by: njoyard*
*See https://github.com/political-memory/political_memory/wiki/Guidelines-for-design-v3-migration*
The dossier detail page has a common header with info on the dossier and tabs on the bottom. Each tab has a diff...*Created by: njoyard*
*See https://github.com/political-memory/political_memory/wiki/Guidelines-for-design-v3-migration*
The dossier detail page has a common header with info on the dossier and tabs on the bottom. Each tab has a different URL.
Note: the description of proposals/recommendations below is different from the design mockup. This is because the mockup shows the different proposals as columns while there may be 100s of them. Feel free to propose something more appropriate.
Features:
* [x] Dossier header
* [x] Title
* [x] Theme badge(s)
* [x] Recommendations tab
* [x] Lists proposals that have recommendations
* [x] For each one: title, weight (with explanation tooltip), status, #for #abstain #against, theme badge(s)
* [x] Proposals tab
* [x] Lists proposals w/o recommendations
* [x] For each one: title, status, #for #abstain #against
* [x] "add recommendation" button when admin logged
Postponed:
* Description/Abstract (to add in data model)
* Placeholder for piphone link when a campaign is ongoing
* Placeholder for top 3 / worst 3 reps maybe ? Using badges ?1. Design v3https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/141Theme detail2017-03-23T15:24:11+01:00njoyardTheme detail*Created by: njoyard*
*See https://github.com/political-memory/political_memory/wiki/Guidelines-for-design-v3-migration*
The theme detail page has a common header with info on the theme and tabs on the bottom. Each tab has a differen...*Created by: njoyard*
*See https://github.com/political-memory/political_memory/wiki/Guidelines-for-design-v3-migration*
The theme detail page has a common header with info on the theme and tabs on the bottom. Each tab has a different URL.
Note: the description of proposals/recommendations below is different from the design mockup. This is because the mockup shows the different proposals as columns while there may be 100s of them. Feel free to propose something more appropriate.
Features:
* [x] Theme header
* [x] Title
* [x] Description/Abstract
* [x] Press release tab
* [x] List of links to press releases (with title and date)
* [x] Dossiers tab
* [x] Cards for associated dossier
* [x] Links to the dossier detail page
* [x] Proposals tab
* [x] List of associated proposals
* [x] Shows recommendation, weight+explanation tooltip, status, #for #against #abstain badges
* [x] Positions tab
* [x] Cards for associated positions
* [x] In time columns (last 1m, last 6m, last 1y, before)
* [x] Display details on click (or popup ?)
* [x] Display representative
Postponed:
* Placeholder for piphone link when a campaign is ongoing
* Placeholder for top 3 / worst 3 reps maybe ? Using badges ?1. Design v3https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/140Representative detail2017-03-23T15:24:32+01:00njoyardRepresentative detail*Created by: njoyard*
*See https://github.com/political-memory/political_memory/wiki/Guidelines-for-design-v3-migration*
Representative detail page has a common header with info on the rep and tabs on the bottom. Each tab has a diffe...*Created by: njoyard*
*See https://github.com/political-memory/political_memory/wiki/Guidelines-for-design-v3-migration*
Representative detail page has a common header with info on the rep and tabs on the bottom. Each tab has a different URL.
Features:
* [x] Representative header
* [x] Photo + name
* [x] Score badge ~~+ trend~~
* [x] Chamber, country, party
* [x] Bio
* [x] Contact badges (social networks, websites, phones, addresses, emails, parl pages)
* [x] Votes tab
* [x] Show scores by dossier
* [x] Dossiers can be unfolded to show individual votes (with recommendation, position and score, + a placeholder for an infobox that tells why that vote awarded so many points)
* [x] Mandates tab
* [x] Cards for each mandate, with bigger cards for main kinds (list of main kinds should be configurable)
* [x] Two columns : current, former mandates (former mandates are all small cards ? in case there are more of them)
* [x] Positions tab (to be refined)
* [x] Display positions as small cards
* [x] Cards have badges for themes
* [x] Cards show details on click (popup ?)
Postponed:
* Initially shows all dossiers but allow filtering by theme
* Radial graph with score on each theme (the scale for each theme is worst mep to best mep score)
* Position score badges
* Placeholder for piphone call button when ongoing campaign
* Position columns by kind (amendment, parl debate, social post, press) (need to add kind)1. Design v3https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/139Dossier list2017-03-23T15:24:33+01:00njoyardDossier list*Created by: njoyard*
*See https://github.com/political-memory/political_memory/wiki/Guidelines-for-design-v3-migration*
Dossier list features
* [x] Number of results ~~with search criteria~~
* [x] Card display with count badges
...*Created by: njoyard*
*See https://github.com/political-memory/political_memory/wiki/Guidelines-for-design-v3-migration*
Dossier list features
* [x] Number of results ~~with search criteria~~
* [x] Card display with count badges
* [x] Number of proposal
* [x] Number of recommendations
* [x] Badges for themes
* [x] Order by name/recommendations asc/desc
1. Design v3https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/138Themes list2017-03-23T15:24:33+01:00njoyardThemes list*Created by: njoyard*
*See https://github.com/political-memory/political_memory/wiki/Guidelines-for-design-v3-migration*
Themes list features
* [x] Card display with count badges
* [x] Number of links
* [x] Number of dossier...*Created by: njoyard*
*See https://github.com/political-memory/political_memory/wiki/Guidelines-for-design-v3-migration*
Themes list features
* [x] Card display with count badges
* [x] Number of links
* [x] Number of dossiers
* [x] Number of proposal
* [x] Number of public positions
* [x] Order by name asc/desc
Postponed:
* Order by update *(update to add in data model)*
* Placeholder for "ongoing campaign" badge (to add in data model)
1. Design v3https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/137Representative list2017-03-23T15:24:33+01:00njoyardRepresentative list*Created by: njoyard*
*See https://github.com/political-memory/political_memory/wiki/Guidelines-for-design-v3-migration*
Representative list features
* [x] Show total result count ~~with search criteria~~ *(removed as they are mad...*Created by: njoyard*
*See https://github.com/political-memory/political_memory/wiki/Guidelines-for-design-v3-migration*
Representative list features
* [x] Show total result count ~~with search criteria~~ *(removed as they are made visible in the nav bar)*
* [x] Pagination
* [x] Order by name/score asc/desc
* [x] Grid view
* [x] Total score badge
* [x] Big rep photo, all the same size
* [x] Country, chamber, party icon
* [x] Country, chamber, party detail on hover
* [x] CSV export of current filter (but include data from all pages)
Postponed:
* List view and display switch button
* Total score badge
* Placeholder for score trend
* Big rep photo, all the same size
* Country, chamber, party
1. Design v3https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/136Navigation pane2017-03-23T15:24:33+01:00njoyardNavigation pane*Created by: njoyard*
*See https://github.com/political-memory/political_memory/wiki/Guidelines-for-design-v3-migration*
Implement navigation pane for use in all pages
* [x] Header with new logo, short description and link to blog...*Created by: njoyard*
*See https://github.com/political-memory/political_memory/wiki/Guidelines-for-design-v3-migration*
Implement navigation pane for use in all pages
* [x] Header with new logo, short description and link to blog
* [x] Simple rep search by name
* [x] Advanced search
* [x] Rep search by chamber, country, party (group), committee or other group
* [x] Rep search by min/max score
* [x] Dossier search (not themes!) by name, chamber
* [x] Automatically expanded when in use for what's displayed on the right ?
* [x] Access to unfiltered listing pages
* [x] Representatives
* [x] Themes
* [x] Dossiers
* [x] Keep search form filled with selected criteria after submit
* [x] Position submission form
1. Design v3https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/147Enhance positions2017-03-23T15:24:11+01:00njoyardEnhance positions*Created by: njoyard*
* Score bonus/malus
* Title (and re-run import scripts to set it correctly apart from content)
* Kind (amendment, parl debate, social post, press...)*Created by: njoyard*
* Score bonus/malus
* Title (and re-run import scripts to set it correctly apart from content)
* Kind (amendment, parl debate, social post, press...)2.2. New features after design v3https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/143Import committee votes from parltrack2017-03-23T15:24:11+01:00njoyardImport committee votes from parltrack*Created by: njoyard*
See http://parltrack.euwiki.org/dumps/ep_com_votes.json.xz
*Created by: njoyard*
See http://parltrack.euwiki.org/dumps/ep_com_votes.json.xz
2.2. New features after design v3njoyardnjoyardhttps://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/118Add new Theme model2017-03-23T15:24:33+01:00njoyardAdd new Theme model*Created by: njoyard*
Themes should enable classifying dossiers, proposals, positions...
* ~~Data model~~
* ~~Add a Theme model with a text description~~
* ~~Get rid of the "tags" field on Position~~
* ~~Add many-to-many rel...*Created by: njoyard*
Themes should enable classifying dossiers, proposals, positions...
* ~~Data model~~
* ~~Add a Theme model with a text description~~
* ~~Get rid of the "tags" field on Position~~
* ~~Add many-to-many relations between Theme and~~
* ~~Dossier~~
* ~~Proposal~~
* ~~Position~~
* UI
* ~~Enable selecting themes from the admin for dossiers, proposals and positions~~
* Replace the tags field on the position page with an autocomplete-multiselect
* Display representative score by theme
2.2. New features after design v3njoyardnjoyardhttps://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/114Search dossiers by document URL2017-03-23T15:24:33+01:00njoyardSearch dossiers by document URL*Created by: njoyard*
Useful when looking for a FR Senate/AN URL part => when searching from the form, look at document URLs, too*Created by: njoyard*
Useful when looking for a FR Senate/AN URL part => when searching from the form, look at document URLs, too2.2. New features after design v3https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/203Fix migrations2017-09-19T13:41:35+02:00njoyardFix migrationsSee https://git.laquadrature.net/memopol/memopol/-/jobs/1959See https://git.laquadrature.net/memopol/memopol/-/jobs/1959njoyardnjoyardhttps://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/202The homepage have an image with a way too high width2017-09-11T12:50:16+02:00PorkepixThe homepage have an image with a way too high widthOn the homepage, `banniere-en.png` have a way too high width, this results in a big horizontal scrolling.On the homepage, `banniere-en.png` have a way too high width, this results in a big horizontal scrolling.https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/201Homepage hit a 404 trying to load banniere_en.png2017-09-07T17:03:18+02:00PorkepixHomepage hit a 404 trying to load banniere_en.pngAs stated in the Title, when going on the homepage it's trying to load the file banniere_en.png.
This file hit a 404 as the original file is name banniere-en.pngAs stated in the Title, when going on the homepage it's trying to load the file banniere_en.png.
This file hit a 404 as the original file is name banniere-en.pnghttps://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/198lot of data missing on initial setup with `update_all`2017-06-18T16:17:24+02:00jasterlot of data missing on initial setup with `update_all`When I try to populate a new instance with `./bin/update_all`, a lot of data is missing compared to the sources and official memopol instance.
It may be that I am doing something wrong when trying to set up my instance however. I crea...When I try to populate a new instance with `./bin/update_all`, a lot of data is missing compared to the sources and official memopol instance.
It may be that I am doing something wrong when trying to set up my instance however. I created a small project based on `docker-compose` that reproduces the issue. The project is [available here](https://git.laquadrature.net/jaster/memopol-docker-test-update).
To reproduce the issue, clone the project and run `docker-compose up` (or preferably `docker-compose up > output.log` given the output size). This will create an empty database, clone the `master` of memopol, and try to run what I *believe* to be a valid project setup for populating the DB.
The relevant section can be seen on the [CMD part of the dockerfile](https://git.laquadrature.net/jaster/memopol-docker-test-update/blob/master/Dockerfile#L13-18). Please do tell me if something is wrong here that could explain the discrepancy.
Since the process is rather long, I uploaded the logfile I obtained when running the project [here](https://cloud.jorquera.net/s/bO04giILcDzypcj) (please note that I intend to delete this when the issue is closed). The file is rather large (34MB, 225698 lines long) so be careful to use a decent editor when trying to open it (like vim or emacs :wink:).
For comparison here are the differences in number of entries between [https://memopol.lqdn.fr](https://memopol.lqdn.fr) and my instance:
| table | lqdn | mine |
|-----------------|--------|-------|
| chambers | 3 | 3 |
| constituencies | 718 | 677 |
| dossiers | 16272 | 14536 |
| groups | 1636 | 540 |
| mandates | 83013 | 16596 |
| proposals | 9337 | 7977 |
| representatives | 4934 | 3660 |
| votes | 161471 | 29460 |https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/196Cleanup deceptive old name2017-06-01T12:55:51+02:00GibusCleanup deceptive old nameWhile memopol has not achieved to import data created in initial (perl/wiki) version, all references to "Political Memory" should be replaced by "memopol". Patch attached [memopol_everywhere.patch](/uploads/926e39eac8e1ea6c02704d6e49b15a...While memopol has not achieved to import data created in initial (perl/wiki) version, all references to "Political Memory" should be replaced by "memopol". Patch attached [memopol_everywhere.patch](/uploads/926e39eac8e1ea6c02704d6e49b15ac2/memopol_everywhere.patch)okhinokhin@laquadrature.netokhinokhin@laquadrature.nethttps://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/195CSRF verification failed. (CSRF cookie when submitting forms)2017-06-01T12:55:51+02:00AlexCSRF verification failed. (CSRF cookie when submitting forms)I am having this error while making a new public position (when the representative is not yet in the data base) using Firefox-ESR 45.9.0:
<pre>
Forbidden (403)
CSRF verification failed. Request aborted.
You are seeing this messag...I am having this error while making a new public position (when the representative is not yet in the data base) using Firefox-ESR 45.9.0:
<pre>
Forbidden (403)
CSRF verification failed. Request aborted.
You are seeing this message because this site requires a CSRF cookie when submitting forms. This cookie is required for security reasons, to ensure that your browser is not being hijacked by third parties.
If you have configured your browser to disable cookies, please re-enable them, at least for this site, or for 'same-origin' requests.
More information is available with DEBUG=True.
</pre>
I can reproduce the error from another web browser (TOR with no additional cookie plugin) so it might come from the server but I can't tell.
What I actually tried:
![Screenshot_from_2017-05-19_16-14-02](/uploads/0f67cea83afd14b9a40f900ab721b5fb/Screenshot_from_2017-05-19_16-14-02.png)
What I got:
![Screenshot_from_2017-05-19_14-38-08](/uploads/3d1897593374332693567cec22076285/Screenshot_from_2017-05-19_14-38-08.png)
I hope it can help if a bug is out there.okhinokhin@laquadrature.netokhinokhin@laquadrature.nethttps://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/193bin/dev.sh sets incorrect alias for memopol-update-all2017-05-14T14:49:03+02:00jasterbin/dev.sh sets incorrect alias for memopol-update-allDue to a typo in its definition, the alias `memopol-update-all` set by `bin/dev.sh` does not work
(MR incoming on this issue :wink: )Due to a typo in its definition, the alias `memopol-update-all` set by `bin/dev.sh` does not work
(MR incoming on this issue :wink: )https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/192bin/dev.sh does not correctly detect shell on all distros2017-05-14T14:49:03+02:00jasterbin/dev.sh does not correctly detect shell on all distrosbin/dev.sh uses hardcoded paths to `/bin/bash` and `/bin/zsh`. However depending on the distro used, these binaries can be stored elsewhere.
For example, in my debian system, `zsh` is stored in `/usr/bin/zsh`.
This detection should be ...bin/dev.sh uses hardcoded paths to `/bin/bash` and `/bin/zsh`. However depending on the distro used, these binaries can be stored elsewhere.
For example, in my debian system, `zsh` is stored in `/usr/bin/zsh`.
This detection should be made more robust (e.g. using globs)
(MR incoming on this issue :wink:)https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/185Import process crashes with to "bogus" json entry2017-06-01T12:55:51+02:00jasterImport process crashes with to "bogus" json entryCurrently, when running `bin/update_all` or `bin/update_representatives`, the process crashes due to a "bogus" MEP json entry missing a `Birth` element.
This causes [import_representatives to crash since this field is used without check...Currently, when running `bin/update_all` or `bin/update_representatives`, the process crashes due to a "bogus" MEP json entry missing a `Birth` element.
This causes [import_representatives to crash since this field is used without check](https://git.laquadrature.net/memopol/memopol/blob/master/src/representatives/contrib/parltrack/import_representatives.py#L94-97), without completing the import process.
In this specific instance, the parltrack data entry which causes the failure concerns a MEP name Maurizio Enzo LUPI (funnily, it seems to also cause an issue on parltrack, see https://github.com/civicdataeu/parltrack/issues/28).okhinokhin@laquadrature.netokhinokhin@laquadrature.net