Skip to content

Add meetings#309

Merged
mrcasals merged 34 commits intomasterfrom
meetings
Dec 16, 2016
Merged

Add meetings#309
mrcasals merged 34 commits intomasterfrom
meetings

Conversation

@mrcasals
Copy link
Copy Markdown
Contributor

@mrcasals mrcasals commented Nov 30, 2016

🎩 What? Why?

Adds meetings to the system. No sorting in public views, no filters. This will be added in future PRs.

📌 Related Issues

📋 Subtasks

  • Add the engine
  • Add specs
  • Fix errors in public pages
  • Update README from engine
  • Remove author from meetings and hide creation date in public layout
  • Add specs for public layout (index shows all meetings, show shows all info)

📷 Screenshots (optional)

None

👻 GIF

@mention-bot
Copy link
Copy Markdown

@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
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing top-level module documentation comment.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Nov 30, 2016

Current coverage is 93.25% (diff: 75.00%)

Merging #309 into master will decrease coverage by 0.15%

@@             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          

Powered by Codecov. Last update 06d376e...8902a44

require "decidim/meetings/feature"

module Decidim
module Meetings
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing top-level module documentation comment.

@mrcasals mrcasals mentioned this pull request Dec 12, 2016
2 tasks
@mrcasals mrcasals force-pushed the meetings branch 2 times, most recently from cc949de to 9358856 Compare December 15, 2016 13:06
Copy link
Copy Markdown
Contributor

@oriolgual oriolgual left a comment

Choose a reason for hiding this comment

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

Missing feature specs for public meetings

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.

Docs & memoize

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.

s/Pages/Meetings

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.

Does it really makes sense to have the author name here? Do we need the author actually?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copied from the layout ¯_(ツ)_/¯

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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?

Copy link
Copy Markdown
Member

@andreslucena andreslucena Dec 15, 2016

Choose a reason for hiding this comment

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

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 ------> \

¯_(ツ)_/¯

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.

@andreslucena "it's not necessary" does it mean that is optional or that we can get rid of it?

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.

I'd get rid of the author and also the created_at displayed at meetings#show

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Author removed!

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.

s/component/feature ?

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.

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)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

LOL how's this even working?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

OK it is not working as expected actually

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.

This doesn't make sense, at decidim-pages it was OK since each feature could only have one page.

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.

I'd prevent destroying the feature if there are meetings created.

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.

Instead of this can we start using meaningful names? I'd add {"en" => "Meetings", "ca" => "Trobades" } etc..

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.

only index show ?

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.

Wrong text

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Align .where with Decidim::User on line 24.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Align .where with Decidim::User on line 24.

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.

I'm not using t.references :decidim_author for the comments table so.. I'm suppose I am wrong?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

t.references :something is like doing t.integer :something_id, index: true

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.

Yeah I know.. but I'm talking about the decidim_ prefix 😄

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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 :/

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing top-level class documentation comment.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing frozen string literal comment.

@mrcasals mrcasals force-pushed the meetings branch 2 times, most recently from 3e9ce0d to d297c62 Compare December 15, 2016 15:37
Copy link
Copy Markdown
Contributor

@josepjaume josepjaume left a comment

Choose a reason for hiding this comment

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

Outstanding work!

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.

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Talked offline, decided to not change this right now.

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.

Nice!!

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.

Nice!

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.

Missing space before }

@mrcasals mrcasals merged commit e500078 into master Dec 16, 2016
@mrcasals mrcasals deleted the meetings branch December 16, 2016 14:52
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.

8 participants