-
-
Notifications
You must be signed in to change notification settings - Fork 108
[WIP]Create recently events task #278
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
Closed
AnaTofuZ
wants to merge
21
commits into
coderdojo-japan:master
from
AnaTofuZ:create_recently_events_task
Closed
[WIP]Create recently events task #278
AnaTofuZ
wants to merge
21
commits into
coderdojo-japan:master
from
AnaTofuZ:create_recently_events_task
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`/events`を作りたい為、雛形hamlファイルとコントローラー 及び適切に`/events` が表示できるかのテストコードを追加した。
statiscs/providersにはDojoのイベントAPIにアクセスする為の実装がある. 直近のイベント情報を取得する際も、APIアクセスが必要となる為この資産を使いたい。 > statistics 系の資源を使いつつ、直近情報を入手する実装がやっぱり良さそう > ネームスペースが気持ち悪いと思うので、Statisticsの外に出してしまうと良いかもしれないですねぇ。 そこで名前空間をstatiscs/providersからprovidersに変更した
先程のcommitでnamespaceの変更を行った為、Statisticsの名前空間を削除した
…o.jp into add_events_pages
`providers` の名前空間を`statistics` から外した為、require_relativeのパ スを修正した
Statistics::ProvidersからProvides::に名前空間を修正した為 使用しているrakeファイルの名前空間を修正した
テストコードが`Statistics::Providers` を参照していた為、`Statistics` 名 前空間を外した
今回のPRでは`/events` の変更は行わない為削除した
…b module 名前空間を切り分けるために eventservice/providers.rbにproviders.rbを変更し 大本のeventservice.rbを作成した
providersの名前空間をeventservice以下にする為テストコードの名前空間を切り分けた
名前空間を変更した為,lib/tasks/statisticsの使用しているモジュールパスを 変更した
名前空間を変更した物を修正し忘れていた為変更
直近のイベント情報を格納するtableが欲しかった為generateを行った。 スキーマの内容は `event_histories` から参加者を除いた分となっている $ be rails g migration CreateRecentlyEvents dojo_id:integer dojo_name:string service_name:string service_group_id:string event_id:string event_url:string evented_ad:datetime
issues coderdojo-japan#258 にある通り、直近のeventを追加するテーブルを作成した。 ほぼ `event_histories` を模しており、唯一参加人数を保持しない設計となっている。 > 格納先について > event_histories とほぼ同じ構成 > 格納するtaskを statistics と別にする > 3週間ごとに新しいデータを持ってくるようにcron可能なtaskを書く
|
別のブランチからPRをだしていきたいと思うのでcloseします |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
背景
#258 による一連のPRです
TODO
recently_events
モデルの作成/events
用のコントローラーを定義作成するtaskについて