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

Update create participatory process command. #1334

Merged
merged 3 commits into from
May 10, 2017

Conversation

lastpotion
Copy link
Contributor

@lastpotion lastpotion commented May 9, 2017

🎩 What? Why?

When an user creates a new PP as an admin, some of the optional fields weren't saved properly with the create_participatory_process command.

This PR updates this attribute list to solve the issue, fixes the redirect_to and add map_model method to the respective form to fix some rendering issues.

📌 Related Issues

📷 Screenshots (optional)

screen shot 2017-05-10 at 09 24 37

👻 GIF

@lastpotion lastpotion changed the title Add missing create_command fields Update create participatory process command. May 9, 2017
@codecov
Copy link

codecov bot commented May 9, 2017

Codecov Report

Merging #1334 into master will decrease coverage by 0.29%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #1334     +/-   ##
=========================================
- Coverage   95.47%   95.17%   -0.3%     
=========================================
  Files         420      393     -27     
  Lines        7202     6825    -377     
=========================================
- Hits         6876     6496    -380     
- Misses        326      329      +3
Impacted Files Coverage Δ
...ands/decidim/admin/create_participatory_process.rb 86.36% <ø> (-13.64%) ⬇️
...ecidim/admin/participatory_processes_controller.rb 92.15% <100%> (ø) ⬆️
.../forms/decidim/admin/participatory_process_form.rb 100% <100%> (ø) ⬆️
...idim-meetings/lib/decidim/meetings/admin_engine.rb 63.63% <0%> (-36.37%) ⬇️
...cidim-meetings/lib/decidim/meetings/list_engine.rb 72.72% <0%> (-27.28%) ⬇️
decidim-meetings/lib/decidim/meetings/feature.rb 45.83% <0%> (-16.67%) ⬇️
...im-proposals/lib/decidim/proposals/admin_engine.rb 100% <0%> (ø) ⬆️
decidim-core/lib/decidim/resource_manifest.rb 100% <0%> (ø) ⬆️
decidim-core/lib/decidim/core.rb 100% <0%> (ø) ⬆️
... and 27 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1238dae...bd36a81. Read the comment docs.

@codecov
Copy link

codecov bot commented May 9, 2017

Codecov Report

Merging #1334 into master will decrease coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1334      +/-   ##
==========================================
- Coverage   95.47%   95.41%   -0.06%     
==========================================
  Files         420      410      -10     
  Lines        7202     7086     -116     
==========================================
- Hits         6876     6761     -115     
+ Misses        326      325       -1
Impacted Files Coverage Δ
...ecidim/admin/participatory_processes_controller.rb 92.15% <100%> (ø) ⬆️
...ands/decidim/admin/create_participatory_process.rb 100% <100%> (ø) ⬆️
.../forms/decidim/admin/participatory_process_form.rb 100% <100%> (ø) ⬆️
...im-proposals/lib/decidim/proposals/admin_engine.rb 100% <0%> (ø) ⬆️
decidim-core/lib/decidim/resource_manifest.rb 100% <0%> (ø) ⬆️
decidim-core/lib/decidim/core.rb 100% <0%> (ø) ⬆️
decidim-core/lib/decidim/exporters/csv.rb
decidim-core/lib/decidim/file_zipper.rb
...lers/decidim/proposals/admin/exports_controller.rb
.../services/decidim/proposals/proposal_serializer.rb
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1238dae...d050c77. Read the comment docs.

@lastpotion lastpotion merged commit 485d40b into master May 10, 2017
@lastpotion lastpotion deleted the fix/participatory-forms/missing-fields branch May 10, 2017 08:14
alecslupu added a commit to tremend-cofe/decidim that referenced this pull request Nov 28, 2020
tramuntanal pushed a commit that referenced this pull request Dec 15, 2020
* Adding Types to graphql

* GraphQL api syntax for Decidim, HashTag, Organization, Scalar Refactory

* Using deprecated DSL to avoid ! issues (graphql - #1334)

* Fix failing tests

* Linters

* Update decidim-api/lib/decidim/api/test/type_context.rb

Co-authored-by: Ivan Vergés <[email protected]>

* Update decidim-core/lib/decidim/core/engine.rb

Co-authored-by: Ivan Vergés <[email protected]>

* Use full Namespace for GraphQL types

Co-authored-by: Ivan Vergés <[email protected]>
tramuntanal pushed a commit that referenced this pull request Dec 30, 2020
* Adding Types to graphql

* GraphQL api syntax for Decidim, HashTag, Organization, Scalar Refactory

* Using deprecated DSL to avoid ! issues (graphql - #1334)

* Fix failing tests

* Linters

* Adding tests for accountability

* Adding blogs integration tests

* Partial work on budgets

* Update sortition_type.rb

* Add more tests for other components

* Update decidim-api/lib/decidim/api/test/type_context.rb

Co-authored-by: Ivan Vergés <[email protected]>

* Update decidim-core/lib/decidim/core/engine.rb

Co-authored-by: Ivan Vergés <[email protected]>

* Linters on the project

* Fixing failing tests

* Fix failing tests

* Attept to fix failing tests

* Attempting to fix failing test

* Fixing tests

* Refactor the tests

* Breaking the assertion to understand why is failing

* Breaking the assertion to understand why is failing

* Attempting to fix test

* Attempting to fix test

* Adding tests for assemblies, conferences, consultations, initiatives

* Initiative type integration test + linting

* Enhance test on survey

* Lint tests

Co-authored-by: Ivan Vergés <[email protected]>
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.

Some data fields get deleted when creating a PP
2 participants