memopol issueshttps://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues2017-05-14T15:37:59+02:00https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/152Cleanup and document deployment2017-05-14T15:37:59+02:00njoyardCleanup and document deployment*Created by: njoyard*
- Remove openshift references where not needed
- Add a settings.local.py import
- Create ready-to-use deploy and cron scripts*Created by: njoyard*
- Remove openshift references where not needed
- Add a settings.local.py import
- Create ready-to-use deploy and cron scriptsokhinokhin@laquadrature.netokhinokhin@laquadrature.nethttps://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/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/132Make sure the representative detail page is fast2017-03-23T15:24:33+01:00robin TissotMake sure the representative detail page is fast*Created by: lauxley*
The amount of data loaded can be significant, we need to make sure its not too long or handicap mobile users, the design resolved this by using iframe but it would require to split the view in 4, ajax maybe ?*Created by: lauxley*
The amount of data loaded can be significant, we need to make sure its not too long or handicap mobile users, the design resolved this by using iframe but it would require to split the view in 4, ajax maybe ?https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/124Merge external apps2017-03-23T15:24:33+01:00njoyardMerge external apps*Created by: njoyard*
Include d-r and d-r-v in the project*Created by: njoyard*
Include d-r and d-r-v in the projecthttps://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/108Enable loggin 404s on sentry2017-03-23T15:24:33+01:00njoyardEnable loggin 404s on sentry*Created by: njoyard*
Add this middleware at the top : raven.contrib.django.raven_compat.middleware.Sentry404CatchMiddleware*Created by: njoyard*
Add this middleware at the top : raven.contrib.django.raven_compat.middleware.Sentry404CatchMiddlewarehttps://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/101Underflow on scores computation2017-03-23T15:24:33+01:00njoyardUnderflow on scores computation*Created by: njoyard*
Pgsql representativescores throws DataError: underflow on https://lqdn.memopol.eu/legislature/representative/ with the following settings:
- decay = 1 / 10
- exponent = 1
- decimals = 0
(See http://s.yourlabs...*Created by: njoyard*
Pgsql representativescores throws DataError: underflow on https://lqdn.memopol.eu/legislature/representative/ with the following settings:
- decay = 1 / 10
- exponent = 1
- decimals = 0
(See http://s.yourlabs.org/sentry/lqdn/issues/3774/)
njoyardnjoyardhttps://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/98API error2017-03-23T15:24:33+01:00njoyardAPI error*Created by: njoyard*
On `/api/dossier_scores/`:
```
ImproperlyConfigured: Could not resolve URL for hyperlinked relationship using view name "representative-detail". You may have failed to include the related model in your API, or ...*Created by: njoyard*
On `/api/dossier_scores/`:
```
ImproperlyConfigured: Could not resolve URL for hyperlinked relationship using view name "representative-detail". You may have failed to include the related model in your API, or incorrectly configured the `lookup_field` attribute on this field.
(6 additional frame(s) were not displayed)
...
File "rest_framework/serializers.py", line 674, in data
ret = super(ListSerializer, self).data
File "rest_framework/serializers.py", line 239, in data
self._data = self.to_representation(self.instance)
File "rest_framework/serializers.py", line 614, in to_representation
self.child.to_representation(item) for item in iterable
File "rest_framework/serializers.py", line 472, in to_representation
ret[field.field_name] = field.to_representation(attribute)
File "rest_framework/relations.py", line 366, in to_representation
raise ImproperlyConfigured(msg % self.view_name)
```https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/81Enhance API2017-03-23T15:24:33+01:00njoyardEnhance API*Created by: njoyard*
- enable displaying and filtering representatives by group
- add displaying representatives from a group*Created by: njoyard*
- enable displaying and filtering representatives by group
- add displaying representatives from a grouphttps://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/79Add dates to applicable models2017-03-23T15:24:33+01:00njoyardAdd dates to applicable models*Created by: njoyard*
We need dates at least on dossiers, ~~proposals and votes~~ to enable weighing scores by age.*Created by: njoyard*
We need dates at least on dossiers, ~~proposals and votes~~ to enable weighing scores by age.https://git.laquadrature.net/la-quadrature-du-net/memopol/memopol/-/issues/71Enhance footer2017-03-23T15:24:33+01:00njoyardEnhance footer*Created by: njoyard*
Enhance the footer display, add missing links (irc, blog... and parltrack of course)*Created by: njoyard*
Enhance the footer display, add missing links (irc, blog... and parltrack of course)