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

Add finished and unfinished Runs tabs in simulators#:id #733

Merged
merged 3 commits into from
Feb 26, 2021

Conversation

morimorihoge
Copy link
Collaborator

@morimorihoge morimorihoge commented Feb 19, 2021

simulators#showページに Finished Runs 及び Unfinished Runs を追加 refs #717

  • simulators#showにタブを追加
  • runs#_jobs_table がsimulator_idを引数に取れるように修正
  • テストコードの追加

image

要確認

  • 扱い的にAnalysesもUnifished / Finished共に表示するのが良いか確認し、必要なら実装する
    • 2021/02/19の定例MTGにてAnalysesは表示対象としなくて良いことを確認済み

@morimorihoge
Copy link
Collaborator Author

@yohm Finished / Unfinished Runsが表示されるようにしてみました。スクリーンショットはPR descriptionの通りです。

一点、Analysesも表示した方が良さそうな気がしたので、そちらの対応も必要か、確認お願いいたします 🙇‍♂️

render json: RunsListDatatable.new(Run.in(status: stat), view_context)
conditions = {}
conditions[:status] = params["run_status"] # required
conditions[:simulator_id] = params["simulator_id"] if params["simulator_id"].present?
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

optionalな引数として simulator_id を渡せるように更新しています

$(function() {
// finished runs
const oFinishedRunsTable = datatables_for_runs_table('#finished_runs_list');
});
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

この辺のloadingコードはshowの方にまとめても良かったのですが、参照しているElement idが同じファイル内に見えていた方が可読性としては良いかなと思い、それぞれのpartial側で呼び出すようにしています。

@morimorihoge
Copy link
Collaborator Author

定例にて、Analysesは表示不要とのこと(Progressも同様なので、それに従う)を確認頂いたので、テストコードを増やした上でDraftを外す方向で対応させて頂きます。

@morimorihoge morimorihoge force-pushed the feature/add-run-tables-in-simulator branch from 28f466a to 61d7f8a Compare February 25, 2021 23:50
@morimorihoge morimorihoge marked this pull request as ready for review February 25, 2021 23:51
@morimorihoge
Copy link
Collaborator Author

@yohm こちら、テストコードの方追加いたしましたのでmerge readyになります。
後確認よろしくお願いいたします 🙇‍♂️

Copy link
Member

@yohm yohm left a comment

Choose a reason for hiding this comment

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

#732 の変更への追従をお願いします 🙇

app/views/simulators/_finished_runs_list.html.haml Outdated Show resolved Hide resolved
app/views/simulators/_unfinished_runs_list.html.haml Outdated Show resolved Hide resolved
@yohm yohm merged commit dcc8912 into develop Feb 26, 2021
@yohm yohm deleted the feature/add-run-tables-in-simulator branch February 26, 2021 07:15
@yohm yohm added this to the Improvement-202103 milestone Apr 23, 2021
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