fix: allow all files for base form attachment questions#931
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthroughAdds parsing and normalization so attachment questions created via ChangesAttachment File Types Default Normalization
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
6f7f968 to
a8bd24a
Compare
|
Hey @LawyerLyu, thanks for the fix! The same normalization is also needed in +form-questions-update (base_form_questions_update.go) — I spotted it earlier and submitted #945 as a follow-up, but closed it to avoid duplicating review effort. Happy to reopen or help integrate the update path here if you'd like. |
Summary
Fixes Base form attachment questions so they default to accepting all file types, matching the Feishu UI behavior for newly created attachment questions.
Changes
base +form-questions-createattachment questions so missing or nullattachment.file_typesbecomes["all"].file_typesvalues.Test Plan
go test ./shortcuts/baselark xxxcommand works as expected:go build -o ./lark-cli . && go test ./tests/cli_e2e/base -run TestBase_FormQuestionsCreateDryRunAttachmentFileTypes -count=1Related Issues
Summary by CodeRabbit
New Features
Tests
Documentation