Skip to content

Feature proposal infinite edit time#7406

Merged
mrcasals merged 10 commits intodecidim:developfrom
mainio:feature/proposal_infinite_edit_time
Feb 26, 2021
Merged

Feature proposal infinite edit time#7406
mrcasals merged 10 commits intodecidim:developfrom
mainio:feature/proposal_infinite_edit_time

Conversation

@lahdeero
Copy link
Copy Markdown
Contributor

🎩 What? Why?

Currently admins cant set proposal edit time to infinite, so the hacky way is set to it something like 999999 minutes. This may be confusing to user in many ways. This pull request adds option to proposal component settings where admin can set edit time to infinite (as long as the proposal creation is enabled for that component).

📌 Related Issues

https://meta.decidim.org/processes/roadmap/f/122/proposals/16206?order=recent

Testing

  1. Login as admin
  2. Go to admin panel -> Processes -> pick process -> Components -> click configure proposal component
  3. Set Proposal editing -> Allow editing proposals for an infinite amount of time
  4. Create proposal, wait more than "Proposals can be edited by authors before this many minutes passes" and edit proposal.

📋 Checklist

🚨 Please review the guidelines for contributing to this repository.

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

📷 Screenshots

infiniteproposaledittime

♥️ Thank you!

@lahdeero lahdeero changed the title Feature/proposal infinite edit time Feature proposal infinite edit time Feb 17, 2021
@mrcasals
Copy link
Copy Markdown
Contributor

@decidim/product thoughts on this?

@carolromero
Copy link
Copy Markdown
Member

@mrcasals this is ok from @decidim/product, thanks!

</div>

<%= javascript_include_tag "decidim/admin/form" %>
<%= javascript_include_tag "decidim/proposals/admin/component_settings" %>
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.

@lahdeero I think this needs to be added to the precompile_assets section, as in other PRs!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sorry! I moved require to form

@mrcasals
Copy link
Copy Markdown
Contributor

@decidim/product thoughts on this?

@ahukkanen
Copy link
Copy Markdown
Contributor

@decidim/product thoughts on this?

Look above from @carolromero :

@mrcasals this is ok from @decidim/product, thanks!

@mrcasals
Copy link
Copy Markdown
Contributor

Whoops, sorry, reviewing then!

Copy link
Copy Markdown
Contributor

@mrcasals mrcasals left a comment

Choose a reason for hiding this comment

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

Sorry about the confusion, too many things in my head!

Code looks good to me, merging once tests are green!

@mrcasals mrcasals merged commit dab7f14 into decidim:develop Feb 26, 2021
@ahukkanen ahukkanen deleted the feature/proposal_infinite_edit_time branch February 26, 2021 13:59
entantoencuanto added a commit that referenced this pull request Mar 2, 2021
* develop: (25 commits)
  Add css selectors to emails to improve design customization (#7493)
  Only share tokens if component exists (#7499)
  Fix record encryptor hash values JSON parsing for legacy unencrypted hash values (#7494)
  Fix NULL error with weight field in assemblies & processes (#7486)
  Fix proposals to budget import (#7449)
  Fix cost display on proposals (#7450)
  Fix #7487 - Invalid signature on message decryption (#7488)
  New Crowdin updates (#7482)
  Move specs file to correct folder (#7476)
  Improve changelog generator (#7475)
  New Crowdin updates (#7472)
  Prepare 0.25-dev version (#7473)
  New Crowdin updates (#7470)
  New Crowdin updates (#7468)
  Feature proposal infinite edit time (#7406)
  New Crowdin updates (#7457)
  Trigger docs build on folder changes (#7360)
  Add changelog generator based on PR data (#7461)
  Add Votings to Open Data export (#7388)
  Add order in not highlighted assemblies by weight (#7444)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants