Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid decidim-core to depend upon other modules #5482

Merged
merged 3 commits into from
Nov 11, 2019

Conversation

tramuntanal
Copy link
Contributor

@tramuntanal tramuntanal commented Nov 8, 2019

🎩 What? Why?

This PR has started as a fix for bugfix 35b69c9, but ended up with a refactoring.

So, what is the refactoring about? It is related with the fact that we can not reference artifacts from external modules from core. This is, decidim-core can not have dependencies to other modules.

So to solve the dependency problem I've implemented an ActsAsAuthor module that all authors must include, and this will force them to define a presenter method which will return the current presenter for the author. This will avoid the decidim-core module to know anything about which is the presenter for each author, except for the official authorships.

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG entry
  • Add documentation regarding the feature
  • Add/modify seeds
  • Add tests
  • Another subtask

…resenter and cell, but ended up with a refactoring.
@tramuntanal tramuntanal requested a review from oriolgual November 8, 2019 17:55
@tramuntanal tramuntanal requested a review from a team as a code owner November 8, 2019 17:55
@tramuntanal tramuntanal self-assigned this Nov 8, 2019
@tramuntanal tramuntanal merged commit 63807de into master Nov 11, 2019
@tramuntanal tramuntanal deleted the fix/mispelling_in_authorship_related_artifacts branch November 11, 2019 13:48
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.

2 participants