Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate accepted emendation and test #20

Conversation

marc-va
Copy link

@marc-va marc-va commented Nov 14, 2018

🎩 What? Why?

📌 Related Issues

  • Related to #?
  • Fixes #?

📋 Subtasks

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

📷 Screenshots (optional)

Description



let(:title) { "Loura Hansen II 1" }
let(:body) {"Dlksdjfklesjfklew lkdjflksdjflk sdlkfjsdlkfjskdjf lskdfj skjflk sjflksdjf lksjflksdjflks jflksd jlkdsjlckjksd"}

Choose a reason for hiding this comment

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

@@ -13,7 +13,7 @@ class ReviewForm < Decidim::Amendable::Form
attribute :body, String
attribute :user_group_id, Integer

validates :id, :amendable_gid, :emendation_gid, presence: true
validates :id, :amendable_gid, :title, :body, :emendation_gid, presence: true

Choose a reason for hiding this comment

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

amendable_fields (in this case :title and :body) should be dynamic as amendable is configurable.

https://github.com/CodiTramuntana/decidim/blob/feature/amendments-proposals-on-proposals/decidim-core/lib/decidim/amendable.rb#L26

agustibr and others added 27 commits November 15, 2018 12:18
* 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
@marc-va marc-va force-pushed the feature/amendments-proposals-on-proposals-accept branch from 8c3cb76 to 3e11a8c Compare November 15, 2018 12:06
@isaacmg410 isaacmg410 force-pushed the feature/amendments-proposals-on-proposals-accept-validate-emendation branch from c571504 to e77b510 Compare November 15, 2018 15:32
@isaacmg410 isaacmg410 force-pushed the feature/amendments-proposals-on-proposals-accept branch from cf1e1e0 to a7253ea Compare November 16, 2018 10:09
@isaacmg410 isaacmg410 closed this Jan 31, 2019
aitorlb pushed a commit that referenced this pull request Aug 8, 2019
@tramuntanal tramuntanal deleted the feature/amendments-proposals-on-proposals-accept-validate-emendation branch February 19, 2021 16:52
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.

4 participants