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

教員権限の場合,リンクの画面でトピック検索ができない #1070

Open
ties-mitsuhashi opened this issue Feb 13, 2025 · 0 comments
Labels
bug Something isn't working major

Comments

@ties-mitsuhashi
Copy link

関連: #788

そのバグについて

教員権限の場合,リンクの画面でトピック検索ができない。
その際,Chromeの検証ツールで,追記・備考に記載のメッセージが表示される。

なお,すべてで検索すると表示される。
また,管理者だと,検索ができる。

upgrade-nodejs22 ( 7f16ebf )ブランチ,v2.6.0環境で確認。

再現手順

  1. 教員権限でCHiBi-CHiLOにアクセスする。
  2. 画面上部メニューから「リンク」をクリックする。
  3. 検索欄のラジオボタンを「トピック」にして検索する。

期待していた動作

検索欄のラジオボタンを「トピック」にしても検索ができる。

スクリーンショット

すべてで検索した場合
Image

トピックで検索した場合
Image

デスクトップ再現環境 (下記をうめてください):

  • OS: [Windows11]
  • ブラウザ: [chrome]
  • Version: [133.0.6943.60]

追記・備考

検索欄のラジオボタンを「トピック」に切り替えたときに,Chromeの検証ツールの「ネットワーク」に以下のメッセージが表示された。

{
  "statusCode": 500,
  "error": "Internal Server Error",
  "message": "Invalid `prisma.ltiResourceLink.count()` invocation:\n
\n
{\n
  \"select\": {\n
    \"_count\": {\n
      \"select\": {\n
        \"_all\": true\n
      }\n
    }\n
  },\n
  \"where\": {\n
    \"AND\": [\n
      {\n
        \"OR\": [\n
          {\n
            \"consumerId\": \"**********\",\n
            \"contextId\": \"19\"\n
          },\n
          {\n
            \"creatorId\": 3228,\n
            \"book\": {\n
              \"AND\": [\n
                {\n
                  \"OR\": [\n
                    {\n
                      \"shared\": true\n
                    },\n
                    {\n
                      \"authors\": {\n
                        \"some\": {\n
                          \"userId\": 3228\n
                        }\n
                      }\n
                    }\n
                  ]\n
                }\n
              ]\n
            }\n
          }\n
        ]\n
      },\n
      {\n
        \"book\": {\n
          \"0\": {\n
            \"OR\": [\n
              {\n
                \"shared\": true\n
              },\n
              {\n
                \"authors\": {\n
                  \"some\": {\n
                    \"userId\": 3228\n
                  }\n
                }\n
              }\n
            ]\n
          },\n
          \"sections\": {\n
            \"some\": {\n
              \"topicSections\": {\n
                \"some\": {\n
                  \"topic\": {\n
                    \"name\": {\n
                      \"contains\": \"文化とは何か\",\n
                      \"mode\": \"insensitive\"\n
                    }\n
                  }\n
                }\n
              }\n
            }\n
          }\n
        }\n
      }\n
    ]\n
  }\n
}\n
\n
Unknown argument `0`. Did you mean `is`? Available options are marked with ?."
}
@ties-mitsuhashi ties-mitsuhashi added bug Something isn't working major labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant