Skip to content

Filter created initiatives only by author#6658

Merged
tramuntanal merged 6 commits intodevelopfrom
fix/draft-filter
Nov 11, 2020
Merged

Filter created initiatives only by author#6658
tramuntanal merged 6 commits intodevelopfrom
fix/draft-filter

Conversation

@marinavega
Copy link
Copy Markdown

@marinavega marinavega commented Oct 12, 2020

🎩 What? Why?

Removes draft state filter and shows all initiatives (published and not published) when filtering by my initiatives.

This PR updates the changes added in #6584 after a redefinition of the feature.

📌 Related Issues

🟢 Testing

The functionality can be tested in this review app.

📋 Checklist

  • Remove draft state filter
  • Update search_author query
  • Show initiatives with any state when filtering by My initiatives
  • Update tests

📷 Screenshots

Screenshot 2020-10-12 at 12 26 35

@marinavega marinavega changed the title Fhow created initiatives only by author Show created initiatives only by author Oct 12, 2020
@marinavega marinavega changed the title Show created initiatives only by author Filter created initiatives only by author Oct 12, 2020
@marinavega marinavega marked this pull request as ready for review October 12, 2020 10:54
beagleknight
beagleknight previously approved these changes Oct 14, 2020
Copy link
Copy Markdown
Contributor

@beagleknight beagleknight left a comment

Choose a reason for hiding this comment

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

Looks great! 👍

@tramuntanal
Copy link
Copy Markdown
Contributor

@marinavega I've re-run tests from 4 modules that were stuck: verifications, system, consultations and admin.

Copy link
Copy Markdown
Contributor

@tramuntanal tramuntanal left a comment

Choose a reason for hiding this comment

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

Hi @marinavega
LGTM but I have a question regarding the filter queries

@tramuntanal tramuntanal self-assigned this Oct 15, 2020
@tramuntanal
Copy link
Copy Markdown
Contributor

Hi @marinavega , waiting for response 😄

Copy link
Copy Markdown
Contributor

@tramuntanal tramuntanal left a comment

Choose a reason for hiding this comment

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

Good!

@tramuntanal tramuntanal merged commit 4f86488 into develop Nov 11, 2020
@tramuntanal tramuntanal deleted the fix/draft-filter branch November 11, 2020 08:20
edgarlatorre pushed a commit that referenced this pull request Nov 11, 2020
* Remove draft state filter and show created inititives only by author

* Remove unused key

* Properly filter by author

* Fix offense

* Reuse query when filtering by author

* Formatting
edgarlatorre pushed a commit that referenced this pull request Nov 11, 2020
* Remove draft state filter and show created inititives only by author

* Remove unused key

* Properly filter by author

* Fix offense

* Reuse query when filtering by author

* Formatting
edgarlatorre pushed a commit that referenced this pull request Nov 12, 2020
* Remove draft state filter and show created inititives only by author

* Remove unused key

* Properly filter by author

* Fix offense

* Reuse query when filtering by author

* Formatting
edgarlatorre pushed a commit that referenced this pull request Nov 16, 2020
* Remove draft state filter and show created inititives only by author

* Remove unused key

* Properly filter by author

* Fix offense

* Reuse query when filtering by author

* Formatting
tramuntanal pushed a commit that referenced this pull request Nov 18, 2020
* Create public page for editing initiative

* Add print initiative

* Add public page for committee members

* public page for send technical validation

* Style adjusments

* Fix initiative_committee_action permission

* Change confirm send to technical validation text

* Fix create initiative test

* Fix edit initiative with area

* Add permission to print and improve permission for committee

* Add tests for area_updatable?

* Add missing translations

* Add missing locale

* Filter created initiatives only by author (#6658)

* Remove draft state filter and show created inititives only by author

* Remove unused key

* Properly filter by author

* Fix offense

* Reuse query when filtering by author

* Formatting

* Remove old text from completed initiative page

* Create default minimum of committee members

* Remove print permissions and add print to show page

* Fix search by state closed and open

* Remove print button from edit page

* Remove permission to user access initiatives on admin

* Fix filter by author

* Fix send my initiative link and some tests

* Remove test for author on admin

* Fix state params when it is nil

* Fix initiatives warning

* Fix copy button position

* Add more tests for permissions

Co-authored-by: Marina <marina@codegram.com>
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.

5 participants