Takumi Shotoku

Results 9 issues of Takumi Shotoku

DatabaesRewinder finds the wrong cleaner when using the same database name on different hosts. It occurs with the following database.yml. ```yaml default: &default adapter: postgresql encoding: unicode pool: username: postgres...

This pull request is intended to support logins for multiple roles, such as User and Admin. First, change the configuration to use an instance instead of Module to allow overwriting...

implemented in v1

Because the API server returns HTML, so Faraday throws an error. :cry: ``` Faraday::ParsingError: 765: unexpected token at ' Bad Gateway (502) ... ' ```

## Summary It's always detected as a diff even though I haven't changed the role. ## Steps to reproduce ``` $ cat ecschedule.yaml region: ap-northeast-1 cluster: default rules: - name:...

rbs generates a definition that causes a syntax error if the file includes `'#$'`. ## Steps to reproduce ```console $ cat foo.rb class A X = '#$' end $ rbs...

bug

If you define a class with the same name as the parent class, sord will generate the type signature with circular inheritance. For example, the code is as follows. ```ruby...

Probably the cause is as follows. 1. `rev-parse --is-inside-work-tree` return `true` in subdirectoires of rbenv. - https://github.com/amatsuda/gem-src/blob/v0.9.0/lib/rubygems_plugin.rb#L45 2. `remote_add_src_and_origin` add remotes to ~/.rbenv/.git/config when gem_dir not a repository. - https://github.com/amatsuda/gem-src/blob/v0.9.0/lib/rubygems_plugin.rb#L50

## 概要 プラクティスページの表示速度が遅いのが気になったので調べてみました。 `api/courses/1/practices` のレスポンスに **1.64s** かかっています。 ![スクリーンショット 2024-02-08 20 14 02](https://github.com/fjordllc/bootcamp/assets/248174/6e63769d-0d54-44f8-9b48-814efb43cda3) ## 原因(推測) `learnings.status` にインデックスが無いのが原因だと推測しています。 https://github.com/fjordllc/bootcamp/blob/af01eb03b410c5c736dd3e22e9566077bb6126e8/db/schema.rb#L374-L383 ### 詳細 APIのコントローラーで includes に `started_students` を指定している。 https://github.com/fjordllc/bootcamp/blob/af01eb03b410c5c736dd3e22e9566077bb6126e8/app/controllers/api/courses/practices_controller.rb#L8-L12 この実装は `app/models/practice.rb` に書かれています。 https://github.com/fjordllc/bootcamp/blob/af01eb03b410c5c736dd3e22e9566077bb6126e8/app/models/practice.rb#L25-L28 開発環境の...

stale

We often want to specify multiple directories in `root_dir` and `model_dir`. For example, when using engines, packs-rails, etc. * https://github.com/rubyatscale/packs-rails * https://guides.rubyonrails.org/engines.html This commit supports the glob pattern with these...