Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

refactor: extract MeetingQueryConfig to eliminate 13-param method and 5 duplicate SQL strings - #119

Closed
sauravbhattacharya001 wants to merge 1 commit into
masterfrom
refactor/meeting-query-config
Closed

sauravbhattacharya001 wants to merge 1 commit into
masterfrom
refactor/meeting-query-config

Conversation

@sauravbhattacharya001

Copy link
Copy Markdown
Owner

Problem

Network.generateFile() had 13 parameters and 5 near-identical SQL query strings.

Solution

  • New MeetingQueryConfig class encapsulates per-relationship-type query differences
  • buildSql() generates parameterised SQL from config, eliminating duplicate strings
  • New clean 4-parameter generateFile() overload
  • Original 13-param method preserved as @deprecated for backward compatibility
  • Zero behavior change

… 5 duplicate SQL strings

Network.generateFile() had 13 parameters and 5 near-identical SQL query
strings that only differed in location filter and comparison operators.

Changes:
- New MeetingQueryConfig class encapsulates per-relationship-type query
  differences (location filter mode, comparison direction, thresholds)
- MeetingQueryConfig.buildSql() generates the parameterised SQL from config
- New generateFile(path, month, date, List<MeetingQueryConfig>) overload
- Original 13-param method preserved as @deprecated for backward compat
- Zero behavior change: deprecated method delegates to new one
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions github-actions Bot added database Database queries and schema size/l labels Mar 24, 2026
@sauravbhattacharya001

Copy link
Copy Markdown
Owner Author

Closing: superseded or conflicting with newer changes already on main/master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

database Database queries and schema size/l

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant