Skip to content

Amendments proposals on proposals#3958

Closed
agustibr wants to merge 35 commits intomasterfrom
feature/amendments-proposals-on-proposals
Closed

Amendments proposals on proposals#3958
agustibr wants to merge 35 commits intomasterfrom
feature/amendments-proposals-on-proposals

Conversation

@agustibr
Copy link
Copy Markdown
Contributor

@agustibr agustibr commented Aug 3, 2018

🎩 What? Why?

A Participant can submit an emendation of a proposal, coauthors can accept or reject it.

Decidim::Amendments is a module introduced to decidim-core used in decidim-proposals.

The "Decidim::Amendable" concern introduces:

  • resource.emendations : the derivated (or child) resources
  • resource.amenders : users that have emendations for the resource
  • resource.amended : the original (or parent) resource that was amended
  • resource.amendment : references the association
  • resource.amendable?
  • resource.emendation?

In this PR, an admin can enable amendments and a participant can create an amendment.

📥 Related PR's adding funcionality (that merge into this PR)

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG entry
  • Add documentation regarding the feature
  • Add/modify seeds
  • Add tests
  • Another subtask

📷 Screenshots (optional)

  • Amendment feature has to be activated in the proposal component admin panel:
    screenshot from 2018-08-03 12-10-32
  • In the proposal details page an new button amend appears:
    screenshot from 2018-08-03 12-15-03
  • When clicking the amend button a proposal edition page is opened, the participant can change the content of the proposal and push the amend confirmation button:
    screenshot from 2018-08-03 12-21-17
  • A list of amendments appears in the proposal page:
    screenshot from 2018-08-03 12-24-56
  • An amendment page is created with all the properties of a normal proposal but with a very clear reference of being an amendment and a visible link to the mother proposal:
    • evaluating: screenshot from 2018-08-03 12-27-31
    • rejected: screenshot from 2018-08-03 12-27-49
    • accepted: screenshot from 2018-08-03 12-28-15

@ghost ghost assigned agustibr Aug 3, 2018
@ghost ghost added the status: WIP label Aug 3, 2018
@agustibr agustibr force-pushed the feature/amendments-proposals-on-proposals branch from f7ef184 to 626eb1e Compare August 3, 2018 11:46
@agustibr agustibr mentioned this pull request Aug 6, 2018
2 tasks
@agustibr agustibr force-pushed the feature/amendments-proposals-on-proposals branch 5 times, most recently from 2eb37c2 to 33b17d2 Compare August 8, 2018 12:27
@agustibr agustibr force-pushed the feature/amendments-proposals-on-proposals branch 7 times, most recently from 48d4026 to 28f76c8 Compare August 13, 2018 16:01
@agustibr agustibr force-pushed the feature/amendments-proposals-on-proposals branch 7 times, most recently from c0575ea to 1ca5f26 Compare August 24, 2018 08:15
@oriolgual
Copy link
Copy Markdown
Contributor

@agustibr could you please rebase this?

@agustibr agustibr force-pushed the feature/amendments-proposals-on-proposals branch from 1ca5f26 to 7c1e344 Compare August 27, 2018 10:53
@mrcasals
Copy link
Copy Markdown
Contributor

Also @agustibr some conflicts have appeared, can you fix them please? 😄

agustibr and others added 22 commits November 23, 2018 09:34
* Fix proposals/emendations state

* Test ProposalMCell proposal/emendation state

* Fix rubocop offences (forgot)

* Refactor amend proposal system spec

* Start fixing admin dashboard

* Fix admin dashboard

* Start fixing amendment form validations

* Refactor amendment form validations

Basic functionality working with redirect_to amendable_gid

* Refactor amendment form validation redirect_to

* Feature/amendments proposals on proposals withdraw (#18)

* Fix emendation withdraw

* Refactor change_proposal_state_to_withdrawn

* Fix proposals_show withdrawn translation missing

* Fix states of proposals

* Button Answer disabled if amendment

* Refactor withdraw to work with "See all withdrawn proposals"

* Check for amendments even if user is not logged in

* Amend Proposal system test

* Fix error when merging cristian/aitor branches

* Check for amendments even if user is not logged in - fixed

* Fix rubocop offences

* Fix mistake when refactoring emendation withdraw

Forgot to change withdraw_proposal.rb back to its original state.

* Add withdraw amendment test

* Fix admin dashboard

* Add red color to withdrawn state in admin manager

* Change proposal_state to resource_state

* Resolve conversations

* Feature/amendments proposals on proposals unable button (#19)

* Unable "Answer" button when the proposal is an emendation

* Fixed offenses with Rubocop

* fixed translate
@aitorlb aitorlb force-pushed the feature/amendments-proposals-on-proposals branch from 8cb61da to acf5653 Compare November 23, 2018 08:36
.by(1)
end

it "broadcasts ok" do
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget about readding these specs please

@aitorlb
Copy link
Copy Markdown
Contributor

aitorlb commented Nov 26, 2018

@aitorlb aitorlb closed this Nov 26, 2018
@ghost ghost removed the status: WIP label Nov 26, 2018
@mrcasals mrcasals deleted the feature/amendments-proposals-on-proposals branch March 4, 2019 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants