Merged
Conversation
--title / --form-name / --form-id / --form-group-id / --writer / --writer-group / --me / --since / --until を追加し、--body を書かずに 簡易検索できるようにする。--body とフィルタフラグの併用はエラー。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
XPOINT_USER(もしくは --xpoint-user)が設定されていればそれを使い、未設定時は
/scim/v2/{domain_code}/Me を呼んで認証ユーザの userName を取得するようにする。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
--xpoint-domain-code / XPOINT_DOMAIN_CODE が未設定でも `xp auth login` で キーリングに保存された domain_code をフォールバックとして使うように resolveDomainCode を追加。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
/scim/v2/{domain_code}/Me は application/json では 406 Not Acceptable
を返すため、do を doAccept に分けて呼び出し側で Accept を指定可能にし、
GetSelfInfo は application/scim+json を送るようにする。
X-point の writer_list には userName(ログイン名、例: ykky)ではなく ユーザコード(例: 326)を渡す必要があり、従来実装では SCIM の userName を使っていたため writer_list が効かず結果が絞れていなかった。 SCIM レスポンスの urn:atled:scim:schemas:1.0:User.userCode を読み、 そちらを writer_list.code に送るようにする。 また --body 利用時のリクエストボディをデバッグ出力に追加し、調査時に 送信内容が確認できるようにする。
xp me で GET /scim/v2/{domain_code}/Me を呼び、ログイン名
(userName)・表示名・X-point ユーザコード (atled 拡張 userCode) を
テーブル/JSON で表示する。writer_list に渡すべきユーザコードを
手元で確認したいケースを想定。
…ch-filters # Conflicts: # README.md # internal/xpoint/client.go # internal/xpoint/client_test.go
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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
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.
Summary
xp document searchに件名/フォーム/申請者/日付のフィルタフラグを追加し、--bodyを書かずに簡易検索できるようにする--title件名部分一致--form-name/--form-id/--form-group-idフォーム・フォームグループ指定--writer/--writer-group(repeatable)申請者指定--me自分が申請者の書類(XPOINT_USER/--xpoint-userを利用)--since/--until新規更新日(cr_dt)の範囲(YYYY-MM-DD)--bodyとフィルタフラグの併用はエラーTest plan
go test ./...xp document search --title 経費で件名部分一致検索ができることxp document search --meで自分の申請書類が取れることxp document search --since 2024-01-01 --until 2024-12-31で期間検索ができることxp document search --body '{...}' --title xでエラーになること🤖 Generated with Claude Code