Conversation
|
@mrcasals, thanks for your PR! By analyzing the history of the files in this pull request, we identified @josepjaume and @oriolgual to be potential reviewers. |
| require "decidim/meetings/feature" | ||
|
|
||
| module Decidim | ||
| module Meetings |
There was a problem hiding this comment.
Missing top-level module documentation comment.
Current coverage is 93.25% (diff: 75.00%)@@ master #309 diff @@
==========================================
Files 290 313 +23
Lines 4295 4540 +245
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 4012 4234 +222
- Misses 283 306 +23
Partials 0 0
|
| require "decidim/meetings/feature" | ||
|
|
||
| module Decidim | ||
| module Meetings |
There was a problem hiding this comment.
Missing top-level module documentation comment.
cc949de to
9358856
Compare
oriolgual
left a comment
There was a problem hiding this comment.
Missing feature specs for public meetings
decidim-meetings/README.md
Outdated
There was a problem hiding this comment.
Does it really makes sense to have the author name here? Do we need the author actually?
There was a problem hiding this comment.
Copied from the layout ¯_(ツ)_/¯
There was a problem hiding this comment.
That is, I don't know if it's needed or not, but since the layout had it I assumed we needed it. @josepjaume what should I do about this?
There was a problem hiding this comment.
It's not necessary to have an author on a meeting ATM.
Also the little guy it's missing the right arm, let me, here it is ------> \
¯_(ツ)_/¯
There was a problem hiding this comment.
@andreslucena "it's not necessary" does it mean that is optional or that we can get rid of it?
There was a problem hiding this comment.
I'd get rid of the author and also the created_at displayed at meetings#show
There was a problem hiding this comment.
Shouldn't you find a meeting by the params[:id] ? (This seems copy-pasted from decidim-pages)
Also, you could do meetings.find(params[:id)
There was a problem hiding this comment.
LOL how's this even working?
There was a problem hiding this comment.
OK it is not working as expected actually
There was a problem hiding this comment.
This doesn't make sense, at decidim-pages it was OK since each feature could only have one page.
There was a problem hiding this comment.
I'd prevent destroying the feature if there are meetings created.
There was a problem hiding this comment.
Instead of this can we start using meaningful names? I'd add {"en" => "Meetings", "ca" => "Trobades" } etc..
There was a problem hiding this comment.
Align .where with Decidim::User on line 24.
There was a problem hiding this comment.
Align .where with Decidim::User on line 24.
There was a problem hiding this comment.
I'm not using t.references :decidim_author for the comments table so.. I'm suppose I am wrong?
There was a problem hiding this comment.
t.references :something is like doing t.integer :something_id, index: true
There was a problem hiding this comment.
Yeah I know.. but I'm talking about the decidim_ prefix 😄
There was a problem hiding this comment.
We're adding the decidim prefix so that we don't collide with other parts of the app (ie custom things the devs might add), so I think you should change it :/
There was a problem hiding this comment.
Missing top-level class documentation comment.
There was a problem hiding this comment.
Missing frozen string literal comment.
3e9ce0d to
d297c62
Compare
There was a problem hiding this comment.
I get what you're doing here, but I feel like rescuing StandardError can be problematic, specially if we aren't capturing theses exceptions - they would fail silently in production.
Shouldn't we be appending the error message to feature model, even if it isn't useful to the user?
There was a problem hiding this comment.
Talked offline, decided to not change this right now.
This reverts commit a455f0481d559fd9c818ee8a03158f4e8ea0d5f7.
Sort them in ascendent mode
🎩 What? Why?
Adds meetings to the system. No sorting in public views, no filters. This will be added in future PRs.
📌 Related Issues
📋 Subtasks
📷 Screenshots (optional)
None
👻 GIF