Skip to content

fix: normalize Q&A parser ID key to lowercase 'qa' - #16530

Merged
wangq8 merged 2 commits into
infiniflow:mainfrom
euvre:fix/parser-id-qa-lowercase
Jul 1, 2026
Merged

wangq8 merged 2 commits into
infiniflow:mainfrom
euvre:fix/parser-id-qa-lowercase

Conversation

@euvre

@euvre euvre commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR normalizes the parser ID key for the Q&A parser to use lowercase format for consistency with other parser IDs.

Changes:

  • Updated ParserIDs in internal/service/oauth_login.go: Changed 'Q&A:Q&A' → 'qa:Q&A'
  • Updated ParserIDs in internal/service/user.go: Changed 'Q&A:Q&A' → 'qa:Q&A'

Background:
The Q&A parser ID used uppercase Q&A as 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).

- Update ParserIDs in oauth_login.go and user.go
- Change 'Q&A:Q&A' to 'qa:Q&A' for consistency with other parser IDs
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. labels Jul 1, 2026
@coderabbitai

coderabbitai Bot commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4387f626-3d18-488a-bfb3-7ce66d711a8c

📥 Commits

Reviewing files that changed from the base of the PR and between d770217 and 6f22ee7.

📒 Files selected for processing (2)
  • internal/service/oauth_login.go
  • internal/service/user.go

📝 Walkthrough

Walkthrough

The 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.

Changes

Q&A Parser Key Update

Layer / File(s) Summary
ParserIDs key rename
internal/service/oauth_login.go, internal/service/user.go
Changed the Q&A parser identifier key from Q&A to qa in the default ParserIDs mapping string used when creating a tenant, keeping the display label Q&A unchanged.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Poem

A tiny key hop, lowercase and neat,
"qa" now marks where questions meet.
Two files aligned, one small delight,
A rabbit's nose twitches — all just right! 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: normalizing the Q&A parser ID key to lowercase.
Description check ✅ Passed The description matches the required Summary template and includes the change context and background.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@euvre euvre added the ci Continue Integration label Jul 1, 2026
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.16%. Comparing base (b8e960e) to head (2936da9).
⚠️ Report is 4 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wangq8
wangq8 merged commit fb03765 into infiniflow:main Jul 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants