Skip to content

Conversation

@rbngzlv
Copy link
Contributor

@rbngzlv rbngzlv commented Apr 27, 2018

🎩 What? Why?

This PR sits on #3008 and #3301 and add the possibility to link an assembly member to an existing user in the platform.

I'm pointing this PR to the feature/assembly_members branch so you can review it faster, once merged, I'll point this to the master branch.

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG entry

@ghost ghost assigned rbngzlv Apr 27, 2018
@ghost ghost added the status: WIP label Apr 27, 2018
@rbngzlv rbngzlv added this to the Release v.0.11.0 milestone Apr 27, 2018
attribute :position_other, String
attribute :user_id, Integer
attribute :existing_user, Boolean, default: false
attribute :user_id, Integer
Copy link
Contributor

Choose a reason for hiding this comment

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

This is duplicated


query = current_organization.users&.order(name: :asc)
term = params[:term]
if term&.start_with?("@")
Copy link
Contributor

Choose a reason for hiding this comment

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

I've seen this code in other PRs, should we extract this to a class or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yo've seen it in the same module? If not, we need to extract it to the core module so we don't add a dependency to the admin, right? We can extract it to a query class?

Copy link
Contributor

Choose a reason for hiding this comment

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

@oriolgual, you refer to this other PR that we are "arguing" there. #3136 (comment)

We can look for a solution for both systems. What do you recommend?
Create a OrganizersController or UsersController but should be done in Decidim::Core no?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, should be done at core, no problem. I'd go with a OrganizersController

Copy link
Contributor

Choose a reason for hiding this comment

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

good! But in this case, will be UsersController ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, yes you're right

@rbngzlv rbngzlv force-pushed the feature/assembly_members_belongs_to_user branch from 955f457 to 8750a8b Compare May 10, 2018 17:11
@rbngzlv rbngzlv changed the base branch from feature/assembly_members to feature/move_organizer_picker_to_autocomplete_field May 10, 2018 17:11
@rbngzlv rbngzlv force-pushed the feature/assembly_members_belongs_to_user branch from 8750a8b to 714dd92 Compare May 10, 2018 17:19
@rbngzlv rbngzlv force-pushed the feature/move_organizer_picker_to_autocomplete_field branch from 30c0900 to c228ab0 Compare May 11, 2018 06:20
@rbngzlv rbngzlv changed the base branch from feature/move_organizer_picker_to_autocomplete_field to master May 11, 2018 07:42
@rbngzlv rbngzlv force-pushed the feature/assembly_members_belongs_to_user branch from 714dd92 to 31d1f22 Compare May 11, 2018 07:43
@ghost ghost added the status: WIP label May 11, 2018
@rbngzlv
Copy link
Contributor Author

rbngzlv commented May 11, 2018

@decidim/lot-core review it please, rebased on master after merging #3387.

@mrcasals mrcasals merged commit 5e2e7a5 into master May 11, 2018
@mrcasals mrcasals deleted the feature/assembly_members_belongs_to_user branch May 11, 2018 09:14
isaacmg410 pushed a commit to CodiTramuntana/decidim that referenced this pull request May 25, 2018
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