Skip to content

backport: Add user's contributions to search#977

Merged
moustachu merged 4 commits into
developfrom
backport/searchable_elements
May 22, 2026
Merged

backport: Add user's contributions to search#977
moustachu merged 4 commits into
developfrom
backport/searchable_elements

Conversation

@AyakorK

@AyakorK AyakorK commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

🎩 Description

We had to backport a fix related to the issue that occured when you searched a user's name, and that you only saw the user's profile and not his contributions.

That's a backport from PR #971 that was based on 0.31 and now backported to 0.29

Testing

If you already have an application booted or in production you have to run this command to reindex every searchable fields

bundle exec rails runner "
%w[
  Decidim::Proposals::Proposal
  Decidim::Meetings::Meeting
  Decidim::Debates::Debate
  Decidim::Blogs::Post
].each do |klass_name|
  begin
    klass_name.constantize.find_each(&:try_update_index_for_search_resource)
    puts \"✅ #{klass_name} reindexed\"
  rescue => e
    puts \"⚠️ #{klass_name} skipped : #{e.message}\"
  end
end
"
  • Navigate through participatory processes and proposals
  • Get the name of an author
  • Search author's name in the search bar
  • Make sure the author's contributions are appearing correctly

📌 Related Issues

Link your PR to an issue

Tasks

  • Add specs
  • Make a global extend on multiple searchable components

@AyakorK AyakorK marked this pull request as ready for review April 15, 2026 12:20

@Stef-Rousset Stef-Rousset left a comment

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.

LGTM !

@BarbaraOliveira13 BarbaraOliveira13 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGMT

@moustachu moustachu merged commit 6bb6810 into develop May 22, 2026
10 checks passed
@moustachu moustachu deleted the backport/searchable_elements branch May 22, 2026 22:57
moustachu added a commit that referenced this pull request May 27, 2026
Co-authored-by: moustachu <moustachu@opensourcepolitics.eu>
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