Repository navigation
fix: normalize Q&A parser ID key to lowercase 'qa' - #16530
Conversation
- Update ParserIDs in oauth_login.go and user.go - Change 'Q&A:Q&A' to 'qa:Q&A' for consistency with other parser IDs
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe ParserIDs mapping string used during tenant creation was updated in both the OAuth user registration flow and the standard user registration flow, renaming the Q&A parser identifier key from Q&A to qa, while the display label Q&A remains unchanged. ChangesQ&A Parser Key Update
Estimated code review effort: 1 (Trivial) | ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16530 +/- ##
=======================================
Coverage 93.16% 93.16%
=======================================
Files 10 10
Lines 717 717
Branches 118 118
=======================================
Hits 668 668
Misses 29 29
Partials 20 20 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
This PR normalizes the parser ID key for the Q&A parser to use lowercase format for consistency with other parser IDs.
Changes:
ParserIDsininternal/service/oauth_login.go: Changed'Q&A:Q&A'→'qa:Q&A'ParserIDsininternal/service/user.go: Changed'Q&A:Q&A'→'qa:Q&A'Background:
The Q&A parser ID used uppercase
Q&Aas its key, while all other parsers use lowercase keys (e.g.,naive,manual,table). This change ensures consistency across all default parser IDs assigned during user registration (both OAuth and standard registration flows).