Improvements to conversations with more than one participant#6094
Improvements to conversations with more than one participant#6094microstudi merged 19 commits intodevelopfrom
Conversation
|
Hi @decidim/product this has been deployed into our staging |
microstudi
left a comment
There was a problem hiding this comment.
Good job,
we just need to improve a little bit the GraphQL API additions. Please check the comments regarding the file user_entify_input_filter.rb.
A part from that comments, I'd like to modify the description in that file so it generates a more detailed documentation in /api/docs:
Proposed changes in user_entity_input_filter.rb:

Check http://localhost:3000/api/docs#UserEntityFilter to look for the generated result.
| op_name.or(op_nick) | ||
| end | ||
| end | ||
| argument :exclusion, |
There was a problem hiding this comment.
| argument :exclusion, | |
| argument :exclude_ids, |
I'd change this for its imperative form, and being more specific about what's been used to exclude
| end | ||
| argument :exclusion, | ||
| type: String, | ||
| description: "Excludes users contained in given ids", |
There was a problem hiding this comment.
| description: "Excludes users contained in given ids", | |
| description: "Excludes users contained in given ids. Valid values are one or more IDs (passed as an arrays)", |
This is used in the documentation, so let's try to be as clear as possible
| end | ||
| end | ||
| argument :exclusion, | ||
| type: String, |
There was a problem hiding this comment.
| type: String, | |
| type: [ID], |
As we are using ID, we can specify array types of ID, this allows us to use a more idiomatic Graphql call:
users(filter:{excludeIds: [2 10 11]}) {or simply:
users(filter:{excludeIds: 2}) {| required: false, | ||
| prepare: ->(value, _ctx) do | ||
| proc do |model_class| | ||
| value = value.split(",") |
There was a problem hiding this comment.
| value = value.split(",") |
We can remove this if using array type declaration
|
It should be ok now @microstudi 😄 |
microstudi
left a comment
There was a problem hiding this comment.
There's only a correction on the camel case example calling the GraphQL
|
|
||
| ``` | ||
| { | ||
| users(filter:{wildcard:\"sandy\", exclude_ids:[2,10,11]}) { |
There was a problem hiding this comment.
| users(filter:{wildcard:\"sandy\", exclude_ids:[2,10,11]}) { | |
| users(filter:{wildcard:\"sandy\", excludeIds:[2,10,11]}) { |
|
It should be ok now @microstudi 😄 |
|
Thanks! |
* develop: Include year in meetings card (decidim#6102) Add attachment enabled option to initiative types and initiatives (decidim#6036) Fix a flaky test in group profile conversations (decidim#6123) Add attachments to Initiatives (decidim#5844) Add initiatives export (decidim#6070) Improvements to conversations with more than one participant (decidim#6094) Elections module and election administration (decidim#6065) Separate forms in steps (decidim#6108) Add sorting by publishing date to initiatives (decidim#6016) Improve proposal preview: Use proposal card when previewing a proposal draft (decidim#6064) Newsletter templates fixes (decidim#6096) # Conflicts: # decidim-initiatives/app/models/decidim/initiative.rb # decidim-initiatives/spec/system/admin/initiative_types_controller_spec.rb
* feature/add_areas_to_initiatives: (30 commits) Adds areas to FO filters Fix lint issue Fixes rubocop issues Updates changelog Adds areas to initiatives Send notification when signature threshold reached (decidim#6098) Adds filter by initiative type to admin panel (decidim#6093) Require confirmation on exiting a survey mid-answering (decidim#6118) Information message when there isn't any Proposal (decidim#6063) Set email asset host dynamically (decidim#5888) Harmonizes the design of initiatives search in FO (decidim#6090) Include year in meetings card (decidim#6102) Add attachment enabled option to initiative types and initiatives (decidim#6036) Fix a flaky test in group profile conversations (decidim#6123) Add attachments to Initiatives (decidim#5844) Add initiatives export (decidim#6070) Improvements to conversations with more than one participant (decidim#6094) Elections module and election administration (decidim#6065) Separate forms in steps (decidim#6108) Add sorting by publishing date to initiatives (decidim#6016) ... # Conflicts: # decidim-initiatives/app/cells/decidim/initiatives/initiative_m_cell.rb # decidim-initiatives/app/commands/decidim/initiatives/admin/update_initiative.rb # decidim-initiatives/app/controllers/decidim/initiatives/initiatives_controller.rb # decidim-initiatives/app/forms/decidim/initiatives/admin/initiative_form.rb # decidim-initiatives/app/helpers/decidim/initiatives/application_helper.rb # decidim-initiatives/app/models/decidim/initiative.rb # decidim-initiatives/app/services/decidim/initiatives/initiative_search.rb # decidim-initiatives/app/views/decidim/initiatives/create_initiative/fill_data.html.erb # decidim-initiatives/app/views/decidim/initiatives/initiatives/_filters.html.erb # decidim-initiatives/app/views/decidim/initiatives/initiatives/_tags.html.erb # decidim-initiatives/config/locales/en.yml # decidim-initiatives/db/migrate/20200514085422_add_area_to_initiatives.rb # decidim-initiatives/db/migrate/20200514102631_add_area_enabled_option_to_initiatives.rb # decidim-initiatives/spec/forms/initiative_form_spec.rb # decidim-initiatives/spec/services/decidim/initiatives/initiative_search_spec.rb # decidim-initiatives/spec/shared/update_initiative_type_example.rb # decidim-initiatives/spec/system/admin/admin_manages_initiatives_spec.rb # decidim-initiatives/spec/system/admin/initiative_types_controller_spec.rb # decidim-initiatives/spec/system/filter_initiatives_spec.rb
🎩 What? Why?
Acording to #5861 (Conversations with more than one person) issue, there's some improvements to be done.
This PR improves:
📌 Related Issues
Notes
As in order to add aria accessibility funcionality for users dropdown auto-generated by Tribute.js lib, I had temporoliy modified tribute.js file as a inmediate fix while in the other hand I opened a PR to Tribute github repo with the same change:
📋 Subtasks
CHANGELOGentry📷 Screenshots