Commit 0af5a9a
Generalize endorsements and apply to blog posts (decidim#5542)
* Generalize endorsements permissions and extract from proposals.
* [WIP] Extracting Endorsable concern
* [WIP] EndorseResource and UnendorseRerouce commands.
* [WIP] EndorsementsController tests.
* Add timestamps to decidim_endorsements db migration.
* [I18N] Update yamls.
* [WIP] Extract endorsements from proposals module. But keep funcionality for proposals.
* [DOC] Update changelog upgrade notes.
* Apply edlint.js style.
* normalize i18n files.
* [TEST|I18N] Pending development translations.
* [TEST] Update factory modifications to not break other tests.
* [TEST] Extract endorse_proposal_spec logic into system_endorse_resource_examples.
* [TEST] Rename shared system example.
* [REFACTOR] Separate logic and view in endorsement_buttons_cell#render_endorsements_button_card_part.
* Get rid of Decidim::Proposals::ProposalEndorsement.
* Remove uses of proposal_endorsement.
* Remove legady proposal endorsements related exclude from i8n normalization.
* Revert "Remove legady proposal endorsements related exclude from i8n normalization."
* Update tests.
* [TEST] Update endorsement permissions tests.
* Do not remove dummy_resources.coauthorships_count column, as factories depend on that.
* Extract endorser identities partial into a generic identities cell. (decidim#5564)
* Extract endorser identities partial into a generic identities cell. Check if some already exists.
* Remove Coauthorable to DummyResource
* Complete documentation and small refactors to extract helpers to invoke the cells.
* Update decidim-core/app/commands/decidim/endorse_resource.rb
Co-Authored-By: Txus <[email protected]>
* Update decidim-core/app/commands/decidim/endorse_resource.rb
Co-Authored-By: Txus <[email protected]>
* Update CHANGELOG.md
Co-Authored-By: Txus <[email protected]>
* Rubocopify.
* Rubocopify again.
* Provide migration to automatically move ProposalEndorsements into new decidim-core Endorsement db structures.
* Update decidim-proposals/db/migrate/20200120215928_move_proposal_endorsements_to_core_endorsements.rb
Co-Authored-By: Ivan Vergés <[email protected]>
* Fix mispellings in MoveProposalEndorsementsToCoreEndorsements migration
* Remove unneeded join clause in Proposal.newsletter_participant_ids(component)
* Allow legacy data on rollback move ProposalEndorsements to Endorsements
Allow to have rows in decidim_proposals_proposal_endorsements table when rolling back the
MoveProposalEndorsementsToCoreEndorsements. Use #find_or_create_by just in case a migrated
ProposalEndorsement is moved back to its original table.
* [Feature] Make Blog Posts endorsable (decidim#5668)
* Fix errors
* CHANGELOG entry added
* Review when creation_date and comments should be rendered
* Refactor author cell
* Model tests added
* Remove deprecated proposal_endorsement factory.
Co-authored-by: Oliver Valls <[email protected]>
* Make blog posts followable (decidim#5690)
* Make blog posts followable
* Notify followers when creating new comment
* Add CHANGELOG entry
* Generalize follow button partial
* Edit CHANGELOG entry
* Fix proposal tests
* Update tests after merging latest changes from develop
* Update proposal_input_sort_spec when sorting by endorsement_count
* Update changelog
Co-authored-by: jarvisct <[email protected]>
Co-authored-by: Txus <[email protected]>
Co-authored-by: Ivan Vergés <[email protected]>1 parent de58f62 commit 0af5a9a
File tree
100 files changed
+1985
-1378
lines changed- decidim-blogs
- app
- cells/decidim/blogs
- helpers/decidim/blogs
- models/decidim/blogs
- views/decidim/blogs/posts
- config/locales
- db/migrate
- lib/decidim/blogs
- spec/models/decidim/blogs
- decidim-core
- app
- assets/javascripts/decidim
- cells/decidim
- amendable
- author
- endorsement_buttons
- endorsers_list
- commands/decidim
- controllers/decidim
- events/decidim
- helpers/decidim
- models/decidim
- permissions/decidim
- views/decidim/endorsements
- config
- locales
- db/migrate
- lib/decidim
- core
- test
- spec
- commands/decidim
- controllers/decidim
- events/decidim
- helpers/decidim
- models/decidim
- permissions/decidim
- decidim-dev
- config/locales
- lib/decidim/dev/test/rspec_support
- decidim-participatory_processes/app/queries/decidim/participatory_processes
- decidim-proposals
- app
- cells/decidim/proposals
- commands/decidim/proposals
- controllers
- concerns/decidim/proposals
- decidim/proposals
- helpers/decidim/proposals
- admin
- models/decidim/proposals
- permissions/decidim/proposals
- queries/decidim/proposals/metrics
- services/decidim/proposals
- types/decidim/proposals
- views/decidim/proposals
- admin/proposals
- proposal_endorsements
- proposals
- config/locales
- db/migrate
- lib/decidim/proposals
- test
- spec
- commands/decidim/proposals
- controllers/decidim
- forms/decidim/proposals/admin
- helpers
- lib/decidim/proposals
- models/decidim/proposals
- permissions/decidim/proposals
- queries/decidim/proposals/metrics
- system
- types
- docs/advanced
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
100 files changed
+1985
-1378
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
7 | 14 | | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
| 18 | + | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
16 | | - | |
17 | | - | |
| 24 | + | |
| 25 | + | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
Lines changed: 29 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
23 | 46 | | |
24 | 47 | | |
25 | 48 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 49 | + | |
29 | 50 | | |
30 | 51 | | |
31 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| 68 | + | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
42 | 86 | | |
43 | 87 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
37 | 42 | | |
38 | | - | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
45 | | - | |
| 50 | + | |
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
49 | | - | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
| |||
0 commit comments